Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: CSS Layout

  1. #1
    New Coder
    Join Date
    Mar 2005
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS Layout

    Code:
    <style type="text/css" media="all">@import "/c/c04.css";</style>
    I saw this in the source of a site. Is this for a layout or something? How do the layouts work and how do you set them up? I looked at that thread in General web building but it didn't say how you create layouts.

  • #2
    Regular Coder
    Join Date
    Aug 2004
    Location
    The US of A
    Posts
    767
    Thanks
    1
    Thanked 0 Times in 0 Posts
    It imports that CSS file.

  • #3
    New Coder
    Join Date
    Mar 2005
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Yes Kurashu is right.

    6.3 The @import rule

    The '@import' rule allows users to import style rules from other style sheets. Any @import rules must precede all rule sets in a style sheet. The '@import' keyword must be followed by the URI of the style sheet to include. A string is also allowed; it will be interpreted as if it had url(...) around it.

    Example(s):

    The following lines are equivalent in meaning and illustrate both '@import' syntaxes (one with "url()" and one with a bare string):

    @import "mystyle.css";
    @import url("mystyle.css");


    So that user agents can avoid retrieving resources for unsupported media types, authors may specify media-dependent @import rules. These conditional imports specify comma-separated media types after the URI.

    Example(s):

    The following rules have the same effect as if the imported style sheet were wrapped in an @media rule for the same media, but it may save the UA a fruitless download.

    @import url("fineprint.css") print;
    @import url("bluish.css") projection, tv;


    In the absence of any media types, the import is unconditional. Specifying 'all' for the medium has the same effect.


    For more information on CSS level 2:
    http://www.w3.org/TR/REC-CSS2/ - specification
    http://www.w3schools.com/css/css_reference.asp - reference


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •