steamPunk
01-26-2008, 04:41 PM
Hi
I'm having a problem with some divs not positioning themselves how i would like them to
have a look at this page in FireFox - this is how it should look
http://www.hugoscott.com/image-archiver/index.htm
the salmon-coloured background is just to highlight the problem when you look at it in IE7 (i haven't dared open it in IE6 yet)
what am I doing wrong for it not to show up properly in IE7 ?
there isn't a lot of css yet so I'll post it on here to make things easier :
html, body, div, span, p, a, ul, ol, li, table, tr, th ,td, form, input, textarea, img, h1, h2, h3, h4, h5 {
margin:0;
padding:0;
}
body {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
background-color: #fff;
background-image:url(img/body-bg-small.gif);
background-repeat:repeat-x;
}
#frame{
position:relative;
padding-right:200px;
margin: 50px 3% 0px 3%;
background-color:#FFCC99;
}
#menu{
position:absolute;
width:170px;
top:0px;
right:0px;
}
#float-layer{
width:170px;
top:0px;
right:0px;
}
li{
list-style-type:none;
}
a {
text-decoration: none;
font-weight: bold;
color: #666;
outline: none;
}
a:visited {
color: #666;
}
a:active {
color: #666;
}
a:hover {
color: #000;
text-decoration: underline;
}
strong, b {
font-weight: bold;
}
p {
font-size: 12px;
line-height: 22px;
margin-top: 20px;
margin-bottom: 10px;
}
.content-block{
width:140px;
height:230px;
margin:10px;
border-bottom:#999999 solid 1px;
float:right;
text-align: left;
padding:0px;
border-left:0px;
border-right:0px;
}
.content-block img{
border:#999999 solid 0px;
}
.img-holder{
position:relative;
width:140px;
height:140px;
text-align: center;
}
.img-title{
color:#8C1E32;
font-weight:bold;
margin-top:5px;
margin-bottom:2px;
}
.img-photog{
margin-bottom:2px;
}
thanks
I'm having a problem with some divs not positioning themselves how i would like them to
have a look at this page in FireFox - this is how it should look
http://www.hugoscott.com/image-archiver/index.htm
the salmon-coloured background is just to highlight the problem when you look at it in IE7 (i haven't dared open it in IE6 yet)
what am I doing wrong for it not to show up properly in IE7 ?
there isn't a lot of css yet so I'll post it on here to make things easier :
html, body, div, span, p, a, ul, ol, li, table, tr, th ,td, form, input, textarea, img, h1, h2, h3, h4, h5 {
margin:0;
padding:0;
}
body {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
background-color: #fff;
background-image:url(img/body-bg-small.gif);
background-repeat:repeat-x;
}
#frame{
position:relative;
padding-right:200px;
margin: 50px 3% 0px 3%;
background-color:#FFCC99;
}
#menu{
position:absolute;
width:170px;
top:0px;
right:0px;
}
#float-layer{
width:170px;
top:0px;
right:0px;
}
li{
list-style-type:none;
}
a {
text-decoration: none;
font-weight: bold;
color: #666;
outline: none;
}
a:visited {
color: #666;
}
a:active {
color: #666;
}
a:hover {
color: #000;
text-decoration: underline;
}
strong, b {
font-weight: bold;
}
p {
font-size: 12px;
line-height: 22px;
margin-top: 20px;
margin-bottom: 10px;
}
.content-block{
width:140px;
height:230px;
margin:10px;
border-bottom:#999999 solid 1px;
float:right;
text-align: left;
padding:0px;
border-left:0px;
border-right:0px;
}
.content-block img{
border:#999999 solid 0px;
}
.img-holder{
position:relative;
width:140px;
height:140px;
text-align: center;
}
.img-title{
color:#8C1E32;
font-weight:bold;
margin-top:5px;
margin-bottom:2px;
}
.img-photog{
margin-bottom:2px;
}
thanks