![]() |
XHTML/CSS Div formatting problem
Hello guys, I'm having a bit of a problem with formatting divs for my website, and I would like some help with this. I've got a nav bar div that I would like to extend all the way to the bottom of the screen, so i assumed that height:100%; would be sufficient enough, but since testing it, I've discovered that it isn't. I've also read about it online, and apparently there are some errors with this.
I've tried setting the height element of the body, and all parent divs to 100% also, but I haven't had any luck. This is for a website I'm designing for a competition and also probably my school. <URL snipped> Note: The site will probably not look as it is intended unless you're on Firefox at 1024x768 resolution as I'm not really done making it, and a lot of its scripts (ie. the poll on the left) are not working yet. |
Re: XHTML/CSS Div formatting problem
post code or a valid URL
|
Re: XHTML/CSS Div formatting problem
Try setting the html element's height to 100% too. Some browsers need it, some don't.
|
Re: XHTML/CSS Div formatting problem
Quote:
|
Re: XHTML/CSS Div formatting problem
Nope. Some browsers treat html as a rendering element, and some don't. I don't know whether the W3C tells them to or not, but it's unimportant - it's hardly hacky.
|
Re: XHTML/CSS Div formatting problem
I thouhgt desinging to specific browsers was bad... of course the most popular browser doesn't follows W3C standards.
|
Re: XHTML/CSS Div formatting problem
Quote:
|
Re: XHTML/CSS Div formatting problem
There is a change when I add height:100; to the HTML element, but it isn't the change I was looking for. I will show you guys my code.
index.php :
<html>stylesheets :
html {I removed large chunks of what I believed to be unimportant code to this situation. I don't know if this code will help, but I still can't get it to work how I would like it to. |
Re: XHTML/CSS Div formatting problem
Another problem I'm having is getting the layout to work properly in all browsers. My sidebar doesn't reach the top on any browser I've tested other than Firefox, and on IE and Opera, the <hr /> tags that I have dividing news posts don't seem to be lining up how I'd like. I'll add my url to my signature if people would like to take a look.
If you do look, I'd suggest viewing it on Firefox at 1024x768 to see it how it's intended. |
Re: XHTML/CSS Div formatting problem
is this comp of which you speak being the thinkquest?
|
| All times are GMT -5. The time now is 11:05 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC