hey all,
I'm running into an issue with a CSS/XHTML site that I'm doing for my old church. The problem I'm running into is that the background image that I have for the #container
hey all,
I'm running into an issue with a CSS/XHTML site that I'm doing for my old church. The problem I'm running into is that the background image that I have for the #container
Your CSS is fine, the problem is that the #container
What you need to do is add the following right before the closing
<br style="clear:both;" />
and that'll cause the container div to stretch around your content.
So basically, what the end of your code looks like will be this:
</div>
</div>
<br style="clear:both;" />
</div>
</body></html>
Originally posted by Cerebral@Aug 20 2004, 04:10 AMYour CSS is fine, the problem is that the #container
, in Mozilla, doesn't stretch to the bottom of the page. Where you see the background end is where the actual div's border is sitting.tag for the #containerWhat you need to do is add the following right before the closing
<br style="clear:both;" />and that'll cause the container div to stretch around your content.
So basically, what the end of your code looks like will be this:
</div>
</div>
<br style="clear:both;" />
</div>
</body></html><{POST_SNAPBACK}>
Thanks for the tip, Cerebral! I really appreciate it!
Just out of curiosity, would you get the same effect by having a
in that spot then have my css define it with the clear:both attribute?
Originally posted by orliville@Aug 20 2004, 02:33 AMThanks for the tip, Cerebral! I really appreciate it!
Just out of curiosity, would you get the same effect by having a
in that spot then have my css define it with the clear:both attribute?<{POST_SNAPBACK}>
To the best of my knowledge; yes, that should work. Best way to find out is to give 'er a test run, though. ![]()
Alright, now I need to fix my drop down menu for IE. The links above for the page and the code should still work.
Did you manage to make this work for IE?
Originally posted by Tadis@Aug 24 2004, 02:01 PMDid you manage to make this work for IE?
<{POST_SNAPBACK}>
I'm getting closer, I have to say that it has been a real pain though. If you look at the page in IE and go to the "test" style which is just under the navbar, you'll see what I have for IE.
Does anyone know how to set a style sheet for IE and a different one for other browsers? For example, If someone opened the site with IE, it would load a sheet especially for IE, then if some were to visit with Firefox, it would load a different sheet. Does that make sense?
the thing it that microsoft secretly made ie display css INCORRECTly so that people would change their code to work in ie and it would be messed up in firefox or safari or opera!! very evil those old men are yesyes