tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Ok so i made a background and a content header. This is my css code for the BG and header.
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
or remove the absolute positioning from #navhead. To give it the margin of 10px (I assume that's what you want?) just use margin and or padding.
absolute positioning takes an element out of the document flow. So if you give navhead an absolute position it will not influence its parent element bg anymore. And therefore the parent element collapses. Hope I explain it well, but if you look for some css positioning articles on for example positioniseverything.net you'll find better explanations.
Quick fix for the bg, you specified inherit for the bg div but it is a parent element. It has nothing to inherit, thus it will not expand. To fix this do...
doesnt matter anymore i gotta redo the whole damn thing cause for my news system i make it so it remakes a news box under the first one so on and so on but i cant with absolute positioning ugh im so confused
If you let us know what you want (maybe with an image) I'm sure it is not difficult to do. The code I gave definately works (removing the inherit thing, looked over that)
Aah, now I see. The navhead is floated, and therefore is taken out of the "flow" of the element. It has to be cleared in some way to have the parent container expand. That can often be done with another element that's already in the document, like for example a footer
if you search for some tutorial on css layouts with floats, you'll find many examples of 2 kol layouts with a header and footer which use this sort of model. Maxdesign.com.au has some very good tuts on floats.