CSS syntax

Home Forums Coding CSS CSS syntax

Tagged: 

This topic contains 9 replies, has 2 voices, and was last updated by  Keydren 6 months, 1 week ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #735 Reply

    awais
    Keymaster

    CSS Syntax
    A CSS rule set consists of a selector and a declaration block:

    CSS selector

    The selector points to the HTML element you want to style.

    The declaration block contains one or more declarations separated by semicolons.

    Each declaration includes a property name and a value, separated by a colon.

    CSS Example
    A CSS declaration always ends with a semicolon, and declaration groups are surrounded by curly brackets:

    p {color:red;text-align:center;}

    To make the CSS more readable, you can put one declaration on each line, like this:

    Example

    p{
    color:red;
    text-align:center;
    }
    

    Try it yourself »

    CSS Comments
    Comments are used to explain your code, and may help you when you edit the source code at a later date. Comments are ignored by browsers.

    A CSS comment starts with /* and ends with */. Comments can also span multiple lines:

    #737 Reply

    awais
    Keymaster

    At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.

    Et harum quidem rerum facilis est et expedita distinctio.

    #738 Reply

    awais
    Keymaster

    Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.

    #1274 Reply

    Viki

    反o靚模又好、支持良好閱讀風氣 group 又好;甚至有婦團搞道德 group åæ2æ½&#65å92;呢啲嘢,睇左就算喇。其實在我網誌文章《沉默的o靚模》å’Œ《o靚模工業》文章也指出,好書對於有心閱讀的人來講,一早買左,或者有人會趁¥›¸å±•é †ä¾¿è²·éƒ½å””出奇,但通常唔會ˆˆå¹´éƒ½å””è²·,只會等書展買囉。我無乜興趣要知道邊個搞呢類 group ,就算果個 issac ,都無乜興趣探求。

    #1281 Reply

    Lettie

    That’s a posting full of inhtgsi!

    #1287 Reply

    Hollie

    Would love to try The Gables for dinner. All guests staying at our bed & breakfast, Great Valley House of Valley Forge receive a local restaurant map and this would be a great oprottunipy to add The Gables to the list. The reviews are fantastic for this restaurant, would love to try it.

    #1289 Reply

    Belle

    My suneistgogs:1.) Go into D-Fish in the post early. Make CP3 work on defense (not on the perimeter, where he can get lots of steals), and deal a couple of body blows early. 2.) Send CP3 through like 5 bazillion screens and force him to fight over them. My idea: pick him off with a Kobe cross-screen, force the Hornets to switch and throw it into Kobe in the post.

    #1291 Reply

    Randi

    Well done to think of somtiheng like that

    #1297 Reply

    Buddy

    I went to tons of links before this, what was I thinnikg?

    #1308 Reply

    Keydren

    Слабо, очень слабо. Они не стоят той шумихи, которую устроил лейбл. Ч-ÐЁтнѾÐравнодушен…выйдµµÑ‚ альбом, не выйдет альбом….меньше таких союзов.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: CSS syntax
Your information: