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 8 of 8
  1. #1
    Join Date
    Jan 2008
    Posts
    17
    Tokens
    0

    Default [Help] Text in a scroll box

    Basically, a box that you can scroll up and down and you can put text in it. Thanks.

  2. #2
    Join Date
    Apr 2005
    Posts
    4,614
    Tokens
    90

    Latest Awards:

    Default

    Code:
    <textarea>I am awesome</textarea>

  3. #3
    Join Date
    Jan 2008
    Posts
    17
    Tokens
    0

    Default

    It turn out as a horizontal scroll, I want a vertical one, and can you include the code where you can adjust the size of it aswell thanks.

  4. #4
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Example: http://pastebin.me/4951388ba6860 or if you want to be able to write in it then http://pastebin.me/495138eebca68
    Last edited by Decode; 23-12-2008 at 07:16 PM.
    Lets set the stage on fire, and hollywood will be jealous.

  5. #5
    Join Date
    Sep 2008
    Location
    North East
    Posts
    773
    Tokens
    0

    Latest Awards:

    Default

    Code:
    <style type="text/css">
    ul {
    margin-top: 0px;
    margin-bottom: 0px; 
    list-style-image: url(your custom bullet);
    color: #333333;
    font-size: 80%;
    font-weight: normal;
    margin-left: 20px; 
    padding-left: 20px; 
    line-height: 1.3em;
    } 
    
    .scrollArea {
    width: 275px; 
    height: 100px;
    padding-left: 5px;
    padding-right: 5px; 
    border-color: #6699CC;
    border-width: 1px; 
    border-style: solid;
    float: left; 
    overflow: auto;
    }
    </style>

  6. #6
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Imosae View Post
    Code:
    <style type="text/css">
    ul {
    margin-top: 0px;
    margin-bottom: 0px; 
    list-style-image: url(your custom bullet);
    color: #333333;
    font-size: 80%;
    font-weight: normal;
    margin-left: 20px; 
    padding-left: 20px; 
    line-height: 1.3em;
    } 
    
    .scrollArea {
    width: 275px; 
    height: 100px;
    padding-left: 5px;
    padding-right: 5px; 
    border-color: #6699CC;
    border-width: 1px; 
    border-style: solid;
    float: left; 
    overflow: auto;
    }
    </style>
    You have so obviously ripped that code, what is the first bit used for?
    Lets set the stage on fire, and hollywood will be jealous.

  7. #7
    Join Date
    Jan 2008
    Posts
    17
    Tokens
    0

    Default

    Perfect, thanks a lot Tom!

    Is there a way to make the scroll box in the middle of the area I want it to be, but not the text it self?
    Last edited by Chromz; 23-12-2008 at 07:25 PM.

  8. #8
    Join Date
    Sep 2008
    Posts
    718
    Tokens
    0

    Default

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
        <title>Conforming XHTML 1.0 Strict Template</title>
        
        <style type="text/css">
            .box {
            width: 500px;
            height: 100px;
            overflow: auto;
            text-align: left;
            border: 1px solid #000000;
            }
        </style>
        
    </head>
    
    <body>
    <center>
        <textarea class="box">
    lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol loal lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol 
        </textarea>
    </center>
    </body>
    </html>
    edited decode's
    +.net - omg it's coming o_o

Posting Permissions

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