Jump to content

Centre In The Browser


ben03

Recommended Posts

I used the following technique to allow pages to align centrally in the browser:

body		{			font-family: Helvetica, Verdana, Arial;  			font-size: 12px;			color: #333333;			background-image:			url('images/layer2.gif');			background-repeat: repeat;			text-align: center;			}#outercontainer{			position: relative;			width: 910px;			height: 1560px;			background-color: #333333;			z-index: 1;			}

All the items in the #outercontainer are placed using absolute positioning. #outercontainer is the only part using relative positioning and the central alignment in the body tag kept it central. That was until the new firefox, IE and Safari and it now no longer works. The page just goes left in the browser. How can I overcome this?

Link to comment
Share on other sites

Giving #outercontainer margin: 0 auto should center it.

Link to comment
Share on other sites

Welkommen

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...