Login    Forum    Search    FAQ   Blog

Board index » Client-Side Development » HTML & CSS




 Page 1 of 1 [ 2 posts ] 



Author Message
 Post subject: Problems with positioning a background image in a table cell
 Post Posted: Wed Mar 11, 2009 1:54 am 
Offline

Joined: Sat Feb 21, 2009 2:57 pm
Posts: 67
I'm trying to line up a background image for a table cell so that it always lies flush with the bottom of the cell, using "background-position" in my external stylesheet. I'm not sure what I'm doing wrong, but the image keeps appearing at the top of the cell.

Here is the CSS I'm using in my external stylesheet:

td.paddedmain
{padding-left: 3%; background:url('http://www.example.com/images/maincontentareabg.gif') background-position: bottom center; background-repeat: repeat-x;}

And here's the HTML for the table cell:

<TD COLSPAN=9 class="paddedmain" valign="bottom">

Content here

</TD>

Can anyone help me figure out where I'm going wrong?

Thanks in advance!


Top 
 Post subject: Re: Problems with positioning a background image in a table cell
 Post Posted: Sat Mar 14, 2009 9:26 am 
Offline

Joined: Wed Feb 25, 2009 1:53 pm
Posts: 7
your missing a semicolon and background as multiple properties in single attribute


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 2 posts ] 




Board index » Client-Side Development » HTML & CSS


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron