I’ve uploaded the website mrandmrsmagic.com, whilst it looks fine when you have it maximized, minimized only half of it is shown (I took away the scroll bar because it shows up when it’s maximized so perhaps there’s something loose hanging about it.). The site itself, I used 5 different background images since I sliced them in Photoshop (It’s been awhile since I built a site from ground up so the coding is probably pretty messy.) Below is the css of the 5 div’s that I used for the body.
#body {
width: 1024px;
height: 583px;
marin: 0;
padding: 0;
position: relative;
left: 448px;
top: -128px;
background: url(../images/body_02.jpg) no-repeat left top;
}
#body2 {
width: 1024px;
height: 583px;
position: relative;
left: 448px;
top: -128px;
background: url(../images/body2_02.jpg) no-repeat left top;
}
#body3 {
width: 1024px;
height: 583px;
position: relative;
left: 448px;
top: -128px;
background: url(../images/body3_02.jpg) no-repeat left top;
}
#body4 {
width: 1024px;
height: 583px;
position: relative;
left: 448px;
top: -128px;
background: url(../images/body4_02.jpg) no-repeat left top;
}
#body5 {
width: 1024px;
height: 583px;
position: relative;
left: 448px;
top: -128px;
background: url(../images/body5_02.jpg) no-repeat left top;
}
#body6 {
width: 1024px;
height: 583px;
position: relative;
left: 448px;
top: -128px;
background: url(../images/body6_02.jpg)
}
I tried taking away the height and putting the width at 100%, but then it wasn’t remedied and it almost made it worst. So is there a way to go about switching the css around, where I can keep the 5 divs? Maybe I should make just one initial div tag, then make 5 class tags for the bodies. Would that be possible? Any and all help is appreciated, thanks.
You’re not benefiting at all from making those images backgrounds of
<div>s, and you’re probably compounding that trouble by using positioning. Without recoding the whole thing for you, here’s a ‘better’ approach:CSS
HTML