...

View Full Version : help centering the whole page in IE . . .



nolvorite
07-09-2007, 02:33 PM
I am making a new site and needed help in aligning the whole page in 1e6. works everywhere else except there . . . weird.

Anyways, here's my code:


<html>
<head>
<title>

</title>
<link rel="stylesheet" href="1/1.css" />
</head>
<body>
<div id="wrap">
<div id="head-s">
<h1>Header</h1>
</div>
<div id="nav">
<div class="container">
<div class="subcontainer">

</div>
</div>
</div>
<div id="text-side">
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
At vero eos et accusam et justo duo dolores et ea rebum.
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
At vero eos et accusam et justo duo dolores et ea rebum.
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis.
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, At accusam aliquyam diam diam dolore dolores duo eirmod eos erat, et nonumy sed tempor et et invidunt justo labore Stet clita ea et gubergren, kasd magna no rebum. sanctus sea sed takimata ut vero voluptua. est Lorem ipsum dolor sit amet.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.
Consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
</div>
</div>
</body>
</html>

stylesheet


body {
background:#fff;
color:#333;
font:13px lucida console;
}

#wrap {
background:#f9f9f9;
margin:0 auto;
border:2px solid #000;
width:600px;
height:500px;
overflow:scroll;
}

Rachy06
07-09-2007, 02:54 PM
how about... dont use the stylesheet, just for now.

<style type="text/css">
.IEcontainer {
text-align: center;
}
.container {
margin: 0px auto;
width: 840px;background-color: #ff0000;
text-align: left;
border-left: 1px solid #FFFFFF;
border-right: 1px solid #FFFFFF;
background-color: #ffffff;
}
</style>

put that in the header and make the necessary adjustments.

then put this in the body before the rest of the body content...


<div class="IEcontainer">
<div class="container" style="width: ; height: ">

all you need to do there is input the width and height.

don't know if that's any help.

nolvorite
07-09-2007, 03:02 PM
sorry, didn't work...no doubt...

Arbitrator
07-09-2007, 03:20 PM
margin: 0 auto doesn’t work in Internet Explorer when that browser is in quirks mode. Put a document type declaration [1] at the top of your document to put it into standards‐compliance mode. The declaration that I’d recommend is shown below.


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

[1] http://www.w3.org/QA/2002/04/valid-dtd-list.html

nolvorite
07-09-2007, 03:22 PM
oh ya I forgot that . . . thanks arbitrator . . .

Rachy06
07-09-2007, 03:27 PM
sorry about that... seems to work in all of my designs....



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum