15 replies [Last post]
_com
Offline
Regular
Last seen: 18 years 22 weeks ago
Joined: 2005-01-04
Posts: 31
Points: 0

First of all: all posts should be replied if it were only that the question asked is maybe not clear enough ...

Now my question:

If using this

img.button {width:21px ! important; height: 12px ! important;}

<img class="button" src="button.gif" width="0" height="0">

which browsers choke on the ! important declaration

IE chokes when redeclaring the same declaration eg

img.button {width:21px ! important; height: 12px ! important; width: 100%; height: auto}

Clearly my given example
img.button {width:21px ! important; height: 12px ! important;}

is not as the one that might choke IE

but are there any other problems in other browsers. I know that this is a CSS1 prop but note this TIn CSS1, author "!important" rules took precedence over user "!important" rules.

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 2 days 6 hours ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

Re: ! important declaration

_com wrote:
First of all: all posts should be replied if it were only that the question asked is maybe not clear enough ...

Oh, right! You sure no how to get your readers in the mood to answer your questions.

http://www.google.com/search?sourceid=mozclient&ie=utf-8&oe=utf-8&q=css+'!important'+bugs

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 8 years 21 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

! important declaration

_com

Were not going to have a repeat of the previous confusing posts are we ?
http://www.csscreator.com/css-forum/ftopic7212.html

http://www.csscreator.com/css-forum/ftopic7145.html

http://www.csscreator.com/css-forum/ftopic7099.html

I do not understand your first sentence :?

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

_com
Offline
Regular
Last seen: 18 years 22 weeks ago
Joined: 2005-01-04
Posts: 31
Points: 0

a reaction

Do clarify: I thought to mention that when people post a question there are often 0 replies - of course some people do not know how to post a question. But then at least the moderators here or experienced users should at least reply these 0 reply posts that one should reformulate their questions and if they would need help to achieve this give it to them.

Your reply: is nonsensical. I try to help these buggers who still have 0 replies. If that is not being sociable - then you simply are not following the point I am making.

So help if you can or otherwise mind your tone. If I am a moderator ... I am not getting paid here

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 1 year 5 weeks ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

Re: a reaction

_com wrote:

Do clarify: I thought to mention that when people post a question there are often 0 replies - of course some people do not know how to post a question. But then at least the moderators here or experienced users should at least reply these 0 reply posts that one should reformulate their questions and if they would need help to achieve this give it to them.

Your reply: is nonsensical. I try to help these buggers who still have 0 replies. If that is not being sociable - then you simply are not following the point I am making.

So help if you can or otherwise mind your tone. If I am a moderator ... I am not getting paid here

I'm guessing English isn't your first language?

The reason we don't reply to all posts is that it's pointless us saying something like "sorry, we don't understand", when in most cases we do. We just can't help them Laughing out loud

When I see an orange block by a topic, I expect the post to be an answer to the question, not just 'huh'? It would get the original poster's hopes up that someone has answered their problem.

Let me try and translate this:

Quote:
First of all: all posts should be replied if it were only that the question asked is maybe not clear enough ...

Quote:

First up: Please only reply to this post if I haven't asked the question clearly, or you can help with the problem.

Verschwindende wrote:
  • CSS doesn't make pies

briski
briski's picture
Offline
Elder
London
Last seen: 10 years 51 weeks ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

Re: a reaction

_com wrote:
Do clarify: I thought to mention that when people post a question there are often 0 replies - of course some people do not know how to post a question. But then at least the moderators here or experienced users should at least reply these 0 reply posts that one should reformulate their questions and if they would need help to achieve this give it to them.

Your reply: is nonsensical. I try to help these buggers who still have 0 replies. If that is not being sociable - then you simply are not following the point I am making.

So help if you can or otherwise mind your tone. If I am a moderator ... I am not getting paid here

There could be a lingistic missunderstanding here but you come across as rather rude. People here qive up a lot of their time for free to try and help people. You should bare that in mind when asking questions or replying to answers/posts.

Of course if we have missunderstood I can but appoligise.

[edit]Hmm having read the other threads I get the distinct impression this a a deliberate game of "annoy the forum members for a laugh". Maybe I am too cynical today Wink [/edit]

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 8 years 21 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

! important declaration

_com wrote:
Your reply: is nonsensical. I try to help these buggers who still have 0 replies. If that is not being sociable - then you simply are not following the point I am making.

So help if you can or otherwise mind your tone. If I am a moderator ... I am not getting paid here


kindly explain the last part of your post. Frankly I do not care for the tone but am prepared to give you the benefit of the doubt on it and that I have not understood what you were trying to convey.

As briski says it's coming across as rude and I am sourly tempted to lock out the post.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

_com
Offline
Regular
Last seen: 18 years 22 weeks ago
Joined: 2005-01-04
Posts: 31
Points: 0

reaction

I was merely pointing out that due to the people that answer the questions posted on this forum, do not do their infinite best to reply.

Mostly you get average answers but that is also influenced by the expertise one has to answer a question posted about CSS or whatever.

How often people on this forum or other are not focussed on answering questions but merely are having a laugh with so called dumb questions or beginners' questions.

