[personal profile] prue84 posting in [community profile] style_system
Hi all. :)

I've just made the final step to import LJ to my dead DW account. I don't wish to bother with installing a custom style and picked "Argyle" theme from the ones available.

I just occurred into an issue that makes me go mad.

For years, LJ didn't resize the images in your entries, so if you have a pic bigger than the container (or even your screen), you just got the horizontal scrollbar.
Recently, though, LJ started to auto-resize them and in my LJ style they get resized to 500px. Aspect ration is respected. I was then forced to modify all my posts to add a link for the fullsize (xx_original.jpg) pic.

I should also note that in the html for the entry I always specify the width and height of every image.


On DW, though (or, at least, in the style I'm using) there is no resize. I tried to manually the code seen here and then add some variations of

.entry-content img {
max-width: 99%;
height: auto;
}


in the custom css, changing from "99%" to "100%" or "500px". Anyway, the point is that aspect ration is never respected, the image keeps the original height and therefore the images gets stretched.
Same post: on LJ and on DW. (put the max-width to 500px so you can visibly see the difference).

A research on google didn't help, the code above should be apparently enough. Is there any way to force the aspect ration to be mantained on my theme? I don't really want to edit every single post to change the width and height values (and doing calculations for every single image so to respect ration - see, open every image in image editor, scale to 500 and note down the new height value) and, at this point, I'm too much used to the image resized that I don't want to see the original size in the entry anymore.

I use Argyle for Crisped. My account is free.


Thank you. :)
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

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 May. 31st, 2025 05:24 pm
Powered by Dreamwidth Studios