Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is this CSS rule?

Tags:

css

css-hack

In the son of suckerfish drop down menu:

http://www.htmldog.com/articles/suckerfish/dropdowns/example/

You see this rule

w\idth: 13.9em;

This can't be a typo as it appears various times in the css. What is it for?

like image 821
Lisa Avatar asked Apr 26 '10 17:04

Lisa


People also ask

What is an example of CSS rule set?

CSS Rule Sets A CSS rule set contains one or more selectors and one or more declarations. The selector(s), which in this example is h1 , points to an HTML element. The declaration(s), which in this example are color: blue and text-align: center style the element with a property and value.

What are the 3 CSS rules?

Inheritance, the Cascade, and Specificity are the big three. Understanding these concepts will allow you to write very powerful stylesheets and also save time by writing fewer CSS rules.

What are the types of CSS rules?

There are three types of CSS which are given below: Inline CSS. Internal or Embedded CSS. External CSS.

What is CSS at Rule Support?

The @supports CSS at-rule lets you specify declarations that depend on a browser's support for one or more specific CSS features. This is called a feature query. The rule may be placed at the top level of your code or nested inside any other conditional group at-rule.


1 Answers

This is called a CSS Hack.

Some browser will ignore the \ and treat that as a width property; other browsers will ignore the entire property.

You can see a complete list here.

like image 127
SLaks Avatar answered Oct 07 '22 13:10

SLaks