HI there, I am a little puzzled about how to position few divs in a site I am working on, here's the url http://antobbo.webspace.virginmedia.com/Martin/contact.htm
Basically here the idea is that the yellow main div .content
is the content wrap and should be around all the content of the page. That worked fine till I floated left the .navigation
(magenta with the navigation) box and the .paragraph
(black with the text) one, so now they are outside the yellow box.
Now from memory some time ago I read somewhere that if you float something you remove it from the normal flow, which is why presumably they are now not inside the yellow box anymore, if that's the case how do I bring them back inside?
thanks
Violet_82
89
Posting Whiz in Training
Recommended Answers
Jump to PostAfter something's been floated, it has to be cleared on the SAME level. So, after the div with class paragraph, create yet another div and give it a class clear. NOTHING GOES BETWEEN THE STARTING TAG AND ENDING TAG OF A CLEAR!
The CSS style is a simple clear:both;
…
All 4 Replies
floatingDivs
21
Junior Poster
Violet_82
89
Posting Whiz in Training
floatingDivs
21
Junior Poster
Violet_82
89
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.