MozillaZine

Limit item/node width to prevent forum ui from breaking

Talk about stuff specific to the site -- bugs, suggestions, and of course praise welcome.
Aris

User avatar
 
Posts: 3198
Joined: February 27th, 2011, 10:14 am

Post Posted July 5th, 2018, 6:53 am

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: 3799
Joined: March 19th, 2005, 10:51 am

Post Posted July 5th, 2018, 7:57 am

added, thank you

Return to MozillaZine Site Discussion


Who is online

Users browsing this forum: No registered users and 4 guests