NameSilo

Problem with 100% height tables in Firefox

SpaceshipSpaceship
Watch

will7

VIP Member
Impact
29
I have this code at the start of a file called "main.css":

Code:
body {
margin-left: 0px; 
margin-top: 0px; 
margin-right: 0px; 
margin-bottom: 0px; 
height: 100%; 
}

Then, I put this in the head section of my page:

Code:
<link rel="stylesheet" type="text/css" href="main.css">

When I make a table and set the height to 100%, it normally makes the table take up 100% of the height of a Firefox browser window, but now, for some reason, I only get a table with a height of about 20px. Everything else in the main.css file displays fine, so it is having no problems finding the main.css file, but it won't make the table 100%!

Why does it do that? It's always worked doing it that way before, hope someone can understand my problem and give me a hand!

Thanks,

Will.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Never mind guys, got it sorted now. I found it somewhere deep within the realms of the Internet :)

If anyone else is having the same problem as me, you just have to change:

Code:
body {
}

To:

Code:
html,body {
}

But of course, you all knew that, it was just me that didn't ;)
 
0
•••
Ah... interesting. Thanks! This helped me!
 
0
•••
your site is very nice will
 
0
•••
Glad to help Matt and thanks def1 :)
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Zero Commission
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back