/    Sign up×
Community /Pin to ProfileBookmark

background image for TR element

This sounds silly. I have a table and I want one of the rows (TR element) to have a background image that does not repeat. But it repeats the image anyway!! It put the image in each cell in that row but I want that image to appear only once in the row NOT appear in every cell in that row. How do I achieve this?? I have something like:

<table width=”500″>
<tr style=”background-image=url(images/myImage.jpg); background-repeat:no-repeat”>
<td>hello1<td>
<td>hello2</td>
</tr>
</table>

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@BonRougeNov 04.2005 — I think the trick is to make sure none of your users ever uses Internet Explorer, as the code you have will work fine in good browsers (except you've used '=' instead of ':')
Copy linkTweet thisAlerts:
@ray326Nov 04.2005 — And you can simplify it to

<tr style="background:url(images/myImang.jpg) no-repeat">
×

Success!

Help @Seboko spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...