CSS: Basic Form Styling

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

I had no idea about "box-sizing: border-box;" as I subtracted the input and textarea width to accomodate the padding on both sides, which had always irked me. That takes care of that. Thanks!

pthomasgarcia
Автор

I've read somewhere, that you should use
    <label for="">Text</label>
    <input />
and not
    <label for="">
        Text
        <input />
    </label>
to follow standards, but I am not sure about why is that REALLY better. 

CzajekTutorialowiec
Автор

It's good to limit textarea max-width so it wont go out of container

ArnoldsKtm
Автор

Great! I'm still waiting for the 'social network tutorial' series :D are these going to be released any time soon? Sorry, I'm being impatient, but I’m really excited!

wocypke
Автор

hello i am a very new beginner in programming languages, and i i wanted to learn html first because that is what everybody suggested me but i can see in different tutorials that they often mention CSS, why is it always related to HTML and why do they mix together, why dont they just mix forexample JAVA with CSS but only CSS with HTML ?

osmonkerceli
Автор

I think the box model should follow the model from box-sizing -- it's certainly more intuitive. 

pilkers