...

View Full Version : need help with making div tag work



rusty813
11-19-2010, 09:11 PM
hi i am trying to reposition an image but i believe i have it written down incorrectly so i need help to reposition the tag "class="individual_bg" in css

heres what i have tried:

.individual_bg tr td {
margin-top: 60px;
}

and here is the html coding

<table width="105%" border="0" class="profiles">
<tr>
<td width="152" height="62" class="individual_bg" background="images/profilebg/individual_bg.png"><img class="photo" src="images/profilebg/images/thumbnail/thumb001.png" /><div class="names">###</div></td>
<td width="677" rowspan="7" class="about_bg" background="images/profilebg/about_bg.png"></td>
<td width="241" rowspan="7" background="images/profilebg/info_bg.png"></td>
</tr>
<tr>
<td height="62" class="individual_bg" background="images/profilebg/individual_bg.png"><img class="photo" src="images/profilebg/images/thumbnail/thumb002.png" /><div class="names">###</div></td>
</tr>
<tr>
<td height="62" class="individual_bg" background="images/profilebg/individual_bg.png"><img class="photo" src="images/profilebg/images/thumbnail/thumb002.png" /><div class="names">###</div></td>
</tr>
<tr>
<td height="62" class="individual_bg" background="images/profilebg/individual_bg.png"><img class="photo" src="images/profilebg/images/thumbnail/thumb004.png" /><div class="names">###</div></td>
</tr>
<tr>
<td height="62" class="individual_bg" background="images/profilebg/individual_bg.png"><img class="photo" src="images/profilebg/images/thumbnail/thumb005.png" /><div class="names">###</div></td>
</tr>
<tr>
<td height="62" class="individual_bg" background="images/profilebg/individual_bg.png"><img class="photo" src="images/profilebg/images/thumbnail/thumb006.png" /><div class="names">###</div></td>
</tr>
<tr>
<td height="62" class="individual_bg" background="images/profilebg/individual_bg.png"><img class="photo" src="images/profilebg/images/thumbnail/thumb002.png" /><div class="names">###</div></td>
</tr>
</table>

Chris Hick
11-19-2010, 10:38 PM
From my knowledge you can just have the
.individual_bg {margin-top: 60px;}because your assigning the class to the td already by putting it within the td tag. Just go ahead and put the class in the tr tag too.

rusty813
11-20-2010, 12:14 AM
just tried that but nothing happen

rusty813
11-20-2010, 07:42 PM
anyone still able to help out

Excavator
11-20-2010, 07:59 PM
.individual_bg {margin-top: 60px;}, as Chris Hick, suggested should work. Your inline styles don't help much, tables are not needed here either.

Try something like this -
.individual_bg {
margin-top: 60px;
background: url(images/profilebg/individual_bg.png);
}

and here is the html coding

<table width="105%" border="0" class="profiles">
<tr>
<td width="152" height="62" class="individual_bg"><img class="photo"

A link to your site might help since your question is about an image we don't have.

rusty813
11-20-2010, 08:53 PM
yea i tried that as well, and it stated frozen in the same position here is my other css tags associated with the table. the .profiles moves the entire table, but i am looking to move just just left side of the table, but i am going to try something something else right now that should work

.profiles {
position: relative;
margin-left: 30px;
margin-top: 30px;

}

.profiles td {
background-repeat: no-repeat;
}

.individual_bg {
margin-top: 300px;
}

.names, .names a {
position: fixed;
margin-left: 14px;
margin-top: 10px;
text-align: center;
font-family: segoe script;
font-weight: bold;
color: #e6930f;
text-decoration: none;
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum