Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

making a background for a cell of text 1

Status
Not open for further replies.

j111111

Technical User
Dec 13, 2002
46
GB
I may have gone about this the wrong way but....

I have the basics of my website designed from a template, all linked together etc, but looking pretty boring.

On most of the pages I have a box of text in the middle, which I'm now wanting to give wavy edges, shadow effects, change colour, etc, just generally play around with so it looks a bit more interesting (the box, not the text)

Is there a way to do this in dreamweaver without having to lose all the writing on each page (could I add background stuff to a cell in my template, or would it go over the text as it would be on another layer)

Also, as some of the pages have longer bits of info, when this is displayed on the web, would the background stretch down to fit the amount of writing if it's made the box longer?

Or

Is it possible to export background graphics from eg fireworks, or would this lose/cover the text already in the cells?
 
You could use CSS to set the background image as below:

<table>
<tr>
<td style=&quot;background-image:url(&quot;../images/image.gif&quot;); background-repeat:no-repeat; background-position: center center&quot;> Text Text Text Etc </td>
</tr>
</table>

If you wanted the image to repeat if the cell was bigger then you can use 'background-repeat:repeat-x y;' x=horizontal & y=vertical.

Hope that helps

Pete
 
sorry sheltered, I'm a bit new to all this & don't understand Java (if that's what that is) - I'm just relying on these packages to let me click on buttons & do stuff. Is it still possible to do this?

Josie
 
No probs Josie, it's actually CSS which are the stylesheets for HTML (definately worth reading upon if you get chance, they make life much easier). :O)
Anyway, you should be able to add a background image to a table cell using the properties toolbar for the table. If you cant see it then go to 'Window' on the menu bar and selct properties (i think the shortcut might be Ctrl+F3?)
On the properties toolbar you should see a text field with 'Bg' to the left and a 'browse' button to the right. Just click the browse buton and find the image you want as the background. Then you can input text etc in the cell as normal.

Pete
 
Thankyou, this makes much more sense. And I've just got myself a HUGE HTML book so eventually I might even be able to understand your first answer....
 
I have a query also regarding cell background images. Have placed text in a cell which has an image background (using properties).

Would like the cell background image (BUT NOT THE TEXT) to change to a different image 'on mouse over'. Can't seem to find a behaviour that will let me do this.

I know I could add the text to the background images and use a rollover but text looks a bit 'fuzzy' this way.

Would appreciate any suggestions,

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top