WordPress.org

Ready to get started?Download WordPress

Forums

How can I specify different img and p widths? (1 post)

  1. danhaskett
    Member
    Posted 2 years ago #

    Hi there,

    I've tried to specify different maximum widths for my content image and paragraphs but am struggling a bit. This is the code I've used -

    #content p { width: 500px; }
    
    #content img { width: 600px; }

    Here is a good example of it at work. For some reason only images which have a caption are able to expand to that width. The top image of the eiffel tower has no caption and is very small, it's sticking to the p width.

    Example

    Any help would be much appreciated,

    Thanks

    Dan

Topic Closed

This topic has been closed to new replies.

About this Topic