3 replies [Last post]
xkatx21x
Offline
Regular
Last seen: 12 years 4 weeks ago
Joined: 2007-09-22
Posts: 13
Points: 0

can someone tell me whats wrong the this code?

Solid Construction

body{
background-color:black;
}

#content{
text-align:center;
width:200px;
}

#right{
float:right;
text-style:verdana;
color:white;
}

#left{
float:left;
text-style:verdana;
color:white;
}

←BACK

What i want is a black background with the picture in the center and a white arrow back and next link on either side of the pic.

I'm still learning :?

xkatx21x
Offline
Regular
Last seen: 12 years 4 weeks ago
Joined: 2007-09-22
Posts: 13
Points: 0

oops should say

oops should say content{width:800px} but that doesn't fix it.

dhaynes
dhaynes's picture
Offline
Regular
Midwest, US
Last seen: 11 years 25 weeks ago
Midwest, US
Timezone: GMT-4
Joined: 2007-05-20
Posts: 38
Points: 0

Whats wrong with it is that

Whats wrong with it is that you have your divs in the wrong order and you didn't really center the image in the content div, all you did was center the text in it (hence text-align). Here I made some changes to your code:

Solid Construction

body{
background-color:black;
color: white;
}

#content{
text-align:center;
width:800px;
margin: 0 auto;
}

#right a{
float:right;
text-style:verdana;
color:white;
}

#left a {
float:left;
text-style:verdana;
color:white;
}

This is an image.

←BACK

Need a Wordpress site? I'm your guy.

xkatx21x
Offline
Regular
Last seen: 12 years 4 weeks ago
Joined: 2007-09-22
Posts: 13
Points: 0

Thank You Thank You Thank

Thank You Thank You Thank You :thumbsup: