I am trying to create a white border container around all my content. The container DIV is in the xhtml fine and will show up in development in dreamweaver but won’t show up in IE7 or Firefox.
Here is my full CSS, I have tried so many different ways to sort this problem out but had no success yet so far.
Not always; if a border-style value is omitted from the ‘border’ shorthand property, that value is set to it’s initial value, which doesn’t always mean a border is rendered.
Adding solid fixed the error fine for me both in ie and firefox.
Sorry if my questions are basic this is my first website in a while and my first using xhtml & css all the others i have done used tables and standard html.
I have no run into another error where my gallery is messing up the div below. When javascript is disabled so the gallery doesn’t function the page keeps is correct structure, however when the gallery is running it pulls the left content box up & out of alignment.
RyanReese, in your example there is no declaration block for ‘div.two’, but a ‘class’ attribute value of ‘two’ in the HTML.
Secondly, I think you may be getting confused with the different initial values that the three ‘border-*’ properties can use, and perhaps I wasn’t clear enough in my last post. In his example, jtrobinson omitted a ‘border-style’ value from his ‘border’ property, and as the initial value of ‘border-style’ is ‘none’, then the border isn’t rendered.
If you omit a ‘border-width’ value, then it is set to its initial value which is ‘medium’, and a border is rendered (I think you may have referring to this instance?)
If you omit a ‘border-color’ value, then the initial value is taken from the ‘color’ value.
No, I read a article that had exapmles, and it went to 3px.
What I suspect you saw an example of was when the ‘border-width’ value was omitted, which meant the initial value of ‘medium’ was rendered.
I was merely trying to inform readers of the expected behaviour, and to correct you on what you stated. Believe me, I have no spare time in the day to bicker.
Like many similar posts, this conversation is now going off-topic.
@jtrobinson: Firstly, I would recommend you fix your many HTML validation errors.