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

Thread: New to CSS

  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    New to CSS

    Can anyone give a very basic idea for how of how to link a CSS into html (completely new to this).

    Lets just say for basic I simply wanted to turn all the text on every page red.

    J

  • #2
    New Coder
    Join Date
    Oct 2002
    Location
    Go CANADA!
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You insert the CSS code to link to your CSS file inbetween your
    <HEAD>

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

    </HEAD>

    ---------------
    For turning the all your words red with the CSS...

    :: Download Topstyle ::
    http://download.com.com/3120-20-0.ht...yle&tg=dl-2001
    Easy thing to use.

    If you need the codes to be done, gladly help but it'd be better if you tired first. Best way to learn.

    Here's an example:
    ---------------------------------------
    BODY {
    color : #FF0000;
    }

    ---------------------------------------
    That would be used directly in your CSS file. Everything will be red. However, this will NOT work for any words within Tables.

    Use:
    ---------------------------------------
    TABLE {
    color : #FF0000;
    }

    ---------------------------------------


    ---------------------------------------
    You can also apply STYLEs directly into your HTML codes:
    ---------------------------------------
    <HEAD>

    <style>
    <!--

    BODY {
    color : #FF0000;
    }

    TABLE {
    color : #FF0000;
    }
    //-->
    </style>

    </HEAD>

    ---------------------------------------
    I'm not a pro, but I know how to get things.
    Last edited by Revelle; 10-17-2002 at 05:18 PM.
    Be ReActive.

  • #3
    New Coder
    Join Date
    Oct 2002
    Location
    Go CANADA!
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Now, I re-read and perhaps you wanted the Background to be red too??

    Add this either in the CSS file or within the STYLE:

    -->

    BODY {
    background-color : #FF0000;
    }


    <--


    Just a note, you don't have to have "red". You can have shades of red, darker lighter, etc. Any colour to a point of course.
    There is a colour-safe palette for the web::
    http://hotwired.lycos.com/webmonkey/...e/color_codes/


    You can find references all over the place :>
    W3C is the best place to look. They set the standards for everything RE the web and web publishing::
    http://www.w3.org/
    Last edited by Revelle; 10-17-2002 at 05:28 PM.
    Be ReActive.

  • #4
    New Coder
    Join Date
    Oct 2002
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the help - I am having a play with it now and I appear to be getting the effects I want.

  • #5
    New Coder
    Join Date
    Oct 2002
    Location
    Go CANADA!
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts
    surely and yep
    Be ReActive.


  •  

    Posting Permissions

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