WordPress.org

Support

Support » Themes and Templates » Wanting different max size images to text in post (yes, it is driving me insane)

Wanting different max size images to text in post (yes, it is driving me insane)

  • Hi people,

    Having immense problems trying to get my head around implementing different max width of images to the fixed width of the text in pasts and pages.

    So, for example: The text of the post set to 450px wide but the max width images of the images set to 650px.

    Currently, and obviously, when I set the post width to 450px (using .narrowcolumn as in Kubrick) and the max-width of the img to 650px the image can still only be 450px wide.

    I’m still a nascent WordPresser so be gentle!

    Thank you

Viewing 1 replies (of 1 total)
  • Kind of got it solved by using

    .narrowcolumn img {
    max-width 650px
    }

    Easy!

    Of course MSIE doesn’t support it and for some reason I can’t get the famed msie ‘fake’ max-width javascript to work in the same way. It kind of stretches all the images to that size.

    width:expression(document.body.clientWidth > 650? “650px”: “auto” )

    Suggestions?

Viewing 1 replies (of 1 total)
  • The topic ‘Wanting different max size images to text in post (yes, it is driving me insane)’ is closed to new replies.