View previous topic :: View next topic |
Author |
Message |
r3dsc0rpi0n
Joined: 20 Apr 2005 Posts: 354 Location: Zagreb
|
Posted: 12.10.2005 21:05 Post subject: pretvaranje px u em ? |
|
|
Dali postoji TOČNA metoda,način,program whatever za pretvaranje px u em?
htio bih da mi se grafika povecava zajedno sa textom...
recimo 123px je ? em |
_________________ ::: Fortis est, qui se vincit ! :::: |
|
Back to top |
|
|
mile
Joined: 10 Sep 2003 Posts: 1327 Location: Jeruzalem
|
Posted: 12.10.2005 21:18 Post subject: |
|
|
Neznam TOČNO
Ali, možda ti ovo pomogne:
http://www.stopdesign.com/log/2005/06/24/zoom-layout.html
http://www.accessifyforum.com/viewtopic.php?t=3647
http://www.thenoodleincident.com/tutorials/box_lesson/font/index.html
Quote: | If you have the body set at 13px, and then set a div, let's call it div#content to 1em, it'll be 13px. But if you set it to 1.1em it'll be 1.1*13 px's. That's the relative part. |
Quote: | Body text sized @ 0.8em, with no inheritance factors involved, approximates a font size of 11px. Do note however, that the em baseline size varies according the glyphs of various fonts. 1em Vedana renders larger than 1em Monotype Corsiva, and both differ from 1em Courier. Don't let this daunt you however, as in many cases, this can be an actual bonus. |
Last edited by mile on 12.10.2005 21:37; edited 2 times in total |
|
|
Back to top |
|
|
garden
Joined: 26 May 2005 Posts: 1122 Location: Zadar / Split
|
Posted: 12.10.2005 21:31 Post subject: |
|
|
a em u pixele |
|
|
Back to top |
|
|
mile
Joined: 10 Sep 2003 Posts: 1327 Location: Jeruzalem
|
Posted: 12.10.2005 21:38 Post subject: |
|
|
garden wrote: | a em u pixele |
a piksele u kilometre |
|
|
Back to top |
|
|
garden
Joined: 26 May 2005 Posts: 1122 Location: Zadar / Split
|
Posted: 12.10.2005 21:40 Post subject: |
|
|
baš me zanima zbog tajptestera. |
|
|
Back to top |
|
|
Sulien
Joined: 04 Jan 2004 Posts: 2905 Location: Zagreb
|
Posted: 12.10.2005 22:08 Post subject: |
|
|
gle, em je relativno i nema tu pretvorbe
u jednom slučaju header namješten na 1.5em može biti prosječne veličine dok u drugom može biti velik kao slon - ovisi o font size-u kojeg je naslijedio od parenta |
|
|
Back to top |
|
|
red
Joined: 03 May 2004 Posts: 919 Location: Zabok
|
|
Back to top |
|
|
maratz mi3.crew
Joined: 24 Nov 2003 Posts: 1207 Location: ZAG
|
|
Back to top |
|
|
r3dsc0rpi0n
Joined: 20 Apr 2005 Posts: 354 Location: Zagreb
|
Posted: 14.10.2005 22:33 Post subject: |
|
|
TNX ekipo |
_________________ ::: Fortis est, qui se vincit ! :::: |
|
Back to top |
|
|
lekke
Joined: 17 Jun 2004 Posts: 860 Location: 25th floor
|
Posted: 14.10.2005 22:58 Post subject: |
|
|
napravis ovo
Code: |
body {
font-size: 62.5%;
}
|
i to ti resetira 1em na 10px;
dakle sad dalje koristis npr
Code: |
h1 {
font-size: 1.4em;
}
|
ako hoces da h1 ima 14px itd...
mega simple |
_________________ You need more bass. |
|
Back to top |
|
|
|