473,385 Members | 2,162 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,385 software developers and data experts.

'clear: both' just inside the current div

how can i clear float inside a div without impacting others elements?
regards.

Aug 27 '07 #1
5 6185
rf

"Jean-Sébastien" <je***************@gmail.comwrote in message
news:11**********************@19g2000hsx.googlegro ups.com...
how can i clear float inside a div without impacting others elements?
regards.
overflow: auto; on the div.

--
Richard.
Aug 27 '07 #2
..oO(rf)
>"Jean-Sébastien" <je***************@gmail.comwrote
>how can i clear float inside a div without impacting others elements?
regards.

overflow: auto; on the div.
Might cause scrollbars. Better "overflow: hidden".

Micha
Aug 27 '07 #3
In article
<11**********************@19g2000hsx.googlegroups. com>,
Jean-Sébastien <je***************@gmail.comwrote:
how can i clear float inside a div without impacting others elements?
regards.
You almost always need to provide a context on this, a url would
be nice to explain what you mean by "impacting". Mac IE has some
strange impact effects in this area. What are you referring to?

--
dorayme
Aug 27 '07 #4
rf

"Michael Fesser" <ne*****@gmx.dewrote in message
news:3f********************************@4ax.com...
.oO(rf)
>>"Jean-Sébastien" <je***************@gmail.comwrote
>>how can i clear float inside a div without impacting others elements?
regards.

overflow: auto; on the div.

Might cause scrollbars.
True, but I'd rather have a scrollbar than ...
Better "overflow: hidden".
.... missing content.

--
Richard.
Aug 27 '07 #5
On Aug 27, 4:19 am, "rf" <r...@invalid.comwrote:
"Michael Fesser" <neti...@gmx.dewrote in message

news:3f********************************@4ax.com...
.oO(rf)
>"Jean-Sébastien" <jeansebastien....@gmail.comwrote
>how can i clear float inside a div without impacting others elements?
regards.
>overflow: auto; on the div.
Might cause scrollbars.

True, but I'd rather have a scrollbar than ...
Better "overflow: hidden".

... missing content.

--
Richard.
thank you css gurus. it works for me with hidden overflow. nothing is
hidden when i use clear property.

Aug 27 '07 #6

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

Similar topics

4
by: Florian Brucker | last post by:
Hi! I've got a problem with float & clear. Take this example code: <div style=" width:100px; height:100px; background-color:#FF0000; float:left; margin:10px;"></div> <span...
6
by: Stan Brown | last post by:
http://www.acad.sunytccc.edu/instruct/sbrown/stat15/demo.htm http://www.acad.sunytccc.edu/instruct/sbrown/npscreen.css The first table is floated right (class="fr"). Text does not flow around...
6
by: yawnmoth | last post by:
In IE6, setting clear to both in a span tag seems to work, whereas it doesn't seem to work in Firefox. A demonstration can be found here: http://www.frostjedi.com/terra/dev/test3.html Any...
77
by: Ville Vainio | last post by:
I tried to clear a list today (which I do rather rarely, considering that just doing l = works most of the time) and was shocked, SHOCKED to notice that there is no clear() method. Dicts have it,...
4
by: Russell Warren | last post by:
I'm guessing no, since it skips down through any Lock semantics, but I'm wondering what the best way to clear a Queue is then. Esentially I want to do a "get all" and ignore what pops out, but I...
4
by: shapper | last post by:
Hello, Consider the following design: <div id="container"> <div id="A" class="A"></div> <div id="B" class="B"></div> </div> And the CSS classes:
4
by: Jim Carlock | last post by:
I'm working with three column layouts without tables. The page in question... http://www.microcosmotalk.com/images/garden/vine.asp Using clear:both; causes problems in the left and right...
17
by: toton | last post by:
Hi, I am using a vector to reserve certain amount of memory, and reuse it for new set of data, to avoid reallocation of memory. so the call is something like vector<my_datav;///the temporary...
8
by: Bryan | last post by:
Hello all. I'm fairly new to c++. I've written several programs using std::vectors, and they've always worked just fine. Until today. The following is a snippet of my code (sorry, can't...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...

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.