• Welcome to The Cave of Dragonflies forums, where the smallest bugs live alongside the strongest dragons.

    Guests are not able to post messages or even read certain areas of the forums. Now, that's boring, don't you think? Registration, on the other hand, is simple, completely free of charge, and does not require you to give out any personal information at all. As soon as you register, you can take part in some of the happy fun things at the forums such as posting messages, voting in polls, sending private messages to people and being told that this is where we drink tea and eat cod.

    Of course I'm not forcing you to do anything if you don't want to, but seriously, what have you got to lose? Five seconds of your life?

My Page is Stretching

I've scrolled over. There's nothing there. I think Fx has a problem with this (which isn't the exact code, but it's close enough:
Code:
#container{
width: 98%;
position: relative;
left: 50%;
margin-left: -49%;
}
 
Indeed. That's certainly a weird way of centering your layout. It _should_ be this:

Code:
#container{
width: 98%;
position: relative;
margin: 0px auto;
}
 
That technique does not work in Internet Explorer. This does. I know there's a fix for it; I still use that sometimes. I like this way, though. I suppose Fx is the problem here. =\
 
I'm pretty sure margin:auto works in Internet Explorer 6 and up, and the older versions are very little used today. :/ Plus that fixing that is very easy by just using text-align:center on the container and then negating it within #container itself, which does not break anything in other browsers. And an even better way, since you're using percentages: why in the world don't you just use left:1%? The only reason to use left:50% and then a negative margin-left by half of the width is if the width is not a percentage. If it is a percentage, you're just pushing it right by 50% and then back left by 49%, when you could just be pushing it right by 1% in the first place.
 
I've given up on Internet Explorer 6. If you're using Internet Explorer 6, a pop-up will obstruct your view demanding that you upgrade (well it should).
 
Back
Top Bottom