Previous Message
Next Message

Dynamic margin-bottom

Sent by Christian Heilmann on 5 August 2005 11:11


On 8/5/05, Marcel Pociot [EMAIL-REMOVED]> wrote:
> So my problem is the following:
> If I set the margin-bottom for the small gif to a fixed height, like 100px,
> articles that have smaller images and less text than 100px look very messy
> because of the overlapping margin-bottom.
> 
> You can take a look at it here: http://www.my-band.de/xbyte/css_problem.gif

Why don't you use the image as a background of the parent and enough
padding to the left to show it?

Another option would be to float the article to the right and give it
a padding margin wide enough to show the image.





-- 
Chris Heilmann 
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/  
Binaries: http://www.onlinetools.org/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: