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 4 of 4
  1. #1
    Regular Coder
    Join Date
    May 2006
    Location
    Canada
    Posts
    195
    Thanks
    0
    Thanked 0 Times in 0 Posts

    !!Help stylesheet!!

    <href="[http://www.thugkillin.i4host.net/sylesheet]">


    that is my link to my stylesheet i dunno if that is wrong



    and i dunno is something is wrong with that?

    * {
    body {
    background-color: #000bc0;

    }

    h1 {
    color: #000ff0;
    background-color: #000000;
    }
    h1 {
    border-width: thick;
    border-style: solid;
    border-color: red;
    }
    h1 {font-size: 60px;}
    h2 {font-size: 19pt;}
    h3 {font-size: 80%;}
    p {font-size: 1em;}

    }
    h2
    {color: #00f0f0;}
    }
    p {
    font: italic bold 20px arial, sans-serif;
    }

    a:active {
    background-color: #FFFF00;
    }

    span.aaa {
    colorink;
    }
    body{ border: 4px solid #000; }

    }
    div.box {
    width: 200px;
    border: 3px solid black;
    background: orange;
    }
    div.aaa {
    width: 100px;
    border: 4px solid #00ff00;
    background: cyan;
    }
    a:hover {
    text-decoration: none;
    text-transform: none;
    color: red;
    }


    thanks Rawlijr


  • #2
    Regular Coder
    Join Date
    May 2006
    Location
    Canada
    Posts
    195
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Anyone ?
    Rawli

  • #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
    Yeah its a bit wrong. It should be
    Code:
    body {
    background-color: #000bc0;
    color:#000;
    border: 4px solid #000;
    margin:0;
    padding:0;
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-size:0.85em;
    }
    h1 {
    color: #000ff0;
    background-color: #000;
    }
    h1 {
    border-width: thick;
    border-style: solid;
    border-color: red;
    }
    h1 {
    font-size: 60px;
    }
    h2 {
    font-size: 19pt;
    }
    h3 {
    font-size: 80%;
    }
    p {
    font-size: 1em;
    }
    h2 {
    background-color:inherit;
    color: #00f0f0;
    }
    p {
    font: italic bold 20px arial, sans-serif;
    }
    span.aaa {
    color:pink;
    }
    div.box {
    width: 200px;
    border: 3px solid black;
    background: orange;
    }
    div.aaa {
    width: 100px;
    border: 4px solid #00ff00;
    background: cyan;
    }
    a, a:link, a:visited {
    color:#F00;
    text-decoration:underline;
    }
    a:hover {
    text-decoration: none;
    }
    a:active {
    background-color: #FFFF00;
    color:#F00;
    }
    Your XHTML is so wrong as well. Try this
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>ThugKillin</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" type="text/css" href="http://www.thugkillin.i4host.net/sylesheet">
    </head>
    <body>
    <h1>Hello Welocme to Thugkillin.com </h1>
    <h2>Created by Rawlijr and Pimpster</h2>
    <p class="cyan">Hello,this is just a test now<span class="aaa">welcome this text should be pink :D:D</span>, <span class="aaa">To</span> a site called <span class="aaa">ThugKillin.com</span>.</p>
    <div class="box">
    <br>links of other games like this
    <br><a href="http://www.thugbattles.com">ThugBattles</a>
    <br><a href="http://www.idlepimps.com">Idlepimps</a>
    <br><a href="http://www.pimpagency.com">Pimpagency</a>
    <br><a href="http://www.pimpcontrol.com">PimpControl</a><br>
    </div>
    <div class="aaa">hello things to add like
    <br>Gang menu
    <br>Attack ranks
    <br>forums etc!
    </div>
    <p>Rawlijr &amp; Pimpster at ThugKillin if u have any concerns email us <a href="rawlijr@hotmail.com">Email us Boys</a></p>
    </body>
    </html>
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,387
    Thanks
    32
    Thanked 288 Times in 282 Posts
    Quote Originally Posted by RawliJr
    <href="[http://www.thugkillin.i4host.net/sylesheet]">

    [...]

    h1 {
    border-width: thick;
    border-style: solid;
    border-color: red;
    }
    You can reference an external style sheet by using the link tag like Aerospace did. Since this is XHTML, you have to close the tag with a forward slash (/) at the end since the link tag doesn't have an independent closing tag. Also, don't use brackets around the URL.

    <link type="text/css" rel="stylesheet" href="http://www.thugkillin.i4host.net/sylesheet"/>

    The second method is using the style tags. Some older browsers might choke on this so keep that in mind if you're looking for maximum backward compatibility.

    <style type="text/css">
    @import url("http://www.thugkillin.i4host.net/sylesheet");
    </style>

    Also, it's worth pointing out that you can use the border shorthand property to collapse border-width, border-style, and border-color. Much neater and more organized.

    h1 {border: thick solid red;}
    or h1 {border: 4px solid #f00;}
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

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