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?
Jump to Post
After 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
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.