SitePoint Sponsor

User Tag List

Results 1 to 11 of 11

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Should you keep your stylesheet out of your www?

    Probably a silly question but I'm still learning. In order to protect your stylesheet, should you keep it outside your www directory and have your pages link to it?

    My thinking is that, what if you (a) want to hide your styles from prying eyes; and/or (b) keep it secure so no-one can mess with it?

    Brad

  2. #2
    With More ! for your $ maxor's Avatar
    Join Date
    Feb 2004
    Location
    Scottsdale, Arizona
    Posts
    909
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How is it possible to have your stylesheet outside of the www root and still be able to use it?

    Why do you want to hide your stylesheet from prying eyes?

    If people can get to a point where they can edit your stylesheet, placing above the www root isn't going to help you.

  3. #3
    SitePoint Enthusiast 2kool2's Avatar
    Join Date
    May 2001
    Location
    UK
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That was a bit harsh Maxor, we all started sometime dude.

    You can place your stylesheet wherever you like.
    Normal practice is to put it in a folder called styles in the root (home) directory.

    It's then referenced like this:
    <style type="text/css" media="screen" href="/styles/yourfile.css">

    There is no method of hiding the stylesheet.
    If someone wants to look they can.
    It's just a little more awkward to do it.
    mike 2k: )2
    <work> http://webSemantics.co.uk </work>
    <rest> http://2kool2.com/ </rest>
    <play> http://bangersandmash.com/ </play>

  4. #4
    With More ! for your $ maxor's Avatar
    Join Date
    Feb 2004
    Location
    Scottsdale, Arizona
    Posts
    909
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by 2kool2
    That was a bit harsh Maxor, we all started sometime dude.

    Uh. Okay. I'll remember to be super duper, duper nice next time.

  5. #5
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,556
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    If someone wants to look they can.
    Especially if you use the web developer extensions in firefox (edit css) and then its just one click away. No need to look for it either and you can even edit on the fly.

    I use it all the time on these sitepoint queries hundreds of times a day it seems lol

    Paul

  6. #6
    SitePoint Member
    Join Date
    Sep 2004
    Location
    PA
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Brad,

    When building web pages always assume that everything you post online is up for grabs.

    Spending energy on hiding HTML, JavaScrips and yes even SWF's is a waste of time.


    Trust me...........

    PS. Did you notice that I did not mention PERL or PHP?

  7. #7
    SitePoint Enthusiast
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Gotchya Surge. Thanks for the tip.
    I'm learning PHP as well at the moment so between CSS and PHP i'm kept pretty busy...but I'm enjoying them both.

    Brad

  8. #8
    Web Design Addict
    Join Date
    Mar 2004
    Posts
    2,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bradles,

    What methods are you using to learn PHP and how is that going? I want to learn PHP myself, and have bought a book on the subject, but it seems that the book is just losing me more than its sinking in.

  9. #9
    SitePoint Enthusiast
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by deronsizemore
    Bradles,

    What methods are you using to learn PHP and how is that going? I want to learn PHP myself, and have bought a book on the subject, but it seems that the book is just losing me more than its sinking in.
    Yeah...it's tough going at the start...but it starts to sink in as long as you stay determined.

    I found the following forums helpful:
    http://forums.devshed.com/
    http://forums.devnetwork.net/index.php

    Good luck.

    Brad

  10. #10
    Web Design Addict
    Join Date
    Mar 2004
    Posts
    2,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by bradles
    Yeah...it's tough going at the start...but it starts to sink in as long as you stay determined.

    I found the following forums helpful:
    http://forums.devshed.com/
    http://forums.devnetwork.net/index.php

    Thanks for the links. I'll be sure to check them out!

  11. #11
    SitePoint Enthusiast
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by deronsizemore
    Thanks for the links. I'll be sure to check them out!
    I forgot to mention the online PHP manual as well...that is a fantastic reference resource.

    http://au.php.net/manual/en/index.php

    The function reference is great: http://au.php.net/manual/en/ref.dir.php

    Cheers.

    Brad


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
  •