/    Sign up×
Community /Pin to ProfileBookmark

Is there a way to stop a div from inheriting…

Is there a way to [I]stop[/I] a div from inheriting a background color?

I need a div to have [I]no[/I] background color, but it is inheriting a background color, and I can’t figure out a way around it.

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@felgallDec 11.2008 — There is no such thing as having no colour at all - you either give it the colour you want or let it inherit. Transparent is considered to be just a colour like all the others if that's the colour you meant.
Copy linkTweet thisAlerts:
@damon00authorDec 11.2008 — Yeah, transparent is what I had in mind. It seems to work in IE, but firefox always seems to set [I]something[/I] as a background color.

Bummer...
×

Success!

Help @damon00 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.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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