| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
competitionmaster 2.0
Join Date: Oct 2006
Location: USA
Posts: 1,448
|
Em question
I have been looking at articles about EMs for measurement. How do you work pictures into designs since they are in px? do you have them scale with the rest of the page using ems or what? I hope that made sense. |
|
|
|
|
|
#2 (permalink) |
|
shiro
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 3,066
|
Pictures dont change size when you scale a page (usually that is - there are plug ins with which you can change that), so you can hard code the size of the image into the design with pixels. just look at how the text flows with the image after the fact. |
|
|
|
#5 (permalink) |
|
css is cool m'kay
Join Date: Mar 2007
Location: Currently Vancouver, Canada
Posts: 393
|
BBC International Television | The BBC's International Commercial TV Channels Image sizes are set in ems.. |
|
|
|
#6 (permalink) |
|
For all your goober needs
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,547
|
I tried to do this on my site, but found that no matter what I did, the images always royally screwed up when any form of scaling was done to the page. My solution? Flash. (will implement UFO when I get a chance.) Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison
prem ghinde |
|
|
|
#7 (permalink) |
|
css is cool m'kay
Join Date: Mar 2007
Location: Currently Vancouver, Canada
Posts: 393
|
Ems work great for text, but not for everything. All my pics are set in px, and my text in ems. I tend to stick fairly close to a few fundamental rules. Containers for content i tend to set width in px, then height in ems. So if the text is resized, my page wont screw up width wise, but can freely stretch vertically. |
|
![]() |