Brian
Brian

Reputation: 25834

What are CSS @ Blocks?

In the CSS Outline, Visual Studio has a folder titled, "@ Blocks" . What is it talking about?

Upvotes: 3

Views: 594

Answers (2)

Dustin Laine
Dustin Laine

Reputation: 38533

@ Blocks is where Visual Studio will outline any @ statements. THe @ provide ability to add apply a set of rules to a specific declaration. They are also used for @import which allows you to nest CSS files. They are also used to define media type, for example @media print can set styles for when the page is printed. Here is the W3C definition: http://www.w3.org/TR/CSS2/syndata.html#x6

Upvotes: 1

Homer
Homer

Reputation: 7826

From W3...

Media Types allow you to specify how documents will be presented in different media. The document can be displayed differently on the screen, on the paper, with an aural browser, etc.

http://www.w3schools.com/Css/css_mediatypes.asp

so, this will show up in the "@ Blocks" section

@media print   
{  
    p.test {font-family:times,serif;font-size:10px;}
} 

Upvotes: 2

Related Questions