/    Sign up×
Community /Pin to ProfileBookmark

Footer isn’t behaving! -.-

Hi all just wondering if someone could help… i know im doing something stupid and overlooking it but i sorta have to figure this out pretty quick so i thought it might be easier to paste it on here

Basically only half the footer is showing… i know this is because its on the middle div tags (set to 610px) but its the only way i can get it to stick down the bottom of the page…

CSS:

[QUOTE]

body {
font-family: Arial, Helvetica, serif;
font-size: 26px;
color: #000000;
}
img
{
border-style: none;
}

#wrapper {
margin-left: auto;
margin-right: auto;
width: auto;
}

#container {
margin-left: auto;
margin-right: auto;
width: 1000px;
}

#header {
background: url(“images/header.jpg”) repeat-x;
height: 200px;
width: auto;
margin-right: -10px;
margin-left: -10px;

}

#contentmiddle {
background-color: #FFFFFF;
margin-left: auto;
margin-right: auto;
width: 610px;
height: auto;
font-family: Arial, Helvetica, serif;
font-size: 14px;
text-align: left;
color: #000000;
float: left;
}

#contentleft {
background-color: #F3F3F3;
position:relative;
top: 50px;
border:2px solid #F3F3F3;
-moz-border-radius:15px; /* Firefox */
border-radius:15px;
width: 295px;
height: auto;
font-family: Arial, Helvetica, serif;
font-size: 12px;
text-align: left;
color: #000000;
float: right;
padding: 10px;
}

#footer {
background: url(“images/footer.jpg”) no-repeat;
font-family: Arial, Helvetica, serif;
font-size: 10px;
text-align: center;
color: #000000;
margin-left: auto;
margin-right: auto;
}

#menu {
margin-left: auto;
margin-right:auto;
width: 960px;
}

.menuitem {
margin: auto;
padding: 20px 0 0 10px;
text-decoration: none;
font-family: Arial, Helvetica, serif;
font-size: 16px;
text-align: right;
color: #000000;
}

.menu li {
min-width: 130px;
max-height: 51px;
}

.menu a {
margin-left: -25px;
margin-right: 10px;
padding: 0px 20px 0px 20px;
width: 130px;
}
.menuitem a:visited { text-decoration: none; }
.menuitem a:active { text-decoration: underline; }
.menuitem a:hover { text-decoration: underline; }

[/QUOTE]

HTML:

[QUOTE]

<div id=”wrapper”>
<div id=”header”>

<div id=”menu”>
<a href=”index.html” class=”menuitem”>Home</a><span style=”color: #FFFFFF;”> &nbsp; | </span>
<a href=”programming.html” class=”menuitem”>Programming</a><span style=”color: #FFFFFF;”> &nbsp; | </span>
<a href=”digitalmedia.html” class=”menuitem”>Media Design</a><span style=”color: #FFFFFF;”> &nbsp; | </span>
<a href=”databasedesign.html” class=”menuitem”>Database</a><span style=”color: #FFFFFF;”> &nbsp; | </span>
<a href=”webdevelopment.html” class=”menuitem”>Web Dev</a><span style=”color: #FFFFFF;”> &nbsp; | </span>
<a href=”resume.html” class=”menuitem”>Resume</a><span style=”color: #FFFFFF;”> &nbsp; | </span>
</div>
</div>
<div id=”container”>
<div id=”contentmiddle”>
<h1> Header </h1>
<br/>
<p> Paragraph 1 </p>
<p> Paragraph 2</p>
<p> Paragraph 3</p>
<p> Paragraph 4</p>

<div id=”footer”>
<br/>
<p> &copy copywrite information goes here <br /> other details go down here, like year and developer information</p>
</div>

</div>
<div id=”contentleft”>
<p> test content </p>
</div>

</div>
</div>[/QUOTE]

Thanks Heaps ? ill keep playing with it too and see if i can come up with anything

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@web_dev_is_hardauthorFeb 20.2011 — Still haven't got it :/ I spent a fair amount of time over the weekend trying to see where the problem is... I know I'm over looking something but no idea what! Any ideas anyone please ??
Copy linkTweet thisAlerts:
@Big_O_1_Feb 21.2011 — since your footer is inside contentmiddle, its width will be that of contentmiddle which is 610px as you said. Unless you want to mess with overflow, I recommend you take it out of contentmiddle and place it as a direct child of container so it's a sibling of contentmiddle. Then apply the CSS clear: both so it gets pushed down far enough until it clears contentmiddle and spans the width of the container.

PS: it's always best to link to a live page that shows the problem rather than paste the code. That saves us time so we don't have to create a new document and paste your code into it before we can help.
Copy linkTweet thisAlerts:
@web_dev_is_hardauthorFeb 21.2011 — Thanks so much!

I knew i was doing something stupid! i forgot the clear attribute ?

Thanks Big O!

Also i understand what you mean about the live page... its just i don't it online yet... but in future i will try to throw it up on a server
×

Success!

Help @web_dev_is_hard 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.18,
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,
)...