/    Sign up×
Community /Pin to ProfileBookmark

CSS applying to a certain area? (without pseudo)

I’m developing a new template to use with my eBay auctions, and as you probably know, whatever style you use in your template is carried onto the eBay page.

Is there a way of making your CSS apply only to your part of the page, and leave the rest untouched?

Thanks for any help.

(Currently my CSS is included on the page, not external.)

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@fredmvAug 08.2004 — Actually, this is precisely a case where you'd want to use an [font=courier]id[/font]. Quite simply, properly assign the [font=courier]id[/font] attribute of the element you'd like to style in your markup like this:id="container"And then style appropriately in the CSS:#container {
/* rules */
}

#container p {
/* rules */
}
Just define how each element (e.g., links, paragraphs, etc.) shuold be displayed in this one "container".

P.S. A [font=courier]class[/font] may also come in handy if you'd like to style several specific spots in the page with a certain style, but I'm assuming you'd only want one.
×

Success!

Help @Johnno 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.18,
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,
)...