
-
AuthorPosts
-
September 4, 2015 at 1:42 pm #498350
I insert single pictures in Blogposts and give an individual height of 130px to the pictures. The width adapts WordPress automatically. This works in almost all cases, only with very narrow pictures. Exemplarily here:
http://maahn-sammlerpage.de/kind-der-sterne-5-2008-541335635152-eu/
The narrow picture has assigned, like all the other pictures, also a height of 130px.
September 4, 2015 at 4:36 pm #498481Hi patrickmueller!
The image your using there is 24 x 154. Are you trying to get it to display in it’s original dimensions?
Send us a WordPress login and we’ll take a closer look.
Cheers!
ElliottSeptember 4, 2015 at 5:45 pm #498526Hi,
24 x 154 is the original size of the picture in this case. In the blogpost I gave the picture a individual size (high = 130 px, width = autoresized by wordpress)
September 7, 2015 at 7:56 am #499078Hey!
I’m sorry but I’m not sure I understand it clearly. What do you mean by ” I gave the picture a individual size “? How did you do that? Please provide a screenshot so that we can understand it better.
Cheers!
IsmaelSeptember 7, 2015 at 6:41 pm #499480“Individual size” means: Post Editor / Tab: Visuals / Select Picture / Edit and under Display Settings: Custom Size / Height: 130
Due to your support I’ll set the language of the backend into English.
September 8, 2015 at 3:11 pm #499919Hey!
In the style attribute of the image set it’s width and height manually like so.
style = "height: 154px !important; width: 24px !important;"
Regards,
Elliott-
This reply was modified 9 years, 10 months ago by
Elliott.
September 8, 2015 at 5:40 pm #500032Scary!
So I tried some other changes in the code. Now I solved the problem by myself but I don’t understand why this problem exists. Here is the resolution of the problem:
In the “Text”-tab of the post editor I gave the image a individual css code like style=”margin-right: 15px;” and the requested size height=”130px” width=”20px”. With this declaration the image isn’t shown in the correct size. Now I changed the code into style=”margin: 15px; height: 130px; width: 20px;” and the size in the Frontend is correct.
So now I’ll change the code in every single post and the problem is solved. But I don’t know why the single declaration of the code isn’t accepted.
Thanks for your support.
Cheers!September 8, 2015 at 5:49 pm #500038Hi!
We have other CSS which sets the height to auto but I’m not sure why it’s shrinking down like that. If you set the height and width in the style attribute though like in my previous post it will override that.
Let us know if you have any other questions.
Cheers!
Elliott -
This reply was modified 9 years, 10 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.