Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS special values *,\0/

Tags:

css

I see a css code with *, \0/ I just wonder what does it means? I guess they related to some specific browser?

.form_element select
{
   padding:4px;
   *padding:0px;
   padding:0px \0/;
}
like image 883
hungneox Avatar asked Nov 30 '11 07:11

hungneox


People also ask

What are the CSS values?

What are CSS values? CSS values are set against CSS Properties and reside within CSS declaration block, which is a part of the CSS rule / statement. CSS 2.1 allows following types of values : Integers and real numbers, Lengths, Percentages, URLs and URIs, Counters, Colors, Strings, Unsupported Values.

What is px CSS?

The term CSS pixel is synonymous with the CSS unit of absolute length px — which is normatively defined as being exactly 1/96th of 1 inch.

What is CSS property value?

The used value of a CSS property is its value after all calculations have been performed on the computed value. After the user agent has finished its calculations, every CSS property has a used value. The used values of dimensions (e.g., width , line-height ) are in pixels.

How does EM work in CSS?

The em is simply the font size. In an element with a 2in font, 1em thus means 2in. Expressing sizes, such as margins and paddings, in em means they are related to the font size, and if the user has a big font (e.g., on a big screen) or a small font (e.g., on a handheld device), the sizes will be in proportion.


1 Answers

\0/ targets IE8 and below, and appears after the value:

#id
{ padding: 0px \0/; }

* targets IE7 and below, and appears directly before the property

#id
{ *padding: 0px; }

_ targets IE6 and below, and appears directly before the property

#id
{ _padding: 0px; }
like image 136
Thomas Kelley Avatar answered Nov 03 '22 00:11

Thomas Kelley