Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 10 of 10

Thread: Coding help?

  1. #1
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default Coding help?

    K well I suck at coding but I tried to code my sites offline page.
    This is it: http://igoboy.com/offline/

    Now when I sliced the page I made a slice inside the grey box to use for typing.
    When I go to type in there everything messes up :S
    Can anyone tell me why?

    Thread moved from web design by --ss-- (Forum Super Moderator): Please post in the correct section .
    Last edited by --ss--; 22-02-2008 at 07:14 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    The bit you want to write ontop of has to be in the background of the <td>/<tr> lol .
    Quote Originally Posted by iGOboy View Post
    K well I suck at coding but I tried to code my sites offline page.
    This is it: http://igoboy.com/offline/

    Now when I sliced the page I made a slice inside the grey box to use for typing.
    When I go to type in there everything messes up :S
    Can anyone tell me why?

  3. #3
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by --ss-- View Post
    The bit you want to write ontop of has to be in the background of the <td>/<tr> lol .
    So how would I fix this?

  4. #4
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    here you go, i wrote a mini page for you.

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    
    <style type="text/css">
    
    #box {
        border: 1px solid #999999;
        width: 350px;
        margin-right: auto;
        margin-left: auto;
        height: 20px;
        background-color: #F0F0F0;
        padding: 4px;
    }
    #logo {
        margin-right: auto;
        margin-left: auto;
        width: 500px;
        height: 100px;
    }
    
    </style>
    
    
    <body>
    <div id="logo">
      <div align="center"><img src="http://igoboy.com/offline/images/banner.gif" width="444" height="81" /></div>
    </div>
    <div id="box"></div>
    </body>
    </html>
    the way you should have done it was by using a border rather than slicing a lyout because all it is is one box with a border (with the image above the table)
    Last edited by kk.; 22-02-2008 at 03:57 PM.

  5. #5
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default

    Woah thanks josh! +REP!

  6. #6
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    no problem, i like helping out

  7. #7
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default

    Thanks a bunch
    It works too
    www.igoboy.com/offline
    I really need to stop using tables

  8. #8
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Quote Originally Posted by JimboJosh View Post
    here you go, i wrote a mini page for you.

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    
    <style type="text/css">
    
    #box {
        border: 1px solid #999999;
        width: 350px;
        margin-right: auto;
        margin-left: auto;
        height: 20px;
        background-color: #F0F0F0;
        padding: 4px;
    }
    #logo {
        margin-right: auto;
        margin-left: auto;
        width: 500px;
        height: 100px;
    }
    
    </style>
    
    
    <body>
    <div id="logo">
      <div align="center"><img src="http://igoboy.com/offline/images/banner.gif" width="444" height="81" /></div>
    </div>
    <div id="box"></div>
    </body>
    </html>
    the way you should have done it was by using a border rather than slicing a lyout because all it is is one box with a border (with the image above the table)
    This line isn't needed in the code:
    Code:
    <div align="center"><img src="http://igoboy.com/offline/images/banner.gif" width="444" height="81" /></div>
    You can do all that by changing the logo's CSS too :
    HTML Code:
    #logo {
      height: 81px;
      width: 444px;
      margin: auto;
      background-image: url(images/banner.gif);
      text-align: center;
    }
    Last edited by --ss--; 22-02-2008 at 07:12 PM.

  9. #9
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default

    Haha thanks very much

  10. #10
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    Quote Originally Posted by --ss-- View Post
    This line isn't needed in the code:
    Code:
    <div align="center"><img src="http://igoboy.com/offline/images/banner.gif" width="444" height="81" /></div>
    You can do all that by changing the logo's CSS too :
    HTML Code:
    #logo {
      height: 81px;
      width: 444px;
      margin: auto;
      background-image: url(images/banner.gif);
      text-align: center;
    }
    lol i know, it also makes it so if someone wanted the image theyd have to go rummaging through the source code but it makes it clear to him where the image came from

Posting Permissions

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