/    Sign up×
Community /Pin to ProfileBookmark

CSS background (image) no-repeat

Hi all…first post,

I’ve got a header .jpg that contains text. Most of the text is alright, but as is frequently the case, the smaller text is not very sharp=looks bad.

So I sliced up my header image so I could delete that small text from it’s cell in the table and replace it with just regular text (styled with css, if that matters). Obviously, that can create some problems if people use their browsers to resize the text (the cell is in the middle row of my sliced image). In my case, my image is cut such that there are two cells that are effected, and here’s what I wanted to do with those two cells (1 example):

<td width=”231″ height=”57″ background=”images/slice/TopGraphic2Black_2x2.jpg” background-position=”bottom” background-repeat=”no-repeat”>

That’s not preventing the repeat of the background image, though it looks like it is positioning it correctly (I’m not positive about that). Is my syntax just messed up or can’t this be accomplished? I don’t have this site posted, so I’m hoping someone can just tell me what’s wrong with the execution.

Thanks,
CFH

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@ray326Mar 13.2006 — Why do you think those are attributes of the td element?
Copy linkTweet thisAlerts:
@thewebmanMar 13.2006 — try this: <td style="background: url(image.jpg) bottom no-repeat;">
Copy linkTweet thisAlerts:
@CFHuttonauthorMar 13.2006 — try this: <td style="background: url(image.jpg) bottom no-repeat;">[/QUOTE]

Awesome! Thank you very much.

CFH
×

Success!

Help @CFHutton 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.9,
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,
)...