rsyslog / rsyslog-website

website-related material, most importantly the issue tracker
6 stars 4 forks source link

Consider to expand textareas with code examples to "width: 100%;" #27

Closed Whissi closed 10 years ago

Whissi commented 10 years ago

Hi,

currently, the documentation with code examples looks like

textarea_current

Often I have to increase the size by hand to see all the content. Doesn't the following design looks better?

textarea_new

I applied

box-sizing: border-box;
width: 100%;

to the textarea element (box-sizing: border-box; makes the magic), to achieve this design.

alorbach commented 10 years ago

It does indeed looks better, so we applied the css change for the whole documentation.

Whissi commented 10 years ago

Is there a reason why you set width: 98%; instead of width: 100%;? Now it looks like

textare_whitespace

But as said before, thanks to box-sizing: border-box;, width: 100%; should work on all major browsers (including IE).

alorbach commented 10 years ago

Yes 100% doesn't look well on some sites, at least using Chrome. But 98% does look well.