@CentauriJan 26.2007 — #Browsers apply default margins (and paddings) to various elements, and different browsers apply different values. In this case, the header tag margins are causing the problem. Insert the following at the start of your css file - it will zero out the default values (you may then have to assign some margins values later on, depending on the layout). [CODE]* {border:0; margin:0; padding:0;}[/CODE]
@CentauriJan 26.2007 — #The only things I would note are:
1. For a new page you should use a strict doctype, as you are not transitioning from anything. Also, due to lack of browser support for XML, there is not much point using anything other than html 4.o1 strict Doctype.
2. <center> tag is deprecated and proper way to center things is with margin:auto. You are still thinking a little along the lines of tables, where each item has to be placed in line with another. An overall containing div set to the desired site width, and with "margin:0 auto;" set in its css, with align and center things naturally.
3. Things don't HAVE to be put in divs - they can be styled directly. eg, the header h1 can be styled just as #contenthead can, thereby eleiminating an extra div. The navigation can be an unordered list, and the ul can have the ID of navbar - another div less.
4. Sin-of-sins..... you still have a table in there (footer). tsk tsk ?
@The_Old_SargeJan 26.2007 — #Browsers apply default margins (and paddings) to various elements, and different browsers apply different values.[/QUOTE]
Why do they continue to do this sort of thing? You would think they would all get aboard the same wagon. You would think setting standards, AND STICKING TO THEM, would benefit all in the long run.
<Maybe it's only the short term they really care about.>
in mozilla the content isnt going into the contentbox
and the quicklinks box should be on the right hand side
i understand having the content_left and right with the float tag in it is making it sit out of the contentbox. but how else can i make to columns in the contentbox with css
and in IE its in the contentbox, but the quicklinks is still down the bottem and wont align, i dont understand, i wish IE would piss off, or no one use it GRRR
@CentauriJan 26.2007 — #As both contents of #contentbox are floated, the floats need to be "cleared" if the box is to surround them - overflow:hidden on the box can do this.
Some maths also needed here. The width of your #linkshead background graphic is 234px, so that is the width #content_right has to be. As the divs contained within this stretch full width of the box, there is no need to specify widths.