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 7 of 7

Thread: CSS problem

  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS problem

    Hi,

    my question is simple, my body part does'nt work is there a reason?

    <STYLE TYPE-"type/css">
    <!--
    BODY {color: purple; background-color: #00FF00}
    A:link {color: green}
    A:visited {color: yellow}
    H1 {font-size: 24pt; font-family: arial}
    H2 {font-size: 8pt; font-family: braggadocio}
    H3 {font size:14pt; font-family: desdemona}
    -->
    </STYLE>

    Thank you !

  • #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
    Change this
    Code:
    <STYLE TYPE-"type/css">
    to this
    Code:
    <STYLE TYPE="text/css">
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you for this quick answer ,

    I tried your suggestion but it does'nt work

    For the link color it work, but not for the body...

    I use the link bellow inside all my html code in the <head> tag ?
    <LINK REL=stylesheet HREF="style.css" TYPE="text/css">

    Thank you again!

  • #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
    Post a link to your site please.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    My site is on product, so i don't have link for now...


    My style.css is
    <STYLE TYPE="type/css">
    <!--
    BODY {color: purple; background-color: #00FF00}
    A:link {color: green}
    A:visited {color: yellow}
    H1 {font-size: 24pt; font-family: arial}
    H2 {font-size: 8pt; font-family: braggadocio}
    H3 {font size:14pt; font-family: desdemona}
    -->
    </STYLE>


    And my link between <head> tag is
    <LINK REL=stylesheet HREF="style.css" TYPE="text/css">

    I just thought, i'm using NotePad++ to write it, can it be the problem?

  • #6
    Regular Coder
    Join Date
    Feb 2005
    Posts
    679
    Thanks
    0
    Thanked 16 Times in 15 Posts
    style.css should be:
    Code:
    BODY {color: purple; background-color: #00FF00}
    A:link {color: green}
    A:visited {color: yellow}
    H1 {font-size: 24pt; font-family: arial}
    H2 {font-size: 8pt; font-family: braggadocio}
    H3 {font size:14pt; font-family: desdemona}

  • #7
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Great it work !

    Thank you very much!


  •  

    Posting Permissions

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