/    Sign up×
Community /Pin to ProfileBookmark

Floating position problem

Below is the style sheet that I’m working on. With the assistance of someone in this forum, I was able to get everything positioned as I needed it with the exception of one roll-over link. It is vertically in the correct position, but horizontally it is in the center of the center image. What type of margin/alignment can I add to the “mission” div to move it to the right approximately 75px without moving any other of the roll-overs?

div {}

img {
border: solid 0;}

.footer {
text-align: center;}

body {
background-color: #000000;
margin: 0;
padding: 0;
text-align: center;
}

#header {
background-image: url(images/header.jpg);
background-repeat: no-repeat;
background-position: center top;
margin: 0px;
padding: 0px;
height: 84px;}

#Center { /*center image*/
background-image: url(images/lgsun.jpg);
background-repeat: no-repeat;
background-position: center top;
height: 380px;
width: 550px;
padding: 3px;
margin: 0px auto;
}
#Photos { /*rollover image*/
float: left;
margin-top: 75px;
width: 121px;
height: 61px;
}

#Rhythms { /*rollover image*/
float: right;
margin-top: 75px;
width: 149px;
height: 65px;
}

#Mission { /*rollover image*/
float: right;
margin-top: 240px;
width: 216px;
height: 60px;}

#Calendar { /*rollover image*/
float: left;
margin-top: 100px;
width: 154px;
height: 61px;
}

a:link {
color: #DBBFB3;
text-decoration: none;
font-family: “Comic Sans MS”;
font-size: 20px;
font-weight: bold;}

a:visited {
color: #885039;
text-decoration: none;
font-family: “Comic Sans MS”;
font-size: 20px;
font-weight: bold;}

a:hover {
text-decoration: underline;
font-family: “Comic Sans MS”;
text-align: center;
font-size: 20px;
font-weight: bold;}

a:active {}

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@KDLAMar 29.2006 — You might try a padding-top setting. That will push the text down, and not effect the rest of your layout, as a margin-top setting might.

KDLA
×

Success!

Help @LT0012 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.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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