473,796 Members | 2,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1597
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
8089
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; border:1px solid red;'>Floated left</div> <div id='right' style='float:right; border:1px solid blue;'>Floated right</div>
0
1911
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 up with 101 Another field
4
9536
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
2015
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
1769
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, ByVal e As EventArgs)
1
9986
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 tried getting the selected node and then expanding it in the refreshed tree view using expand() but it does not do it. Thanks for any help.
65
8646
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
1281
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. However, when I load the results again, I get an error: Unhandled Exception: Microsoft.Data.Odbc.OdbcException: ERROR 1046 No database selected
7
2998
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 selected) I get a crazy font display in parts of my picturebox.
3
13302
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, the list disappears and the selected value does NOT display as the selected item. If I click the down arrow again and re-select the value, this time it displays. What's wrong?
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9535
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10467
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10244
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4130
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.