It is plain simple. A well accomplished webdeveloper or webdesigner that knows his/her stuff will be able to answer any question related to CSS.

And of course, are there people posting in a hurry or do not have the ability to write flawless english for that matter. But this website making thing is an international scene so english is the way to go.

But when you post a question - one should include HTML and the CSS related to what you try to achieve. And formulate what problem you have 1) could be you dont know good your CSS 1-2-3 2) could be you dont know what browser has problems with certain CSS rules - so compatibility issues with browsers and so on. But I think the code is the most important the CSS and HTML - and a good question that is well formulated. But formulating that question can be a hassle if you dont know what you are doing wrong.

That is what a technical forum like this should be!

_com
Offline
Regular
Last seen: 18 years 22 weeks ago
Joined: 2005-01-04
Posts: 31
Points: 0

reaction

And you see now I still do not know if the ! important CSS rule has any browser interpretation flaws. Meaning I need to know all there is to it, not only that eg IE does not apply the ! important rule if redeclared in the same declaration

eg IE might not apply the ! important rule

.styleApplied {color: white; color: black ! important;}

Are there any other CSS 1-2-3 browsers having problems with using the ! important CSS rule.

You see the many words written in all these posts here should be about helping with code.

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 1 year 5 weeks ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

! important declaration

As far as I know, older browsers won't see the !important rule.

Verschwindende wrote:
  • CSS doesn't make pies

_com
Offline
Regular
Last seen: 18 years 22 weeks ago
Joined: 2005-01-04
Posts: 31
Points: 0

reaction

thepineapplehead wrote:
As far as I know, older browsers won't see the !important rule.

Do you mean older browsers: NN3, IE3, NN4.x they do not implement CSS [CSS 1] or have a poor implementation of CSS.

Older browser could stand for browsers like IE4 or IE5 for that matter or even Opera 5 or 6.

Of course your answer is good nor false. In fact, it is mere logic that older browsers do not implement CSS well or even no CSS implementation what so ever.

Lorraine
Lorraine's picture
Offline
Elder
UK
Last seen: 16 years 41 weeks ago
UK
Timezone: GMT+1
Joined: 2005-01-04
Posts: 1001
Points: 0

! important declaration

This is your one-stop shop for css support in browsers
http://www.westciv.com/style_master/academy/browser_support/

Also, check out http://www.w3.org/TR/REC-CSS2/cascade.html#x11

Quote:
6.4.2 !important rules
CSS attempts to create a balance of power between author and user style sheets. By default, rules in an author's style sheet override those in a user's style sheet (see cascade rule 3).

However, for balance, an "!important" declaration (the keywords "!" and "important" follow the declaration) takes precedence over a normal declaration. Both author and user style sheets may contain "!important" declarations, and user "!important" rules override author "!important" rules. This CSS feature improves accessibility of documents by giving users with special requirements (large fonts, color combinations, etc.) control over presentation.

Note. This is a semantic change since CSS1. In CSS1, author "!important" rules took precedence over user "!important" rules.
It might make sense, if you are going to try to impose some specific visuals, to appreciate your !important can now be overridden - so, maybe, it is no longer so... erm.. important.

BTW nobody gets paid here. Most of the volume posters and gurus are busy people trying to earn a living wage, yet they still make time to try to help out even at some financial cost to themselves. Be fair :-$

_com
Offline
Regular
Last seen: 18 years 22 weeks ago
Joined: 2005-01-04
Posts: 31
Points: 0

polyglot

Et bien ... maintenant nous savons toujours absolument rien du tout sur la sujet de ! important.

C'est grave ....

Y a Hora ... nosotros sabemos nada ....

No babelizer involved here.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 8 years 21 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

! important declaration

_com I do not think that it is your place to go around criticizing members of this forum, the fact that you perceive a situation where your questions are not directly answered has a lot to do with the fact that, as has been mentioned often, we find them confusing to say the least and that often your responses come across as aggressive and rude, now to a certain extent leeway must be made for the fact that english is not apparently ? your first language, but that does not I'm afraid excuse you completely from being courteous towards members of the forum regardless of how they may seem to respond to you, and to explain at length how we should be conducting ourselves on this forum is just a bit odd as mostly we provide a great deal of help to people who seem by and large fairly grateful.

Your last post here is a case in point, TPH has attempted to provide something by way of an answer to your question yet your reply reads as though your saying that he shouldn't have bothered as this fact is self evident ! sorry but that is just disrespectful to a member of this forum and is not the correct way of conducting yourself when your here requesting help.

If I was not happy with the responses I was getting to a question such as this I would not be wasting my time criticizing members of the forum but would be turning my attention to google where with about 30 minutes work I would probably have answered the question.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

antibland
antibland's picture
Offline
Leader
Pittsburgh
Last seen: 14 years 21 weeks ago
Pittsburgh
Joined: 2005-01-17
Posts: 603
Points: 0

! important declaration

Oh, for the love of god, somone please lock this thread. He's nothing but a baboon showman.

- Antibland

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 8 years 21 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

! important declaration

Thankyou Lorraine, that's a good post and informative.

So _com are you Spanish, French or really a native English speaker just out to have a laugh with us ?

Reply not needed, question answered hopefully to your satisfaction, I'm now locking this thread.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me