This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > September 2005 > Generall CSS Questions
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Generall CSS Questions
|
|
| Neil Smith 2005-09-13, 7:32 pm |
| Dear All,
this is a very general question about the nature of CSS. Can conflicts arise
where the style properties of one selector interferes with the properties of
another.
| |
| Murray *TMM* 2005-09-13, 7:32 pm |
| Well, by virtue of the Rule of Greater Specificities, one rule can take
precedence over another rule, when both apply to the same element.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"Neil Smith" <savispud2000@yahoo.co.uk> wrote in message
news:dg7851$1j3$1@forums.macromedia.com...
> Dear All,
> this is a very general question about the nature of CSS. Can conflicts
> arise where the style properties of one selector interferes with the
> properties of another.
>
| |
| Michael Fesser 2005-09-13, 7:32 pm |
| ..oO(Neil Smith)
>this is a very general question about the nature of CSS. Can conflicts arise
>where the style properties of one selector interferes with the properties of
>another.
Yep. That's why it's called _Cascading_ Stylesheets: Multiple selectors
may apply to the same element(s).
Micha
| |
| P@tty Ayers 2005-09-13, 7:33 pm |
|
"Neil Smith" <savispud2000@yahoo.co.uk> wrote in message
news:dg7851$1j3$1@forums.macromedia.com...
> Dear All,
> this is a very general question about the nature of CSS. Can conflicts
> arise where the style properties of one selector interferes with the
> properties of another.
No. The whole point of CSS is that there is a set of rules to determine
which style trumps which.
--
Patty Ayers | www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate Worksheet
--
| |
| Murray *TMM* 2005-09-13, 7:33 pm |
| Uhh - read the question again.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"P@tty Ayers" <patty@REMOVEcarolinawebsolutions.com> wrote in message
news:dg7ajq$5bq$1@forums.macromedia.com...
>
> "Neil Smith" <savispud2000@yahoo.co.uk> wrote in message
> news:dg7851$1j3$1@forums.macromedia.com...
>
> No. The whole point of CSS is that there is a set of rules to determine
> which style trumps which.
>
> --
> Patty Ayers | www.WebDevBiz.com
> Free Articles on the Business of Web Development
> Web Design Contract, Estimate Request Form, Estimate Worksheet
> --
>
>
| |
| P@tty Ayers 2005-09-13, 7:33 pm |
| I did. ?
--
Patty Ayers | www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate Worksheet
--
"Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
news:dg7ann$5kk$1@forums.macromedia.com...
> Uhh - read the question again.
>
> --
> Murray --- ICQ 71997575
> Team Macromedia Volunteer for Dreamweaver
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
> http://www.dreamweavermx-templates.com - Template Triage!
> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
> ==================
>
> "P@tty Ayers" <patty@REMOVEcarolinawebsolutions.com> wrote in message
> news:dg7ajq$5bq$1@forums.macromedia.com...
>
>
| |
| P@tty Ayers 2005-09-13, 7:33 pm |
| And what is this "conflict" like? Is certain text both green *and* red,
until the conflict is resolved?
You must mean something different by "conflict" than I would understand it
to mean. :-)
--
Patty Ayers | www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate Worksheet
--
"Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
news:dg7b7h$698$1@forums.macromedia.com...
> Rules conflict all the time. They interfere with each other all the time.
> That's what the specificity is all about.
>
> --
> Murray --- ICQ 71997575
> Team Macromedia Volunteer for Dreamweaver
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
> http://www.dreamweavermx-templates.com - Template Triage!
> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
> ==================
>
> "P@tty Ayers" <patty@REMOVEcarolinawebsolutions.com> wrote in message
> news:dg7b68$67j$1@forums.macromedia.com...
>
>
| |
| Murray *TMM* 2005-09-13, 7:33 pm |
| Rules conflict all the time. They interfere with each other all the time.
That's what the specificity is all about.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"P@tty Ayers" <patty@REMOVEcarolinawebsolutions.com> wrote in message
news:dg7b68$67j$1@forums.macromedia.com...
>I did. ?
>
>
> --
> Patty Ayers | www.WebDevBiz.com
> Free Articles on the Business of Web Development
> Web Design Contract, Estimate Request Form, Estimate Worksheet
> --
>
> "Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
> news:dg7ann$5kk$1@forums.macromedia.com...
>
>
| |
| P@tty Ayers 2005-09-13, 7:33 pm |
| There must be some kind of semantic misunderstanding here. What would be a
"conflict"? Would the two rules duke it out on the page until one was down
for a count of ten? :-)
My understanding is that any "conflicts" are instantly resolved by the
browser's interpretation of the style sheet.
--
Patty Ayers | www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate Worksheet
--
"P@tty Ayers" <patty@REMOVEcarolinawebsolutions.com> wrote in message
news:dg7b68$67j$1@forums.macromedia.com...
>I did. ?
>
>
> --
> Patty Ayers | www.WebDevBiz.com
> Free Articles on the Business of Web Development
> Web Design Contract, Estimate Request Form, Estimate Worksheet
> --
>
> "Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
> news:dg7ann$5kk$1@forums.macromedia.com...
>
>
| |
| Murray *TMM* 2005-09-13, 7:33 pm |
| > Would the two rules duke it out on the page until one was down for a count
> of ten? :-)
Yes. Precisely.
This stylesheet would create a conflict:
..navigation { color:red; }
..breadcrumb { color:blue; }
....
<p class="navigation breadcrumb">What color am I?</p>
and in this case the winner is the one closer to the element being styled.
Is that not a conflict?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"P@tty Ayers" <patty@REMOVEcarolinawebsolutions.com> wrote in message
news:dg7beg$6lv$1@forums.macromedia.com...
> There must be some kind of semantic misunderstanding here. What would be a
> "conflict"? Would the two rules duke it out on the page until one was down
> for a count of ten? :-)
>
> My understanding is that any "conflicts" are instantly resolved by the
> browser's interpretation of the style sheet.
>
>
> --
> Patty Ayers | www.WebDevBiz.com
> Free Articles on the Business of Web Development
> Web Design Contract, Estimate Request Form, Estimate Worksheet
> --
>
> "P@tty Ayers" <patty@REMOVEcarolinawebsolutions.com> wrote in message
> news:dg7b68$67j$1@forums.macromedia.com...
>
>
| |
| Michael Fesser 2005-09-13, 7:33 pm |
| ..oO(P@tty Ayers)
>And what is this "conflict" like? Is certain text both green *and* red,
>until the conflict is resolved?
>
>You must mean something different by "conflict" than I would understand it
>to mean. :-)
Multiple rules may apply to the same element at the same time, that's
what I would call a "conflict". And CSS defines rules how to resolve it
(order, specificity etc.)
BTW:
This "conflict" is a quite important part of CSS, it's "the cascade".
Micha
| |
| P@tty Ayers 2005-09-13, 7:33 pm |
|
"Michael Fesser" <netizen@gmx.de> wrote in message
news:2cfei1lvgbnplfj71ubmg54b0crv3t8ao8@4ax.com...
> .oO(P@tty Ayers)
>
>
> Multiple rules may apply to the same element at the same time, that's
> what I would call a "conflict". And CSS defines rules how to resolve it
> (order, specificity etc.)
>
> BTW:
> This "conflict" is a quite important part of CSS, it's "the cascade".
Ok, we're all saying the same thing. To me, a conflict which is resolved by
rules written for that purpose is no longer a conflict. That's why I
answered "no". But I can understand now why you and Murray said otherwise;
it's just a different way of understanding the word "conflict" in that
context.
--
Patty Ayers | www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate Worksheet
--
| |
| P@tty Ayers 2005-09-13, 7:33 pm |
|
"Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
news:dg7dce$9ku$1@forums.macromedia.com...
>
> Yes. Precisely.
>
> This stylesheet would create a conflict:
>
> .navigation { color:red; }
> .breadcrumb { color:blue; }
>
> ...
> <p class="navigation breadcrumb">What color am I?</p>
>
> and in this case the winner is the one closer to the element being styled.
>
> Is that not a conflict?
Honestly, no, I would not call a conflict which is instantaneously resolved
a conflict. But I do see why you say that. I think we're all saying the same
thing, but the words are getting in the way. :-)
--
Patty Ayers | www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate Worksheet
--
| |
| Michael Fesser 2005-09-13, 7:33 pm |
| ..oO(P@tty Ayers)
>Ok, we're all saying the same thing. To me, a conflict which is resolved by
>rules written for that purpose is no longer a conflict. That's why I
>answered "no". But I can understand now why you and Murray said otherwise;
>it's just a different way of understanding the word "conflict" in that
>context.
OK, agreed.
Micha
| |
| Murray *TMM* 2005-09-13, 7:33 pm |
| Dang words. From now on, I'll answer all posts in ASL....
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"P@tty Ayers" <patty@REMOVEcarolinawebsolutions.com> wrote in message
news:dg7flq$d19$1@forums.macromedia.com...
>
> "Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
> news:dg7dce$9ku$1@forums.macromedia.com...
>
> Honestly, no, I would not call a conflict which is instantaneously
> resolved a conflict. But I do see why you say that. I think we're all
> saying the same thing, but the words are getting in the way. :-)
>
>
> --
> Patty Ayers | www.WebDevBiz.com
> Free Articles on the Business of Web Development
> Web Design Contract, Estimate Request Form, Estimate Worksheet
> --
>
>
| |
| Al Sparber- PVII 2005-09-14, 4:20 am |
| "Michael Fesser" <netizen@gmx.de> wrote in message
news:n7hei11oc2emdse7fh3qrjcsg1bk9oiof6@4ax.com...[color=darkred]
> .oO(P@tty Ayers)
>
What happened with Neil?
;-)
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|