prue84: (Default)
[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. :)
From:
Anonymous( )Anonymous This account has disabled anonymous posting.
OpenID( )OpenID You can comment on this post while signed in with an account from many other sites, once you have confirmed your email address. Sign in using OpenID.
User
Account name:
Password:
If you don't have an account you can create one now.
Subject:
HTML doesn't work in the subject.

Message:

 
Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.

Profile

Dreamwidth style system discussion

August 2017

S M T W T F S
   12345
6789101112
13141516171819
20212223242526
2728293031  

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 22nd, 2017 02:50 pm
Powered by Dreamwidth Studios