Forums

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

Home Forums CSS Importing CSS Files Help.

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #144875

    Can you import two css files or only one

    /*

    My Custom Style Sheet

    */

    /* First Pull In Bootstrap Stylesheet */

    @import url(bootstrap.css)

    /* Second Pull In Open Cart Stylesheet*/

    @import url(stylesheet.css)

    Is that how it is done.

    #144878
    Con
    Participant

    I would say you need a semicolon ‘;’ after each @import statement.

    So:
    @import url(bootstrap.css);
    @import url(stylesheet.css);

    (sorry my reply seems a bit weird with the forum’s formatting, I suspect Chris is fixing this.)

    #144879

    ok will give it ago tomorrow just teaching my self twitter bootstrap.

    #144880
    Con
    Participant

    Also make sure that the the path of the css files are what you defined there.

    @import url(bootstrap.css); means that you are trying to pull it from the same directory that your style sheet is in.

    If you’ve placed the bootstrap.css file in a different folder/directory, it should be

    @import url(path-to-folder-with-bootstrap/bootstrap.css);

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