/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Moving down content – overlaps footer?

The css code below works pretty well. But I want to slide the content down about 15px. So far I have not found a good way to do this. If the content is the longest item it overlaps the footer when I add;

[CODE]
#content
{
position:relative;
top:15px;
}[/CODE]

Have also tried position:fixed, position:absolute, no luck. Is there a tweak I need for the bottom? Another 15px at the bottom would be nice too.

Content is at the very top under “top”and then rests on top of the footer. Original code;

[CODE]#container
{
width: 95%;
margin: 10px auto;
background-color: #fff;
color: #333;
border: 1px solid gray;
background-image: url(images/bluestrip.jpg);
background-repeat: repeat;
line-height: 130%;
}

#top
{
padding: .0em;
background-color: #3e5e8d;
border-bottom: 1px solid gray;
}

#top h1
{
padding: 0;
margin: 0;
}

#leftnav
{
float: left;
width: 160px;
margin: 0;
padding: 1em;

}

#rightnav
{
float: right;
width: 160px;
margin: 0;
padding: 1em;
}

#content
{
margin-left: 200px;
border-left: 1px solid gray;
margin-right: 200px;
border-right: 1px solid gray;
padding: 1em;
background-color: white;
max-width: 36em;
}

#footer
{
clear: both;
margin: 0;
padding: .5em;
color: white;
background-color: #3e5e8d;
border-top: 1px solid gray;
}
[/CODE]

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@DasherauthorFeb 15.2009 — Bump -- Was my question that lame?
Copy linkTweet thisAlerts:
@DasherauthorFeb 15.2009 — I resolved it with a couple of empty gap div's
[CODE]
<style>
#gap-top {height:15px;}
</style>
[/CODE]


[code=php]<div id="gap-top">
</div>[/code]
×

Success!

Help @Dasher 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.19,
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,
)...