Comment-width.

Jul. 1st, 2011 03:01 pm
tyger: Espeon (pokémon - espeon)
[personal profile] tyger posting in [community profile] style_system
I've been trying to fix my comment-width - one of the major problems I find with the custom comment pages is the comments squidge up really really quickly - but even setting width with ems doesn't help if you're on a browser with a different window size.

So, mainly: is there a way where I can set comment width = post width?

I'd prefer to keep it that simple - having auto-resizing layouts is also good - but if it's impossible that's good to know, too.

Date: 2011-07-01 02:31 pm (UTC)
branchandroot: oak against sky (Default)
From: [personal profile] branchandroot
By "squidge up" I am assuming you mean "get narrower as they go further down a thread". There is a way to do that, if you're okay with side-scrolling, because if the comments stay wider they will start to run off the right side of the page. You can set a minimum width, which is something the box can be wider than but not narrower than.

If you're okay with the side-scrolling, you can say .comment { min-width: 20em;} or, if you want it proportional to the window size you can set it in percentages. 30% might do it. Then you'd have to add .comment-wrapper { position: relative; } so the comment is thirty percent of that and not of the whole column or screen. All modern browsers should know what to do with that.

Profile

Dreamwidth style system discussion

October 2025

S M T W T F S
   1 234
567891011
12131415161718
19202122232425
262728293031 

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 13th, 2026 04:17 pm
Powered by Dreamwidth Studios