[personal profile] runpunkrun posting in [community profile] style_system
Hi, do I have a fussy question for you:

The little cut-tag triangles never seem to line up with their parentheses in any style I've used. Previously I've been able to nudge them into place, but on my new layout for [community profile] fancake, they are off and the only way I can make them line up nicely causes a problem.

I did this:

span.cuttag a img {
margin-bottom: -6px !important;}


And it's fine...but if the entry ends with a cut tag, this creates a vertical scrollbar within the entry. Clearly this is because of my negative margin bottom. Is there a nice, honest way to do this that doesn't infringe on neighboring elements? That triangle needs to be nudged down a whole bunch.

Thank you!

Date: 2019-11-30 03:38 am (UTC)
momijizukamori: (dreamsheep | styles)
From: [personal profile] momijizukamori
I think if you change that to vertical-align: bottom; it should accomplish the same thing as the negative margin without the scrollbars? I don't remember the exact reason this happens with images that are wrapped in a link, but it's got something to do with the line height alignment to the surrounding text.

Date: 2019-11-30 04:00 am (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori

From what I was reading about vertical-align, it looks like you can maybe specify a custom offset, which might get you closer?

Honestly I kind of wonder if there's a font glyph we could use instead because I think anything with images is going to be tricky to align properly.

Profile

Dreamwidth style system discussion

April 2025

S M T W T F S
  12345
6 78910 1112
13 141516171819
2021 2223242526
27282930   

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 14th, 2025 01:17 pm
Powered by Dreamwidth Studios