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
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    first attempt at CSS..

    Code:
    <html>
    <style type="ccs/text">
    body {
    
    background-image: 
    url('http://www.quickbuddyicons.com/icon/6204.gif');
    
    background-repeat:
    no repeat;
    
    background-position: 
    30% 20%;
    
    background-attachment:
    fixed
    
    }
    </html>
    </style>
    now what did i do wrong
    www.bittersweetskate.com

    ^^ my skate team's website. im only here for help with basic XML, flash, and other stuff for my site. thanks for the help :)

  • #2
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    How should we know? If you want help, supply a description of your problem and a link to your page...

    Dan
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION

  • #3
    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
    Well just from looking at your code you've done a lot wrong. You have no Doctype. You close your </html> tags inside of your style tags. You have no <head> tags. You have no <body> tags. Your page should look something like this
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Page Title Here</title>
    <style type="text/css">
    body {
    background:#FFF url(http://www.quickbuddyicons.com/icon/6204.gif) 30% 20% fixed;
    }
    </style>
    </head>
    
    <body>
    </body>
    </html>
    Ask yourself this question. How can you style a body tag if you don't have one?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    dude im a total noob to this. dont be hatin.
    www.bittersweetskate.com

    ^^ my skate team's website. im only here for help with basic XML, flash, and other stuff for my site. thanks for the help :)

  • #5
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    how can i make it NOT repeat?
    www.bittersweetskate.com

    ^^ my skate team's website. im only here for help with basic XML, flash, and other stuff for my site. thanks for the help :)

  • #6
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    background-repeat:no-repeat;

    Dan
    Last edited by whizard; 07-03-2007 at 02:59 PM.
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION

  • #7
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    w3schools.com is the best resource I have found for CSS.

    bazz


  •  

    Posting Permissions

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