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
    New to the CF scene
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question using a single CSS to "skin" a website

    is it possible to use a single .CSS to "SKIN" a website so every page is using the same "styles"

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Yes...By calling on your external css file in your webpages, you may do just that. This goes in the head of every page:

    <link rel="stylesheet" type="text/css" href="nameofstylesheet.css">

    ...and in your sheet don't put the <style> tags in:

    .this {font:bold 12 verdana; color:white}
    .that {font:normal 14 tahoma;color:red}
    body {backgound-color:green}
    td {text-align:center}
    etc.

    Now, you can change the appearance of your whole website by changing just the stylesheet.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #3
    New to the CF scene
    Join Date
    Jan 2003
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do you mean the same way you can with links? If so, yes, my CSS has black in the background on every page with this in the CSS:

    BODY { background-color:#000000 }

    Is that what you meant?
    I have not yet begun to procrastinate!

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Yep...look again at my example...I ammended it to include the body backgound.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #5
    New to the CF scene
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks for the info...much appreciated...


  •  

    Posting Permissions

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