Welcome to Dream.In.Code
Become an Expert!

Join 150,113 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,946 people online right now. Registration is fast and FREE... Join Now!




A Question About Background Properties...

 
Reply to this topicStart new topic

A Question About Background Properties..., Is it possible to have a bg image...

UnderWing
13 Apr, 2003 - 01:05 PM
Post #1

New D.I.C Head
*

Joined: 12 Apr, 2003
Posts: 44


My Contributions
Is it possible to have a bg image in a table cell to appear only once, at the top? It's probably something to do with bgproperty or something, but I can't figure out how.

ThX!
User is offlineProfile CardPM
+Quote Post

codeman
RE: A Question About Background Properties...
13 Apr, 2003 - 03:57 PM
Post #2

w3c fanatic
*****

Joined: 12 Aug, 2001
Posts: 1,190

CSS code:

CODE

<td style ="background: #ddd url('images/cellbg.gif') no-repeat;">
</td>


If you want it only to tile across the top:

CODE

<td style ="background: #ddd url('images/cellbg.gif') repeat-x;">
</td>


If you want it only to tile down the side:

CODE

<td style ="background: #ddd url('images/cellbg.gif') repeat-y;">
</td>


You can position it as well:

CODE

<td style ="background: #ddd url('images/cellbg.gif') 20px 30px;">
</td>


The measurements are from the top left. There are a few keywords that position it in the center, top right etc. I will give those to you on request if you want.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 01:09AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month