- This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hello, I wanna ask how to fix the textarea. Cuz on opero shows a different size than the firefox.
Please provide some code and throw it up on http://codepen.io or http://jsfiddle.net
#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;
}
I don’t have Opera installed. Maybe someone else can chime in.
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.
I setting 100% cuz the text area can’t move him with max-width: 100%.
So any sollution?
So someone can help me?
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;
}
Thanks, fixed. :)