Forum Moderators: not2easy
[edited by: SuzyUK at 3:11 pm (utc) on June 8, 2004]
[edit reason] removed specifics [/edit]
I know that some of this is in PHP but the page layout itself is done in css, I dont wish to violate any of the discussion board rules. Thanks again for your help.
<html>
<head>
<style>
.rotate {
border-color: #FFF4B9;
border-style: inset;
}
.rightfloat {float: right;}
</style>
</head>
<body>
<img class="rotate rightfloat" src="rotate/rotate_<?=rand(1,96);?>.jpg">
</body>
</html>
so it must be something else affected it. Possibly something to do with the containing element, or maybe even an error further up in you CSS.
Can you post a bit more code to put it all in context?
/* CSS Document */
a {
color: #FFF4B9;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
text-decoration: none;
}
a:hover {
color: #7FA7EE;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
text-decoration: underline;
}
body, td {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
background-color: #000000;
}
image {
margin-left: 5px;
margin-right: 3px;
margin-top: 2px;
}
p {
color: #BABCC8;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
padding-left: 15px;
padding-right: 5px;
padding-top: 3px;
}
/*Top, Right, Left, and Bottom*/
.border7 {
border-bottom: 1px solid;
border-left: 1px solid;
border-right: 1px solid;
border-top: 1px solid;
border-color: #007375;
border: thin ridge #007375;
}
.disclaim {
color:#666666;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
}
.img {
margin-left: 5px;
margin-right: 3px;
margin-top: 2px;
}
.rotate {
border-color: #FFF4B9;
border-style: inset;
}
.rightfloat {float: right;}
.text {
background-color: #535353;
border-color: #007375;
border-style: inset;
margin-left: 50px;
margin-right: 50px;
padding-left: 5px;
padding-right: 5px;
border: thin ridge #007375;
}
.text2 {
background-color: #535353;
border-color: #007375;
border: thin ridge #007375;
margin-left: 10px;
margin-right: 10px;
padding-left: 5px;
padding-right: 25px;
}
.text3 {
margin-left: 5px;
padding-left: 5px;
padding-right: 5px;
}
[edited by: DrDoc at 5:02 pm (utc) on June 8, 2004]
[edit reason] No URLs, thanks. See TOS [webmasterworld.com] [/edit]
[edited by: DrDoc at 5:10 pm (utc) on June 8, 2004]
[edit reason] Removed specifics [/edit]
<td width="35" align="right" valign="middle" bgcolor="#000000">
You're putting all your large images in a 35px width table cell. This is screwing up your layout.
It looks to me as if you've got some caching issues to deal with too, but this may just be a side-effect of the above.
[edited by: DrDoc at 5:30 pm (utc) on June 8, 2004]