Click here to get back home

selected clearing

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
selected clearing groups2 01-24-2008
|--> Re: selected clearing aoksite1@gmail....01-24-2008
`--> Re: selected clearing Harlan Messinge...01-24-2008
Posted by groups2 on January 24, 2008, 11:36 am
Please log in for more thread options
I have a floated column on the left and a left floated main section
next to it. I have some left floated elements in the main section and
sometimes I want to clear an element so that the subsequent elements
will not be floated, but still remain floated next to the left hand
column. . However, when I add "clear:both" to an element in the main
section, it clears not only the other elements in the main section,
but the left hand column too. Everything form that point on is below
the bottom of the left hand column. How do I clear just the items in
the main section ?




Posted by Andy Dingley on January 24, 2008, 12:04 pm
Please log in for more thread options
On 24 Jan, 16:36, grou...@reenie.org wrote:
> I have a floated column on the left and a left floated main section
> next to it.

1. Post a URL to an example. This makes it easier for people to help
you. Not surprisingly, the best people are also busy people.

2. Read http://brainjar.com/css/positioning/ for guidance on most
issues with CSS box model and especially float / clear.

3. This is a CSS issue, not really HTML. Posting to c.i.w.a.s would
have been more appropriate.


Posted by aoksite1@gmail.com on January 24, 2008, 12:05 pm
Please log in for more thread options
On Jan 24, 10:36 am, grou...@reenie.org wrote:
> I have a floated column on the left and a left floated main section
> next to it. I have some left floated elements in the main section and
> sometimes I want to clear an element so that the subsequent elements
> will not be floated, but still remain floated next to the left hand
> column. . However, when I add "clear:both" to an element in the main
> section, it clears not only the other elements in the main section,
> but the left hand column too. Everything form that point on is below
> the bottom of the left hand column. How do I clear just the items in
> the main section ?


URL?

Daniel

http://a-ok-site.com

Posted by Harlan Messinger on January 24, 2008, 12:26 pm
Please log in for more thread options
groups2@reenie.org wrote:
> I have a floated column on the left and a left floated main section
> next to it. I have some left floated elements in the main section and
> sometimes I want to clear an element so that the subsequent elements
> will not be floated, but still remain floated next to the left hand
> column. . However, when I add "clear:both" to an element in the main
> section, it clears not only the other elements in the main section,
> but the left hand column too. Everything form that point on is below
> the bottom of the left hand column. How do I clear just the items in
> the main section ?

Make the main section a new "block formatting context" with overflow:
hidden.

http://www.w3.org/TR/CSS21/visuren.html#block-formatting

Similar ThreadsPosted
Screen blinking when URL selected February 26, 2005, 12:45 am
clearing out a May 3, 2005, 1:06 pm
Memory clearing and reload. January 23, 2005, 3:00 pm
Clearing floaters in Mozilla August 19, 2005, 6:03 pm
clearing only local floats November 11, 2006, 11:22 am
Clearing floats without introducing a new line. How? August 18, 2005, 2:47 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap