473,324 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

selected clearing

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 ?

Jan 24 '08 #1
3 1577
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.

Jan 24 '08 #2
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
Jan 24 '08 #3
gr*****@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.h...ock-formatting
Jan 24 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Niels | last post by:
Hi group, I have some problems with clearing floated divs. My usual method works fine in Konqueror, but not in Firefox. Here's an example: <html><body> <div id='left' style='float:left;...
0
by: Gary | last post by:
I have a problem with the datagrid not clearing when the datasource changes, a few fields remain on the screen and even when new data would fill those grid squares the old data remains. I wind...
4
by: Roubles | last post by:
Hi All, Quick question; what is the difference between initializing and clearing a structure like this: mystruct_t a = {0}; and initializing and clearing it like this:
1
by: raghavendra | last post by:
Hi, i am facing problem clearing screen in console application. As, in C++ we have clrscr(); Is? their any similar type of function is avaliable.. Raghavendra...
1
by: TJS | last post by:
can someone tell me why the selected item won't reflect user change in this little droplist example <%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(ByVal sender As Object,...
1
by: James L | last post by:
Hi, I have a treeview that has to be refreshed due to data changes. Is it possible to select the last node that they were viewing when the tree view was been populated once again? I have...
65
by: Leslie Kis-Adam | last post by:
Hi everyone! Does anyone know, if it is possible to clear the screen in ANSI C? If it is,then how? Any help would be appreciated. Laszlo Kis-Adam <dfighter_AT-NOSPAM_freemail.hu
0
by: Ikke | last post by:
Hi everybody, At the moment I'm trying to figure out how to access my local database via C#. So far, I've succeeded in connecting and retrieving records. The results are displayed in a datagrid....
7
by: active | last post by:
In control panel/Display/Appearance/Effects if : 'Use the following method to smooth edges of screen fonts' is checked and ClearType is selected in the combobox (no problem if Standard is...
3
by: =?Utf-8?B?TWFyayBCb2V0dGNoZXI=?= | last post by:
I am writing a Windows Form app in c# and I've populated a combobox with values. I click on the down arrow to display the list and the list of values displays correctly. Once I select a value,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.