SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Nov 2012
    Posts
    117
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Linking multiple stylesheets

    Hi there,

    I am using a Dedicated Server. In the web-hosting side, I have folders arranged like so.

    Code:
    html
            forum
                files
            images
                files
            Equinox
                index.php
                header.php
                footer.php
            style
                style.css
            mc-multiplayer
                style
                    style.css
                index.php
                header.php
                footer.php
    I am trying to get the index.php of mc-multiplayer to link to the css file in mc-multiplayer, but no matter what it keeps going to the style.css file in the html folder.
    Last edited by ralph.m; Jan 9, 2013 at 03:31. Reason: added code tags to preserve formatting

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,107
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    The link on the /mc-multiplayer/index.php page would need to look either like this:

    Code:
    <link rel="stylesheet" media="screen,projection,tv" href="style/style.css">
    or this:

    Code:
    <link rel="stylesheet" media="screen,projection,tv" href="/mc-multiplayer/style/style.css">
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2012
    Posts
    117
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot for help

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,107
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    You're welcome.

    Let us know if you need any more help. Actually, though, my advice would be to place all your style sheets into one folder for easy reference ... and I wouldn't recommend having too many. (I rarely have more than one or two.)
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  5. #5
    SitePoint Member joshuagnizak's Avatar
    Join Date
    Jan 2013
    Location
    Berlin
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    You're welcome.

    Let us know if you need any more help. Actually, though, my advice would be to place all your style sheets into one folder for easy reference ... and I wouldn't recommend having too many. (I rarely have more than one or two.)
    I've never used more than 2 style sheets. At what point do you recognize a slowdown?

  6. #6
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,107
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by joshuagnizak View Post
    At what point do you recognize a slowdown?
    No necessarily ever ... but it seems neater to me not to use too many, and the fewer calls to the server, the better in general. I doesn't take long to load a style sheet, and then it's cached for the other pages.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."


Bookmarks

Posting Permissions

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