DW help images/background in a cell

Joined
Dec 20, 2006
Messages
423
Reaction score
15
Points
18
Location
New Eng
Your Mac's Specs
MacBook white, 2.0 Intel Core 2 Duo Pro, 2 GB RAM, 13" screen
I tried to replace a slice by using it as a backgound instead. Then I'm going to put text over it. I'm using the steps in the Super Tutorial on "the Cafe". Too tired to get the link right now, sorry.

I think the cell and the image need to be the exact same size. I think I know the size of my image. But I can't figure out how to tell the size of the cell. How do I do that?
 

Del


Joined
Dec 24, 2006
Messages
901
Reaction score
15
Points
18
Location
N. Ireland
Your Mac's Specs
Mac Pro 2xQuad core 2.8GHZ
When you say cell do you mean a cell in a table ie a TD tag?

if so something along these lines would fit your bill....

Code:
<td style="background-image: url('nameandpathofbackground.jpg');width:xxpx; height:xxpx;">

where xx is replaced by the size in pixels of the image.
 
OP
rcronin
Joined
Dec 20, 2006
Messages
423
Reaction score
15
Points
18
Location
New Eng
Your Mac's Specs
MacBook white, 2.0 Intel Core 2 Duo Pro, 2 GB RAM, 13" screen
When you say cell do you mean a cell in a table ie a TD tag?

if so something along these lines would fit your bill....

Code:
<td style="background-image: url('nameandpathofbackground.jpg');width:xxpx; height:xxpx;">

where xx is replaced by the size in pixels of the image.

Thanks, I'm going to have to look at that a few times to figure it out. I spent the AM trying to fix the html for the naviagation bar. Don't know why it would work on 2 pages but not the rest.... Was cutting and pasting up a storm - a bit scary, since what I know about html wouldn't fill a teaspoon.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top