• Resolved clage

    (@clage)


    I prepared a new text widget into I’d like to show a jpg. It is 249X249 pixel. Right for my twentytwelve theme.

    I used this kind of text:

    <a href="URL_of the link" title="Guide">
    <img src ="http://www.myblog.com/wp-content/uploads/2015/06/trial.jpg" alt="Description of the image" width="249" height="249">
    </a>

    The image is fine but the border of the widget is only few pixel height. So the image start at the top into the widget but finish outside the bottom of the border frame.

    Please, What could I add to the code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • caused by a ‘float: left’ which you have on image formats in style.css of your child theme;

    overwrite that for widget images with (at the bottom of style.css of the child theme):

    .widget img { float: none; }

    Thread Starter clage

    (@clage)

    Yes, it is! Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘text widget height shorter than the image inserted’ is closed to new replies.