You are here: Re: 'clear' help needed « HTML « IT news, forums, messages
Re: 'clear' help needed

Posted by Bergamot on 01/07/07 19:46

al jones wrote:
> On Sun, 07 Jan 2007 15:32:50 GMT, mbstevens wrote:
>
>> On Sat, 06 Jan 2007 21:24:21 -0600, al jones wrote:
>>
>>> http://aljones.us/630817vad.html
>>
>> p img {clear: left; }
>
> I read that as doing a clear left for each p or img, is that correct??

No, it's a descendant selector.
http://www.w3.org/TR/CSS21/selector.html#descendant-selectors

The suggestion above won't work in your case because you don't have
those images inside <p> elements.

One thing you could do is to put the <a> and image inside the associated
h3 element. Adding a clear:left to all h3's should always put the next
entry below any images.
<h3><a href...><img...></a>Thur. Aug. 20, 1863</h3>

h3 {clear:left}
h3 img {float:left; margin:...}

The other option is to add a class selector to each h3 that specifically
needs to be cleared, or add an inline style to them.

--
Berg

 

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

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