Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Multiple internal style sheets

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #197897
    inktrap
    Participant

    Is this possible? Specifically, I’d like to add an alternate stylesheet to a standalone HTML file.

    #197898
    Senff
    Participant

    You can have as many stylesheets as you want. If you want some styles only for one HTML file, add this in the head:

    <style type="text/css">
        /* all your styles go here */
    </style>
    

    If that’s not what you meant, please provide more details.

    #197902
    inktrap
    Participant

    But how do I use multiple stylesheets in the head? Does each one go in separate &lt;style&gt;...&lt;/style&gt;, like this:

    <head>
    ...
        <style type="text/css" rel="stylesheet">
        ...
        </style>
    
        <style type="text/css" rel="alternate stylesheet" title="Dark">
        ...
        </style>
    
    </head>
    
    #197906
    Senff
    Participant

    Yup, you can do it like that.

    #197908
    Shikkediel
    Participant

    Did you post any script tags, Zeke? Holler at a mod for deletion maybe.

    I’m wondering what purpose multiple style sheets like this could serve…

    #197913
    Shikkediel
    Participant

    I tested it – it’s the first lines with the links. Odd (but good to know).

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Other’ is closed to new topics and replies.