Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: My coding isn't working

  1. #1
    0piper0halliwell0 is offline x10Hosting Member
    Join Date
    Oct 2009
    Posts
    9

    Unhappy My coding isn't working

    I'm trying to set up my pages in the Site Builder but, it won't take my coding. I admit, I am only used to Webs HTML Site Builder and Neopets strict rules (Yes, Neopets), and I can't seem to set up my website because my style HTML isn't working.

    My website

    Anybody give me any tips at all?

    Here's an example of what I'm doing:
    <img style="position: absolute; left: 0px; top: 0px; height: 617px; width: 998px;" src="http://i33.tinypic.com/30sytxd.jpg" border="0px" alt="" /> A:link{COLOR:FAD772; TEXT-DECORATION: italic;font-size:8px cursive }
    Also, I can't seem to find the Forum rules so I don't know if I'm posting this in the right forum section.
    Last edited by 0piper0halliwell0; 10-28-2009 at 07:12 PM.

  2. #2
    Mr. DOS is offline x10 Sophmore
    Join Date
    Oct 2009
    Location
    Nova Scotia, Canada
    Posts
    228

    Re: My coding isn't working

    You're putting your CSS in a place where it doesn't belong, and that's why it's not doing anything. I don't know if your monitor's wide enough to see it, but it's actually just displaying as text to the right side of the image. Your HTML should look more like this:
    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <title>Neopian Ability - We're just another graphics site</title>
    <link href="cms_style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    A:link{COLOR:FAD772; TEXT-DECORATION: italic;font-size:8px cursive }
    A:visited{COLOR:FAD772; TEXT-DECORATION:bold,UNDERLINE ;font-size:8px comic sans ms}
    A:HOVER {COLOR:FAD772; TEXT-DECORATION:UNDERLINE;font-size:8px; space:4px comic sans ms}
    body {background:url("http://i38.tinypic.com/11t50t1.jpg");}
    #textbox1{ position:absolute; top: 720px; left: 220px; height: 260px; width: 440px; overflow:auto; }
    #textbox2{ position:absolute; top: 730px; left: 48px; height: 250px; width: 90px; overflow:auto; }
    td,p{ color:##FAD7EF; font:12px comic sans ms; letter-spacing:1px; }
    h3{ color:#ECA5E8; font:15px comic sans ms; border-bottom: 6px solid #FAD7EF; border-top: 6px solid #FAD772; }
    h4{ border-bottom: 4px solid #FAD7EF; border-top: 4px double #B700FF; }
    </style>
    </head>
    <body>
    <img style="position: absolute; left: 0px; top: 0px; height: 617px; width: 998px;" src="http://i33.tinypic.com/30sytxd.jpg" border="0px" alt="" />
    </body>
    </html>
    See how I've put the CSS in a style tag in the head? That tells the browser to interpret those CSS rules and apply them to the page.

    I see a couple problems with your CSS, but we'll wait until you get it working to sort those out.

    --- Mr. DOS
    I've written a couple articles on automatic application of AlphaImageLoader in IE6 using nothing but IE6-specific CSS rules.

  3. #3
    0piper0halliwell0 is offline x10Hosting Member
    Join Date
    Oct 2009
    Posts
    9

    Smile Re: My coding isn't working

    Thank you very much, I know I have a lot of problems with it because Neopets is just something for beginners, and it has strict rules.

    I'll work on my CSS and HTML, thanks for the tips!

  4. #4
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,879

    Re: My coding isn't working

    http://w3schools.com is one of the best site from which you can learn any web programming language.
    Garrett Royce | Generally Helpful Member
    `ord(103)`@gjr.gr
    █ I promise not to try not to mess with your mind
    Tech Support | Programming Help | Flow Chart Tutorial

  5. #5
    0piper0halliwell0 is offline x10Hosting Member
    Join Date
    Oct 2009
    Posts
    9

    Re: My coding isn't working

    Wouldn't work anyway, the trouble is with my abilities to handle site builders like this.

    EDIT:
    It's still not showing my text.
    I'm doing this:
    Adding my style css in the template, and just adding the div id's in the page itself.
    Last edited by 0piper0halliwell0; 10-29-2009 at 07:37 PM.

  6. #6
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,879

    Re: My coding isn't working

    It also has HTML and CSS, not just programming, I should have used better wording :D
    Garrett Royce | Generally Helpful Member
    `ord(103)`@gjr.gr
    █ I promise not to try not to mess with your mind
    Tech Support | Programming Help | Flow Chart Tutorial

  7. #7
    0piper0halliwell0 is offline x10Hosting Member
    Join Date
    Oct 2009
    Posts
    9

    Re: My coding isn't working

    I know.
    Edit:
    Even if I put in my style CSS, none of my text is showing on the homepage.
    Last edited by 0piper0halliwell0; 10-29-2009 at 07:55 PM. Reason: Automerged Doublepost

  8. #8
    Mr. DOS is offline x10 Sophmore
    Join Date
    Oct 2009
    Location
    Nova Scotia, Canada
    Posts
    228

    Re: My coding isn't working

    It looks like your CSS is working. What text are you seeing? The only content I see in the page body is an image. Is content just not appearing when you add it? It's possible that it's being hidden underneath the absolutely-positioned image. You can position the image normally and get the same effect by setting the body margin to 0:
    HTML Code:
    body {
    margin: 0;
    }
    and letting the browser figure out how to place the image:
    HTML Code:
    <img src="http://i33.tinypic.com/30sytxd.jpg" border="0px">
    BTW, as a rule, it's generally best not to place style information into an element's tag - put as much into the CSS declaration in the head or in an external file as possible.

    --- Mr. DOS
    I've written a couple articles on automatic application of AlphaImageLoader in IE6 using nothing but IE6-specific CSS rules.

  9. #9
    descalzo's Avatar
    descalzo is offline Grim Squeaker
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    8,275

    Re: My coding isn't working

    What text?

    HTML Code:
    <body>
    <img style="position: absolute; left: 0px; top: 0px; height: 617px; width: 998px;" src="http://i33.tinypic.com/30sytxd.jpg" border="0px">
     
    </body>
    Nothing is always absolutely so.

  10. #10
    0piper0halliwell0 is offline x10Hosting Member
    Join Date
    Oct 2009
    Posts
    9

    Re: My coding isn't working

    Quote Originally Posted by descalzo View Post
    What text?

    HTML Code:
    <body>
    <img style="position: absolute; left: 0px; top: 0px; height: 617px; width: 998px;" src="http://i33.tinypic.com/30sytxd.jpg" border="0px">
     
    </body>
    The text is hidden for some reason, I have no idea why when you look in the Page source.


    I just tried the margin, it just messed up my image, so now I have to go back to the position absolute.
    Last edited by 0piper0halliwell0; 10-30-2009 at 05:34 PM.

Page 1 of 2 12 LastLast

Similar Threads

  1. GD Library not working
    By freebking in forum Free Hosting
    Replies: 0
    Last Post: 08-12-2008, 06:32 PM
  2. Domain stopped working
    By devongovett in forum Free Hosting
    Replies: 1
    Last Post: 05-05-2008, 08:04 PM
  3. Subdomain not working
    By trogenhorse in forum Free Hosting
    Replies: 5
    Last Post: 04-28-2008, 10:57 AM
  4. ads are not working
    By rayminator in forum Free Hosting
    Replies: 5
    Last Post: 03-23-2008, 08:07 PM
  5. Site not working
    By Immortal in forum Free Hosting
    Replies: 1
    Last Post: 09-10-2005, 02:49 PM

Posting Permissions

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