Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8495263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:31:31+00:00 2026-06-10T23:31:31+00:00

I put an image into the following wordpress site: http://sofrahomemadefood.com/menu/ The image is big.

  • 0

I put an image into the following wordpress site:

http://sofrahomemadefood.com/menu/

The image is big. Therefore, it runs over its container. It gets covered up by the next region as the following image shows:

Image gets covered up by the surrounding region

I would like to learn the reason of this and how to prevent the image being covered up?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T23:31:33+00:00Added an answer on June 10, 2026 at 11:31 pm

    The reason is this chunk of html:

    <img class="alignnone" title="Menu" src="http://i.imgur.com/OKRf1h.jpg" alt="" width="1024" height="663">
    

    (that’s the embedded image, notice the width and height attributes)

    You can fix it with:

    img.alignnone{
        width: auto; /*You may want to flag this !important for some browsers*/
        height: auto; /*You may want to flag this !important for some browsers*/
        max-width: 100%;
        max-height: 100%;
    }
    

    What this does:

    • The image’s nautral aspect ratio is preserved by the use of width:auto and height:auto
    • The image is prevented from breaking out of the bounds of it’s parent element by max-height:100% and max-width:100%

    On a side note:

    For people who always want the image to scale to the width/height of the parent, preserving aspect ratio: You can use min-width:100% (for width) or min-height:100% for height, with width:auto and height:auto to preserve the ratio.

    If you would rather keep the image at size and let it flow out of the content area, you can remove overflow:hidden from the div.maincontent selector on line 202 of style.css.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I put the following into a loop: if ($('#s1').attr('checked') ){ image(s1, mouseX-s1.width/2+random(-brushSize,
I'm trying to put together an image uploader. I want to upload images into
I need to put a date into the title attribute of an image so
All I do is scale image using GIMP and put them into hdpi, ldpi
How to put sequence (raw) data of one image into another which has different
I'm getting into wordpress and I've been following some pretty good tutorials and reading
I'm trying to look into wxPython and sizers, and I put together the following
i need to put images into a json string.. first is that possible? i
I have put image as background of button. but I don't know at what
Possible Duplicate: How to center div horizontally and vertically I need to put image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.