/    Sign up×
Community /Pin to ProfileBookmark

background image using CSS

I am trying to apply a background image to the table my navigation bar is in. I formerly had something like:

<table background=”url of image”>

This worked fine however, I am trying not to use the attribute “background” as it does not validate. Therefore I tried some CSS (unsuccessfully) like:

<table style=”background-image: url(…)”>

This however did not work. I was thinking maybe i need to add quotations aorund the url in the parentheses like:

<table style=”background-image: url(“…”)”>
or…
<table style=”background-image: url(‘…’)”>

No idea if this line of thought is on the right track but either way all help is appreciated.

Thanks in advance,
Dave

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@ToYourEscapeauthorJan 19.2005 — No idea how, but the CSS I originally tried works fine now. I probablly made a stupid typo or something. Thanks anyways.

-Dave
Copy linkTweet thisAlerts:
@NogDogJan 19.2005 — [i]Originally posted by ToYourEscape [/i]

[B]...I probablly made a stupid typo or something....-Dave [/B][/QUOTE]

As opposed to the "smart typos" I make. ?
Copy linkTweet thisAlerts:
@SiddanJan 19.2005 — <table style="background-image: url('...')">[/QUOTE]
that is the correct line. What did I win? ?
×

Success!

Help @ToYourEscape 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.20,
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,
)...