/    Sign up×
Community /Pin to ProfileBookmark

block user from overriding the CSS?

Hello,

Somebody told me that there is a method to block users from overriding a CSS. Is that true?

Thanks!!
Britta

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@fredmvJun 13.2004 — Cannot be done. Under Mozilla you can simply edit [font=courier]userContent.css[/font], add an important modifier to the CSS rule in question and anything can be overridden. Why exactly do you want to do this?
Copy linkTweet thisAlerts:
@bbeeckauthorJun 13.2004 — I was just curious, since somebody told me that there is a way to block users from overriding a style sheet. This made no sense to me, so I wanted to find out. I don't want to do this because a Web site should be as flexible as possible.

Thanks!

Britta Beeck
Copy linkTweet thisAlerts:
@fredmvJun 13.2004 — Not a problem! Welcome to the forums.
Copy linkTweet thisAlerts:
@Chris_BewickJun 14.2004 — Web developers should never make any attempt to block a user’s ability to override CSS on their WebPages. The use of CSS allows people with disabilities such as partial blindness to override text and colours to aid them to see the page better. Although you may not wish your page to appear in a form than the one you designed, for some this is essential. This is also the reason why the use of CSS is encouraged in favour of colour and formatting tags within (X)HTML code.
×

Success!

Help @bbeeck 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.4,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

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