-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Max-size for images on mobile views #20
Comments
After I saw this I shrunk the size of the image a bit. I'll see about adding a more generic solution at some point. I really wish my CSS fu were stronger. |
Maybe there's a solution for WordPress (my WordPress fu isn't existing), but there's the |
And as mentioned sth. like article img .alignleft {
max-height: 30%;
} should do the trick ;-) |
The thing to do is to add it to Anyway, if you can figure it out, I'm happy to take a pull request. If not, I'll make this a priority and work on it tomorrow. I need to set WP up locally again so I can test it out. |
I can't get the max-height/width attributes to do anything. When I shrink the window down, the image eventually pops up above the text, but I have yet to see where the hell I need to add the img attributes to make it happen sooner. I friggin complex CSS files. |
Okay, I will give it a try later today - sorry I have been busy 😕 |
Here's what I came up with:
My approach was rather pragmatic - add it to the bottom. That worked well for dlang.org so far too. |
As you can see below images look a bit pixelated and too large on mobile devices.
I guess something like
max-height: 30%
could be an easy solution.Anyways great article!
The text was updated successfully, but these errors were encountered: