Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS textarea

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #39787
    nuodas159
    Participant

    Hello, I wanna ask how to fix the textarea. Cuz on opero shows a different size than the firefox.

    #109799
    chrisburton
    Participant

    Please provide some code and throw it up on http://codepen.io or http://jsfiddle.net

    #109802
    nuodas159
    Participant

    #message-box {
    width: 484px;
    height: 180px;
    margin-bottom: 15px;
    }

    #message-box textarea {
    min-width: 484px;
    max-width: 484px;
    min-height: 40%;
    max-height: 100%;
    font-size: 1.2em;
    }

    #109807
    chrisburton
    Participant

    I don’t have Opera installed. Maybe someone else can chime in.

    #109808
    Senff
    Participant

    Why use a min-width for something like a textarea? I would play it safe and not let the size depend on the contents, but just give it a fixed width/height.

    #109866
    nuodas159
    Participant

    I setting 100% cuz the text area can’t move him with max-width: 100%.
    So any sollution?

    #109905
    nuodas159
    Participant

    So someone can help me?

    #110094
    Taufik Nurrohman
    Participant
    textarea {
    width:100%;
    height:400px;
    border:1px solid black;
    padding:2px 4px;
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    box-sizing:border-box;
    }
    #110096
    nuodas159
    Participant

    Thanks, fixed. :)

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘CSS’ is closed to new topics and replies.