oocss icon indicating copy to clipboard operation
oocss copied to clipboard

size1of1, no width property...

Open Keyamoon opened this issue 14 years ago • 2 comments

Setting the float to none is not always enough to get a 100% width. So I suggest adding a width: 100% to the size1of1 class. I personally ran into this problem when I was trying to make a textarea take the full width of the parent element.

Keyamoon avatar Sep 10 '11 02:09 Keyamoon

You are using size1of1 on textareas? That is not it's intended use.

On Sep 9, 2011, at 7:43 PM, Keyamoon wrote:

Setting the float to none is not always enough to get a 100% width. So I suggest adding a width: 100% to the size1of1 class. I personally ran into this problem when I was trying to make a textarea take the full width of the parent element.

Reply to this email directly or view it on GitHub: https://github.com/stubbornella/oocss/issues/93

Nicole Sullivan

Object Oriented CSS http://wiki.github.com/stubbornella/oocss Smush it http://smush.it Website http://stubbornella.org Tweet! http://twitter.com/stubbornella Book Even Faster Websites with O'Reilly

stubbornella avatar Sep 10 '11 07:09 stubbornella

If it can help with writing less code, why not? Why limit the way it can be used? All other size classes can be used to adjust the size of an element, if need be. Does adding a width property to size1of1 make it less useful in any way?

I know these size classes are originally meant to be used for making a grid and the layout of the page. But they can certainly help you Don't Repeat Yourself in other situations as well.

Keyamoon avatar Sep 10 '11 14:09 Keyamoon