|
| |
|
|
TexasWebDevelopers
Posts: 722 Joined: 2/22/2002 From: Dallas, TX Status: offline
|
CSS image widths - 10/22/2008 9:57:26
I came across an interesting site yesterday: http://www.rock-on-rock-on.com/ Resize the browser and the images resize nicely with CSS. Growing and shrinking images using CSS widths is very interesting (and not often used). I'm not sure why this technique isn't used more often as it is very powerful. As long as the "largest" image is clear then reducing the size has a nice effect. The generic CSS would look something like this: div {width:90%;} div img {width:90%;} There are some caveats: IE6 does not inherit the width of a parent with an undeclared width so be careful with percentages on child elements. Also, in IE, four images each at 25% may wrap to a second line because of rounding errors--so set the widths at 24.9% to adjust. Any thoughts on this technique?
_____________________________
Follow us on TWITTER
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|