squiblo Posted January 11, 2010 Share Posted January 11, 2010 the code below works in all browers for positioning the div in the middle of the page apart from I.E because they are GAY and think they are special. Any ideas on how to get this to work, thanks. .black_back { width: 510px; height: 510px; position:fixed; top: 0; right: 0; bottom: 0; left: 0; margin: auto; background-color:black; border:1px solid black; /* for IE */ filter:alpha(opacity=30); /* CSS3 standard */ opacity:0.3; z-index: 2; } <div class='black_back'> TEXT </div> Link to comment https://forums.phpfreaks.com/topic/188119-ie-problems-again-for-centering-div/ Share on other sites More sharing options...
squiblo Posted January 11, 2010 Author Share Posted January 11, 2010 or if there is another way to find center page without using css that would be helpfull Link to comment https://forums.phpfreaks.com/topic/188119-ie-problems-again-for-centering-div/#findComment-993191 Share on other sites More sharing options...
haku Posted January 12, 2010 Share Posted January 12, 2010 deleted. Link to comment https://forums.phpfreaks.com/topic/188119-ie-problems-again-for-centering-div/#findComment-993244 Share on other sites More sharing options...
haku Posted January 12, 2010 Share Posted January 12, 2010 Try this: .black_back { width: 510px; height: 510px; position:fixed; top: 50%; left: 50%; margin-left:-255px; margin-top:-255px; background-color:black; border:1px solid black; /* for IE */ filter:alpha(opacity=30); /* CSS3 standard */ opacity:0.3; z-index: 2; } Link to comment https://forums.phpfreaks.com/topic/188119-ie-problems-again-for-centering-div/#findComment-993247 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.