First off I've googled this alot (though I am a noob) I'm trying to make a division center on a sceen of any resolution but all my attempts so far only work on certain browsers.
These work in chrome
style type="text/css">
#container1 {
position:relative;
height:auto;
width:auto;
top:50%;
margin-top:-332px;
}
*and*
</style>
style type="text/css">
#container1 {
position:relative;
height:604;
width:auto;
top:50%;
margin-top:-332px;
}
</style>
This in IE
style type="text/css">
#container1 {
position:relative;
height:604;
width:auto;
top:50%;
margin-top:0px;
}
</style>
I'm sure there's a better way to do this. Here's the site if it matters http://www.bcstellardesigns.com/PFC.html
These work in chrome
style type="text/css">
#container1 {
position:relative;
height:auto;
width:auto;
top:50%;
margin-top:-332px;
}
*and*
</style>
style type="text/css">
#container1 {
position:relative;
height:604;
width:auto;
top:50%;
margin-top:-332px;
}
</style>
This in IE
style type="text/css">
#container1 {
position:relative;
height:604;
width:auto;
top:50%;
margin-top:0px;
}
</style>
I'm sure there's a better way to do this. Here's the site if it matters http://www.bcstellardesigns.com/PFC.html
