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 05:39 am (UTC)
From: [personal profile] ex_awakened208
I looked at your css. Maybe try removing .comment-wrapper {width: 29.5em}. Or was it there for a specific reason?

Date: 2011-07-01 06:23 am (UTC)
From: [personal profile] ex_awakened208
Oh okay, I see. I didn't even think to see if that worked in other browsers. What browser do you use? I could try some testing.

Date: 2011-07-01 06:44 am (UTC)
From: [personal profile] ex_awakened208
I get what you're saying now, but I don't know if this is possible without removing the way replies always shift to the right of the parent comment.

Date: 2011-07-01 07:38 am (UTC)
cesy: "Cesy" - An old-fashioned quill and ink (Default)
From: [personal profile] cesy
Have you tried setting the width to a percentage?

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 

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 9th, 2026 08:09 am
Powered by Dreamwidth Studios