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 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Hellnation (aka South Florida)
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Textarea Style (bold, italics, and such)

    heres the code i have in:

    <center>
    <style type="text/css">
    textarea{
    border: 0px #000000 solid;
    background: #000000;
    font: normal 10px/normal Arial, Helvetica, sans-serif;
    color: #FFFFFF;}
    </style>
    <textarea
    cols="90"
    rows="7"
    readonly>
    -July2-11:39pm-
    REALLY BORED!
    </textarea>
    </center>

    ------------------

    now if i want to have the date & time larger than the actual text ("REALLY BORED") then how would i go about doing it? if i put any coding into the <textarea></textarea> spot then it shows up in my textbox (if that makes any sense!). in other words if i put in: <textarea><b>my name is kellen</b></textarea> then it shows up as: <b>my name is kellen</b> instead of: my name is kellen.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Mumbai, India
    Posts
    218
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi, if you add any HTML tags within the textarea, it will show up as it is. You can make text in the entire textarea bold.

  • #3
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    You could get tricky with some CSS2 pseudo-classes in Gecko, but I'm not too sure on how well they will work (don't even think about it in IE):

    textarea {
    font-weight: bold;
    }
    textarea:first-line {
    font-weight: normal;
    }

  • #4
    New to the CF scene
    Join Date
    Aug 2002
    Location
    Asia
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I wanna ask : How to make textarea's scrollbar invisible
    and limit the length of whole paragraph?
    If it is impossible to do this , is there any
    other methods to accomplish this? THANKS
    I am not an english native speaker.
    If i don't express clearly,please bear with me.THANK YOU :)

  • #5
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    573
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by JeanValJean
    I wanna ask : How to make textarea's scrollbar invisible
    and limit the length of whole paragraph?
    If it is impossible to do this , is there any
    other methods to accomplish this? THANKS
    You can limit the number of characters your textarea will accept with this script.
    boxer_1
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"

  • #6
    New to the CF scene
    Join Date
    Aug 2002
    Location
    Asia
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    excuse me , can textarea's scrollbar become invisible ?
    THANKS
    I am not an english native speaker.
    If i don't express clearly,please bear with me.THANK YOU :)

  • #7
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    textarea {
    overflow: hidden;
    }

    maybe

  • #8
    New to the CF scene
    Join Date
    Aug 2002
    Location
    Asia
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    THANKS , it works !
    Because Your generously help, I'm so lucky to solve my
    problem.
    I am not an english native speaker.
    If i don't express clearly,please bear with me.THANK YOU :)

  • #9
    New to the CF scene
    Join Date
    Nov 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Invisibility of textarea

    for the earlier question about making your background invisible...this should do it

    textarea{

    background:none;

    }


  •  

    Posting Permissions

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