Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
What is * html in css code?
Old 04-16-2007, 02:02 PM What is * html in css code?
Super Talker

Posts: 116
Trades: 0
Hey there,

I started a new job :-) and am reading some CSS (I'll post it there too).

What is " * html " before a style sheet? (take out the quotes so its: * html)

thus the CSS line would read:

* html .someClass { margin:0;
background-color:black; }

Thanks Donna
DonnaZ is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-16-2007, 03:06 PM Re: What is * html in css code?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
*html is a hack that you should not use as IE 7 will choke on it. You need to read this article: http://www.positioniseverything.net/.../star-html.php
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-16-2007, 03:08 PM Re: What is * html in css code?
Super Talker

Posts: 116
Trades: 0
Lady,

Thank you so much for your quick reply. You're the best.

DonnaZ
DonnaZ is offline
Reply With Quote
View Public Profile
 
Old 04-16-2007, 03:09 PM Re: What is * html in css code?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You're welcome
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-16-2007, 03:27 PM Re: What is * html in css code?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
It means that all elements, within an "html" tag will be matched by the rule.

In your exemple, it would mean "All elements, within the HTML tag, with a class named someClass".

Take a look at this cheatshet, I've found it useful when I started to use CSS for more than just the borders of a div:
http://www.ilovejackdaniels.com/chea...s-cheat-sheet/
http://lesliefranke.com/files/refere...heatsheet.html

Edit:
Well, what do you know, I was almost certain that would happens.
LadyNred beated me... :-)
I know, I open too much tabs at once... Take too much time to answer.
__________________
Only a biker knows why a dog sticks his head out the window.

Last edited by tripy; 04-16-2007 at 03:29 PM..
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 04-16-2007, 11:30 PM Re: What is * html in css code?
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
I was thinking that it meant that everything within the HTML tags with a class of someClass would be affected....but I wasnt sure, so I didnt post a reply! lol!
But anyway, my question is....isnt this kind of redundant or pointless as everything that the css would affect IS within the HTML tags?
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 04-17-2007, 04:23 AM Re: What is * html in css code?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
Originally Posted by LadynRed View Post
*html is a hack that you should not use as IE 7 will choke on it. You need to read this article: http://www.positioniseverything.net/.../star-html.php
As ladyNred said, it's a specific hack, to get around an ie6 bug.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to What is * html in css code?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.79980 seconds with 12 queries