Height of images?

  • chatloxx

    #1330

    Hey,

    In 1.2.1 the height of images with captions was definable. In 1.3.1 it was ignored, but I could repair it with removing this line:

    .entry-content img,
    .wp-caption {
    max-width: 98%;
    height: auto;
    }

    Now in 1.4 this part of the css is still the same, but removing the height: auto; line does not change anything. How can I fix it?

    To give you an example:

    http://img715.imageshack.us/img715/6561/bildschirmfoto20110715u.png

    As you see, the bottom of the caption is not in one line and the picture including the caption doesn’t have the same height as the other two. Those jpegs have different sizes (and different width:height relationships, I know this should not be changed, but those are many), and the HTML img-tag says width=200 and height=130. Well, they all have a width of 200px, but the height changes, even if set to height=130.

    Can anyone help me?

    (And sorry for a bad english)

    Mod

    Kenneth John Odle

    #15314

    Your picture is useful, because it shows us what the problem is. But be sure to include a URL, so that we can also take a look at CSS and whatever else might be causing a problem.

    Without knowing more, have you tried something like:

    .entry-content img,
    .wp-caption {
    height: 130px;

    (By the way, BBcodes don’t work between backticks.)

    Let me know,

    Ken

    chatloxx

    #15315

    Hey Ken,

    thank you for the quick reply. I tried what you mentioned, and it works. Unfortunately, it does so for all other the pictures, too, of course. So I wanted to define the size in the backend of the article, while writing it.

    You can define a height there, but it is ignored since Graphene 1.3.1, unfortunately..

    Best regards,

    Stefan

    Mod

    Kenneth John Odle

    #15316

    You can try defining a special class just for the pictures you want the specific height. Once you upload the photos, you can edit it and add the class in “Advance Image Settings.”

    Ken

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!