/    Sign up×
Community /Pin to ProfileBookmark

Footer not cooperation

Okay, got another problem, different project.
I’m working on a site (here’s the test): [URL=http://atlantacarvers.tripod.com/]http://atlantacarvers.tripod.com/[/URL] with 2 columns, header & footer. I’ve got the columns & header like I want, but the footer is not stretching across all the way. There’s a gap on the right even though the padding is to 0. I was hoping one of you gurus could spot my error!

Here’s the pertinent css:

body{
font-family: Arial, Helvetica, sans-serif;
color: #000000;
line-height: 1.166;
margin: 0px;
padding: 0px;
background: #ffffff;
text-align:center;
}
#container{
width: 98%;
padding: 0px;
background-color: #ffffff;
text-align: left;
margin-left: auto;
margin-right: auto;
border: #660000 solid 3px;
}
#masthead{
margin:0;
height: 150px;
width:100%;
background-image:url(woodbg.jpg);
border-bottom:#660000 solid 10px;
text-align: left;
}
#left{
float: left;
width:23%;
padding: 10px 10px 20px 20px;
background-color: #FFFFFF;
font-size: 13px;
font-weight: bold;
color: #660000;
font-family: Arial, Helvetica, sans-serif;
}
#content{
float: right;
width: 63%;
margin: 0px;
padding: 0px 20px 20px 0px;
}
#footer{
clear: both;
width:100%;
height: 30px;
border-top: 15px solid #CC9933;
font-size: small;
color: #cccccc;
padding: 20px 0px 10px 0px;
margin: 0px;
text-align: center;
background-color: #330000;
}

Thanks so much! (And I welcome any comments/criticism.)

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@EvangoghauthorFeb 09.2006 — Oops! Meant :"Footer not cooperating"...
Copy linkTweet thisAlerts:
@ray326Feb 10.2006 — For other eyeballs -- looks to be an IE problem.
Copy linkTweet thisAlerts:
@pcthugFeb 10.2006 — Yes indeed,

#container{

width: 98%;

padding: 0px;

background-color: #ffffff;

text-align: left;

[B]margin-left: auto;

margin-right: auto;[/B]


border: #660000 solid 3px;
Copy linkTweet thisAlerts:
@EvangoghauthorFeb 10.2006 — So, pcthug (or anyone else) -

Any ideas on how I might get it to work in IE? I thought that's what you had to do to get the thing to center on the page. Still very much a novice, I'm sure you noticed!
Copy linkTweet thisAlerts:
@EvangoghauthorFeb 10.2006 — I ended up just taking the header & footer out of the container and letting them extend all the way across, and everything looks fine. Thanks for the help, though!
×

Success!

Help @Evangogh 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 6.15,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...