Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts

    Exclamation Style sheet or webpage?

    Should this code which is now on the HTML page, really be there or on the communal style sheet?

    I find one of the more difficult decisions, is where to put these instructions.

    effpeetee

    <style type="text/css">
    p#pc {margin-top:20px;margin-left:15px;}
    </style>

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Use an external stylesheet for all of your styles unless you plan on overriding some styles on certain pages.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    Use an external stylesheet for all of your styles unless you plan on overriding some styles on certain pages.
    Thank you, I have taken your advice and have done so.
    Which brings me to an associated question:-

    Is there a protocol as to how order the various instructions on the style sheet.

    effpeetee

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    No not really unless you have something like
    Code:
    #greet {
    color:red;
    }
    p {
    color:blue;
    }
    #greet {
    color:green;
    }
    The last #greet will override the first one.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Thank you and noted.

    effpeetee

    www.exitfegs.co.uk


  •  

    Posting Permissions

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