Re: CSS and objects

Discussion in 'HTML' started by Steve Pugh, Aug 7, 2003.

  1. Steve Pugh

    Steve Pugh Guest

    (Trevor) wrote:

    >For example
    >main.css ---> all common styles
    >
    >electronics.css --> specific to electronics, but it also has the
    >properties from main.css


    It really is better to remove the repeated styles from the specialised
    stylesheets.

    >One possibility is for multiple style sheets in one document, or to
    >have one style sheet call another one (as a submodule).
    >
    >Can CSS handle anything like this?


    Yes.
    At the very top of your stylesheet include:
    @import url(main.css)

    Or do it in HTML and just include multiple <link> elements.

    Steve

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <> <http://steve.pugh.net/>
     
    Steve Pugh, Aug 7, 2003
    #1
    1. Advertising

  2. "Steve Pugh" <> wrote in message
    news:...
    > (Trevor) wrote:
    >
    > >For example
    > >main.css ---> all common styles
    > >
    > >electronics.css --> specific to electronics, but it also has the
    > >properties from main.css

    >
    > It really is better to remove the repeated styles from the specialised
    > stylesheets.
    >
    > >One possibility is for multiple style sheets in one document, or to
    > >have one style sheet call another one (as a submodule).
    > >
    > >Can CSS handle anything like this?

    >
    > Yes.
    > At the very top of your stylesheet include:
    > @import url(main.css)


    This is useful.

    >
    > Or do it in HTML and just include multiple <link> elements.
    >
    > Steve
    >
    > --
    > "My theories appal you, my heresies outrage you,
    > I never answer letters and you don't like my tie." - The Doctor
    >
    > Steve Pugh <> <http://steve.pugh.net/>
     
    trevor oakley, Aug 8, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bigbinc
    Replies:
    3
    Views:
    416
    Michael Borgwardt
    Nov 18, 2003
  2. =?ISO-8859-1?Q?G=E9rard_Talbot?=

    Whining and bitching about MSIE 6 CSS bugs and CSS support

    =?ISO-8859-1?Q?G=E9rard_Talbot?=, Jul 9, 2005, in forum: HTML
    Replies:
    0
    Views:
    436
    =?ISO-8859-1?Q?G=E9rard_Talbot?=
    Jul 9, 2005
  3. 7stud
    Replies:
    11
    Views:
    747
    Dennis Lee Bieber
    Mar 20, 2007
  4. ghoetker
    Replies:
    1
    Views:
    393
  5. Replies:
    7
    Views:
    416
    David Lamb
    Oct 29, 2012
Loading...

Share This Page