/    Sign up×
Community /Pin to ProfileBookmark

position layout center

This is my layout [url]http://www.omganime.info[/url] you notice the layout isn’t horizontal centered. How can I fix this?

[CODE]@charset “utf-8”;
/* CSS Document */

body {
margin-top: 0px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}

#wrapper {
margin-right: auto;
margin-left: auto;
width: 1000px;
background-color: #FFFFC9;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-right-color: #FF0000;
border-bottom-color: #FF0000;
border-left-color: #FF0000;
float: left;
}

#top {
background-image: url(images/top.jpg);
height: 57px;
width: 1000px;
}

#header {
background-image: url(images/header.jpg);
height: 210px;
width: 1000px;
}

#bar {
background-image: url(images/bar.jpg);
background-repeat: repeat-x;
height: 30px;
width: 1000px;

}

#banner {
height: 100px;
width: 980px;
border: 1px dotted #FF0000;
margin: 10px;
background-color: #FFFFFF;
}

#content {
border: 1px dotted #FF0000;
height: 300px;
width: 550px;
background-color: #FFFFFF;
float: left;
margin-right: 10px;
margin-bottom: 10px;
margin-left: 10px;
}

#sidebar {
height: 300px;
width: 410px;
border: 1px dotted #FF0000;
background-color: #FFFFFF;
float: right;
margin-right: 10px;
margin-bottom: 10px;
}

#left {
height: 300px;
width: 200px;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #FF0000;
float: left;

}

#right {
height: 300px;
width: 200px;
background-color: #666666;
float: right;

}

#footer {
background-color: #FF0000;
height: 30px;
width: 1000px;
float: left;

}
[/CODE]

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@aj_nscSep 20.2008 — On your wrapper div:

float: left;

is why it's not centering
Copy linkTweet thisAlerts:
@BonRougeSep 20.2008 — Remove this:#wrapper {
margin-right: auto;
margin-left: auto;
width: 1000px;
background-color: #FFFFC9;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-right-color: #FF0000;
border-bottom-color: #FF0000;
border-left-color: #FF0000;
[COLOR="Red"] float: left;[/COLOR]
}
Copy linkTweet thisAlerts:
@RurikoauthorSep 20.2008 — If I remove the float: left; the yellow background doesn't go down. Anyway to fix this?
Copy linkTweet thisAlerts:
@BonRougeSep 20.2008 — Try adding "overflow:auto;" to the #wrapper rules.
×

Success!

Help @Ruriko spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...