Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
pretvaranje px u em ?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
r3dsc0rpi0n



Joined: 20 Apr 2005
Posts: 354
Location: Zagreb

PostPosted: 12.10.2005 21:05    Post subject: pretvaranje px u em ? Add user to your forum ignore list Reply with quote

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 Confused

_________________
::: Fortis est, qui se vincit ! ::::
Back to top
View user's profile Send private message Send e-mail Visit poster's website Twitter profile
mile



Joined: 10 Sep 2003
Posts: 1327
Location: Jeruzalem

PostPosted: 12.10.2005 21:18    Post subject: Add user to your forum ignore list Reply with quote

Neznam TOČNO Smile

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
View user's profile Send private message Visit poster's website
garden



Joined: 26 May 2005
Posts: 1122
Location: Zadar / Split

PostPosted: 12.10.2005 21:31    Post subject: Add user to your forum ignore list Reply with quote

a em u pixele Very Happy
Back to top
View user's profile Send private message Send e-mail MSN Messenger
mile



Joined: 10 Sep 2003
Posts: 1327
Location: Jeruzalem

PostPosted: 12.10.2005 21:38    Post subject: Add user to your forum ignore list Reply with quote

garden wrote:
a em u pixele Very Happy


a piksele u kilometre Very Happy
Back to top
View user's profile Send private message Visit poster's website
garden



Joined: 26 May 2005
Posts: 1122
Location: Zadar / Split

PostPosted: 12.10.2005 21:40    Post subject: Add user to your forum ignore list Reply with quote

baš me zanima zbog tajptestera. Very Happy
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 12.10.2005 22:08    Post subject: Add user to your forum ignore list Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
red



Joined: 03 May 2004
Posts: 919
Location: Zabok

PostPosted: 12.10.2005 22:26    Post subject: Re: pretvaranje px u em ? Add user to your forum ignore list Reply with quote

r3dsc0rpi0n wrote:
...htio bih da mi se grafika povecava zajedno sa textom...


http://www.bigbaer.com/css_tutorials/css.scale.image.html.tutorial.htm

_________________
Get busy living, or get busy dying.
Back to top
View user's profile Send private message Visit poster's website Twitter profile
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 13.10.2005 11:14    Post subject: Add user to your forum ignore list Reply with quote

1em je dimenzija parent elementa x 1

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
r3dsc0rpi0n



Joined: 20 Apr 2005
Posts: 354
Location: Zagreb

PostPosted: 14.10.2005 22:33    Post subject: Add user to your forum ignore list Reply with quote

TNX ekipo Smile

_________________
::: Fortis est, qui se vincit ! ::::
Back to top
View user's profile Send private message Send e-mail Visit poster's website Twitter profile
lekke



Joined: 17 Jun 2004
Posts: 860
Location: 25th floor

PostPosted: 14.10.2005 22:58    Post subject: Add user to your forum ignore list Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group