Skip to content

Conversation

@pbhj
Copy link

@pbhj pbhj commented Aug 11, 2018

I think you can switch out "textarea, iframe{ ...}" in the CSS for body>*{...} as it applies to all elements immediately below body, which is in this case all the textareas and the iframe.

Apologies if this is the wrong way to do a pull, or bad social form; I'm not really a coder.

I think you can switch out "textarea, iframe{ ...}" in the CSS for body>* as it applies to all elements immediately below body, which is in this case all the textareas and the iframe.
@notpushkin
Copy link

notpushkin commented Aug 12, 2018

*>*>*{width:100%;height:50%} /* html > body > * */
*{margin:0} /* suggested in #1 by @mstaniuk */
:valid{width:33.33%;font-size:18} /* textareas are always valid */

@notpushkin
Copy link

OK, even better! [id]{width:100%;height:50%} should do the trick too

@pbhj
Copy link
Author

pbhj commented Aug 12, 2018

That's a good one @notpushkin, it's quite a while since I did active webdev, didn't recall that selector.

https://www.w3.org/TR/CSS2/selector.html#attribute-selectors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants