Web Analytics Made Easy -
StatCounter Textarea Style (bold, italics, and such) - CodingForum

Announcement

Collapse
No announcement yet.

Textarea Style (bold, italics, and such)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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.
    Scripting | JavaScripts | PerlScripts | Python Scripts | Articles | My Journal

    Comment


    • #3
      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;
      }
      jasonkarldavis.com

      Comment


      • #4
        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 :)

        Comment


        • #5
          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
          CodingForum Moderator
          "How did a fool and his money get together in the first place?"

          Comment


          • #6
            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 :)

            Comment


            • #7
              textarea {
              overflow: hidden;
              }

              maybe
              jasonkarldavis.com

              Comment


              • #8
                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 :)

                Comment


                • #9
                  Invisibility of textarea

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

                  textarea{

                  background:none;

                  }

                  Comment

                  Working...
                  X