/    Sign up×
Community /Pin to ProfileBookmark

background img in table

How can you spec an image to be used for the background of a table without it automatically tiling in the table?

I think there was a CSS way to do that.

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@nkaisareMay 12.2003 — For any element, a background image can be specified using CSS. To prevent tiling, use background-repeat: no-repeat;

table{background: #fff url('bg.gif') no-repeat top right}

This defines a table with white bgcolor and bg.gif as background image positioned at top right corner, without tiling.

ADDITIONAL INFO
------------------


NS4 incorrectly inherits background image property. So, you should hide this CSS from it.

eg. inline caio hack CSS:

<table style="/*/*/ ...1... /*Unhide*/ ...2...">

styles ...1... will be hidden from NS4.7

styles ...2... will be "visible" to NS4.7.
Copy linkTweet thisAlerts:
@hastxauthorMay 13.2003 — That's the trick. Thanks for the help.
×

Success!

Help @hastx 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 5.28,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...