[WSG] CSS Comments

2005-05-11 Thread Kerri McKenna
Hi everyone,

I realize that /*  */ are used to add comments to CSS, but I'm not
clear on what /* \*/ means, or what the single asterisk is used for. 

Kerri

PS - I've only just joined the list so I do apologize if this is
perceived as off topic.

---
Excerpt from Ted Drake:

But, it looked horrible in Firefox, so I dropped the two rules down to
my  trusty Holly Hack section.
/* \*/
* html #mainnav li  {
height: 1%;
float:left;
}
* html #mainnav li a {
height: 1%;
}
/*  */
And it is now looking good in both browsers. 
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**



Re: [WSG] CSS Comments

2005-05-11 Thread Brian Cummiskey
Kerri McKenna wrote:
Hi everyone,
I realize that /*  */ are used to add comments to CSS, but I'm not
clear on what /* \*/ means, or what the single asterisk is used for. 

/* */ pairs alone are comments, yes, but they are also used as hacks 
when they are used in the right sequence.  Some browsers can read 
through it, some skip it.

more info:
http://www.sitepoint.com/article/browser-specific-css-hacks
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**


Re: [WSG] CSS Comments

2005-05-11 Thread Horst Gutmann
Kerri McKenna wrote:
Hi everyone,
I realize that /*  */ are used to add comments to CSS, but I'm not
clear on what /* \*/ means, or what the single asterisk is used for. 

Kerri
PS - I've only just joined the list so I do apologize if this is
perceived as off topic.
---
Excerpt from Ted Drake:
But, it looked horrible in Firefox, so I dropped the two rules down to
my  trusty Holly Hack section.
/* \*/
* html #mainnav li  {
height: 1%;
float:left;
}
* html #mainnav li a {
height: 1%;
}
/*  */
Hi :-)
The \*/ part looks somehow like a way to mess with a specific browser's 
parser so that certain parts of the CSS are ignore, although I have to 
admin that I don't know what browser actually falls for this.

Normally a singe asterisk is used as a wildcard in CSS. If you have for 
example this rule:

#menu * {
border-left: solid 2px #000;
}
...it will add a black 2px left-border to every element within the #menu.
I hope this helps :-)
MfG, Horst
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**


Re: [WSG] CSS Comments

2005-05-11 Thread Jan Brasna
Hi, it's a CSS filter to rule out IE5Mac, see 
http://www.dithered.com/css_filters/css_only/escaped_comment_end.html

--
Jan Brasna aka JohnyB :: www.alphanumeric.cz | www.janbrasna.com
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**


Re: [WSG] CSS Comments

2005-05-11 Thread Thierry Koblentz
Drake, Ted C.  wrote:
 This is a hack to send a style to Internet Explorer on windows and
 not mac. 

IMHO, IE CCs are a better alternative to this hack:
http://msdn.microsoft.com/workshop/author/dhtml/overview/ccomment_ovw.asp

Thierry | http://www.TJKDesign.com
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**



Re: [WSG] CSS Comments

2005-05-11 Thread Philippe Wittenbergh
On 12 May 2005, at 5:15 am, Drake, Ted C. wrote:
This is a hack to send a style to Internet Explorer on windows and not 
mac.

/* \*/ hides it from IE Mac, which doesn't understand the escape \
It would be better formulated as:
'A filter to hide the next rule block from IE Mac'.
In full:
/* hide from IE Mac \*/
selector {property:value}
/* end hiding from IE Mac */
Philippe
---/---
Philippe Wittenbergh
now live : http://emps.l-c-n.com/
code | design | web projects : http://www.l-c-n.com/
IE5 Mac bugs and oddities : http://www.l-c-n.com/IE5tests/
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**