| Author |
Shorthand and non-shorthand combined valid?
|
|
| Coen Naninck 2004-04-21, 2:36 pm |
|
I have two questions:
1) Hi, is this valid?:
#Foo {
border: 1px solid #93AA9B;
border-left: 1px solid #93AA9B;
}
In other words, i'm using the shorthand but define that only my
leftborder should differ from it.
2) Is this also part of the Cascade in that border-left property
(validly) overrides the shorthand?
T.i.a.
Coen
| |
| Murray *TMM* 2004-04-21, 2:36 pm |
| Soitenly.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
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
==================
"Coen Naninck" <spam@spam.net> wrote in message
news:c5hsek$qr2$1@forums.macromedia.com...
>
> I have two questions:
>
> 1) Hi, is this valid?:
>
> #Foo {
> border: 1px solid #93AA9B;
> border-left: 1px solid #93AA9B;
> }
>
> In other words, i'm using the shorthand but define that only my
> leftborder should differ from it.
>
> 2) Is this also part of the Cascade in that border-left property
> (validly) overrides the shorthand?
>
>
> T.i.a.
>
> Coen
| |
| Coen Naninck 2004-04-21, 2:37 pm |
| Murray *TMM* wrote:
> Soitenly.
>
Thx
| |
| David Stiller 2004-04-21, 2:38 pm |
| The only thing I'd add are the following two points (figuring, clarity
usually helps in forums):
1) The subject line mentions shorthand vs. non-shorthand. The rule provided
....
#Foo {
border: 1px solid #93AA9B;
border-left: 1px solid #93AA9B;
}
.... contains two shorthand properties. Non-shorthand -- let's call this
longhand -- would actually be ...
#Foo {
border: 1px solid #93AA9B;
border-left-width: 1px;
border-left-style: solid;
border-left-color: #93AA9B;
}
.... and you can indeed use short- and longhand notation in the same
document.
2) The only thing to look out for is the *order* of these properties.
Naturally, if the rule looked like this ...
#Foo {
border-left: 1px solid #93AA9B;
border: 1px solid #93AA9B;
}
.... border-left would be "overwritten" by border.
David
stiller ( at ) quip ( dot ) net
"Coen Naninck" <spam@spam.net> wrote in message
news:c5i3m4$4u7$1@forums.macromedia.com...
> Murray *TMM* wrote:
>
>
> Thx
| |
|
|
| David Stiller 2004-04-21, 2:38 pm |
| > Which in this case would make no difference since they are both the same!
8)
Well, yes. In my own quick testing, I noticed that and made one of them
red. Without that change, it was kind of like ...
voice-family: one-hand-clapping;
David
stiller ( at ) quip ( dot ) net
"Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
news:c5jbpe$mt9$1@forums.macromedia.com...
>
> --
> Murray --- ICQ 71997575
> Team Macromedia Volunteer for Dreamweaver MX
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
> news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
> ANSWERS
> ==================
> 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
> ==================
>
> "David Stiller" <stiller-NO-SPAM-@quip.net> wrote in message
> news:c5jba3$m3l$1@forums.macromedia.com...
>
>
| |
| Murray *TMM* 2004-04-21, 2:38 pm |
| Utterly Zen.
--
Murray --- ICQ 71997575
==================
"David Stiller" <stiller-NO-SPAM-@quip.net> wrote in message
news:c5jc2g$n94$1@forums.macromedia.com...
> Well, yes. In my own quick testing, I noticed that and made one of
them
> red. Without that change, it was kind of like ...
>
> voice-family: one-hand-clapping;
>
>
| |
| Coen Naninck 2004-04-21, 2:40 pm |
|
Thanks David
|
|
|
|
| Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |