Auto Resizing Images in Posts

Community Forums Forums Design Tips and Tricks Auto Resizing Images in Posts

This topic is: not resolved

This topic contains 5 replies, has 2 voices, and was last updated by  SoZo 1 year, 10 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #15040

    brian
    Participant
    Post count: 18

    Hello,

    What CSS do I need to have my images resize in posts? I’m currently running the eleven40 theme, and my images don’t resize when I view posts on my iPhone, or if I resize my window on the computer.

    Thanks!

    #15061

    SoZo
    Moderator
    Post count: 1573

    Please include a link to your site with all questions so that people can see what is going on.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #15140

    brian
    Participant
    Post count: 18

    Sorry about that. Here is the site: http://pianohacker.net/my-first-musical-oh-when-its-your-wedding-day/

    The image in this post does not scale when I decrease the size of the window.

     

    #15164

    SoZo
    Moderator
    Post count: 1573

    Try adding something like “max-width: 98%;” to the .wp-caption rule


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #15480

    brian
    Participant
    Post count: 18

    This doesn’t seem to work when I decrease the size of the window.

    #15481

    SoZo
    Moderator
    Post count: 1573

    You’re missing a semi colon after the margin value:

    margin-bottom: 30px
    max-width: 98%;


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

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

You must be logged in to reply to this topic.