Connecting Tech Pros Worldwide Forums | Help | Site Map

Valid syntax or coding error

Member
 
Join Date: Oct 2007
Location: Canada
Posts: 37
#1: Mar 10 '09
* html body {
text-align: center;
}

Does the star before the html do anything here or just something that didn't get cleaned up from commenting it out at one point or another.

Thanks

Expert
 
Join Date: Aug 2008
Posts: 397
#2: Mar 10 '09

re: Valid syntax or coding error


It is appropriately called the "star HTML" hack. It is seen only by IE browser 6.0 and lower.
Looks as though written incorrectly. Usually something like this (rather than on the body declaration):
Expand|Select|Wrap|Line Numbers
  1.  
  2. * html #sidebar p ( text-align:center;}
  3.  
Member
 
Join Date: Oct 2007
Location: Canada
Posts: 37
#3: Mar 12 '09

re: Valid syntax or coding error


Thanks David.

Good information
Reply