This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > Cell Background





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Cell Background
jordan2318

2004-08-11, 7:15 am

I want to put an image in a cell, but i dont want it to repeat when the cell get bigger.
Osgood

2004-08-11, 7:15 am

jordan2318 wrote:
> I want to put an image in a cell, but i dont want it to repeat when the cell get bigger.


Name your background image bg.jpg and save it in a folder named 'images'
in your site root folder.

Copy and paste the code below to directly before the closing </head> tag
in YOUR pages code (open your page in code view. The </head> tag is near
the top of the page)

<style>
<!--
#bgimage }
background-image: url(images/bg.jpg);
background-repeat: no-repeat;
}
-->
</style>


Switch back to DW design view. From the line of tags along the bottom of
the DW screen, to the left, select the cell <td> or <table>, that you
want your bg image to appear in, open the css id selector and choose
bgimage

<td id="bgimage"></td>

Osgood

2004-08-11, 7:15 am

Osgood wrote:

> <style>
> <!--
> #bgimage }
> background-image: url(images/bg.jpg);
> background-repeat: no-repeat;
> }
> -->
> </style>


I typed the bracket, after #bgimage the wrong way around, should be as
below.



<style>
<!--
#bgimage {
background-image: url(images/bg.jpg);
background-repeat: no-repeat;
}
-->
</style>

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews