HighDots Forums  

* within CSS

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss * within CSS in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mmcc128@gmail.com
 
Posts: n/a

Default * within CSS - 01-03-2006 , 02:09 PM






In the following example what does starting this selector with * do? I
cant seem to find any reference to it. I took it off a popular website
and am trying to deficer it, thanks.

* html #someID form {
margin: 0 0 0 0;
padding: 0 0 0 0;
}


Reply With Quote
  #2  
Old   
Michael Winter
 
Posts: n/a

Default Re: * within CSS - 01-03-2006 , 02:20 PM






On 03/01/2006 19:09, mmcc128 (AT) gmail (DOT) com wrote:

Quote:
In the following example what does starting this selector with * do?
[snip]

Quote:
* html #someID form {
For some reason, IE is under the impression that the HTML element is not
the document root, and there is some element above it. As other browsers
don't suffer the same misconception, this rule would only be applied by IE.

Quote:
margin: 0 0 0 0;
padding: 0 0 0 0;
These could be shortened to have a singular zero (0) value (in case you
weren't aware).

Mike


When posting code listings, please refrain from using tabs. Convert them
to spaces (preferably 2 to 4) first.

--
Michael Winter
Prefix subject with [News] before replying by e-mail.


Reply With Quote
  #3  
Old   
mmcc128@gmail.com
 
Posts: n/a

Default Re: * within CSS - 01-03-2006 , 02:28 PM



I have since found it in the W3C documentation. I probably wouldnt have
found it without your help. thanks!

5.3 Universal selector
The universal selector, written "*", matches the name of any element
type. It
matches any single element in the document tree. [p. 35]
If the universal selector is not the only component of a simple
selector [p. 67] , the
"*" may be omitted. For example:
*[lang=fr] and [lang=fr] are equivalent.
*.warning and .warning are equivalent.
*#myid and #myid are equivalent.


Reply With Quote
  #4  
Old   
bruno
 
Posts: n/a

Default Re: * within CSS - 01-04-2006 , 09:32 AM



"* html" is commonly known as the Holly Hack, and you can find more
info on Holly and John's website:

http://www.positioniseverything.net/.../star-html.php


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.