|
Rena I had one (1) message in Discord deleted and proceeded to make a huge, huge mess about how it was a violation of free speech and how moderators are supposed to be spam janitors and nobody should have the right to tell me not to talk about school shootings Level: 135 Posts: 3681/5390 EXP: 29078042 For next: 256963 Since: 07-22-07 Pronouns: he/him/whatever From: RSP Segment 6 Since last post: 343 days Last activity: 343 days |
|
09-28-10 12:01:30 AM Post #3681 Well, I thought I'd try to improve upon this layout some more, and I think once again I've run up against one of the limitations of CSS.
What I want to do is get rid of this surrounding box and just place the image inline, lining it up with a series of empty <div>s of varying widths, preventing the text from flowing onto the non-transparent parts of the image. Creating those is fairly trivial:
(Each yellow rectangle is a <div> ) The problem is making the image work right. It needs to stick to the bottom of the container, but not pass the top. e.g. a long post will end up like this: whereas a short one will end up like this: and not like this: I've managed it in this layout by putting the image in an absolute-positioned box and using some clipping and scrolling settings. (I don't actually remember the exact method but I could easily figure it out again...)
The problem is, being absolute-positioned means text will ignore it and flow right overtop. I prevent that with a margin, but that doesn't allow text to line up close to the image - it just keeps it no less than a certain distance from the edge of the container, which happens to be the width of the image at its widest point. I haven't found a way to properly clip the image without using absolute positioning, and the stacked <div>s need to be at the same Y position as the image, while still preventing text from flowing onto them individually. Is there any way to achieve this with CSS? The other option is to eliminate the top clipping issue by setting a minimum height to display the entire image in every post. Since it's a large image, this is hardly ideal. ____________________ |




but I could easily figure it out again...)
![this is about the only use for Twitter [loading witty comment...]](http://twitstamp.com/custom-2013.png)

