Limit item/node width to prevent forum ui from breaking

Talk about stuff specific to the site -- bugs, suggestions, and of course praise welcome.
User avatar
Aris
Posts: 3248
Joined: February 27th, 2011, 10:14 am

Limit item/node width to prevent forum ui from breaking

Post by Aris »

This is just a suggestion, but a simple CSS addition to forums general/global CSS code could fix a major bug with too large images posted within image tags and with too wide code boxes, when using too long text strings.

Menus on the right and the posters info on the left require about 370-400px of width. Everything in between could be flexible and calculated from windows current width.

I use this in Stylus for forums.mozillazine.org:

Code: Select all

img,
.codebox {
  max-width: calc( 100vw - 400px );
}
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: Limit item/node width to prevent forum ui from breaking

Post by Brummelchen »

added, thank you
Post Reply