You are here: Re: Clearing floats without introducing a new line. How? « HTML « IT news, forums, messages
Re: Clearing floats without introducing a new line. How?

Posted by Mark Parnell on 12/23/60 11:24

Previously in alt.html, Andrey Tarasevich <andreytarasevich@hotmail.com>
said:

> If the <p> text is short, the <hr> element will be squeezed between the floating
> image and the right edge of the viewport. I need the <hr> element to sit below
> the bottom edge of the image. According to what I read on the Net,

Don't believe everything you read on the Net. Most of it is wrong, to
varying degrees.

> I can easily
> achieve that by first clearing the floaters through a <br> element with a
> 'clear' attribute

That will work, though with side effects, as you noticed:

> This works, but unfortunately the <br> element has an unwanted side effect - it
> introduces a line break,

That's what a <br> is for. ;-)

Hint: add the clear attribute to the <hr> instead.

--
Mark Parnell
http://www.clarkecomputers.com.au
alt.html FAQ :: http://html-faq.com/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация