Css styles sheet Mozilla vs IE

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

countcobolt

New Member
Impact
0
Hello everyone, I new to this board and hope I am posting in the right section.
I have create a site (oh god, noooo :) ) and was trying to have this as a css stylesheet
div.centerpart
{
position:absolute;
left:120px;
right:0px;
top:120px;
bottom:15px;
}
apparently this works fine in Mozilla, but when looking at it in IE it turns up real shitty. The point is that I try to define a rectangular div which is resized according to the windows size of the browser. This way I can staticly define the size of the surrounding divs.
I get something like this
_____________
|___________|
| | | |
| | CP | |
|_|________| |
|___________|

Is there anyone who can explain to me why this doesn't work in IE? I notices this where I started to use fixed and centered backgroundimages in this DIV...


thanks in advance
Steve
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
I think you can do something in CSS like "width: 100%".
 
0
•••
or... hight:auto;
 
0
•••
hieght:auto does not define a size between to points. It will make de hieght as needed. 100% will take de pixels available if the frame would be empty
making it so that if the inner frame is 500px but start from 50px from the top, the endpoint will be at 55O px (so outside the browser window)
 
0
•••
I suspect that the problem lies with something else in your CSS affecting the positioning. IE is particularly bad at positioning in any case and when you add padding, borders and margins it goes really ape especially if you have a few floats in there as well.

Anyway, difficult to see what the problem is, can you post the URL so we can have a look at it?
 
0
•••
Truehost — .com domains from $4.99, hosting includedTruehost — .com domains from $4.99, hosting included

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back