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

  • SEARCH
  • Home
  • 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 8719863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:54:00+00:00 2026-06-13T06:54:00+00:00

what do i do if i put the tag inside a div which has,

  • 0

what do i do if i put the tag inside a div which has, say 354×300 px something, rough estimate, and the src of that tag has a px of 1.6k x 1.2k? The problem is that there is a space below the image, i doesn’t occupy the whole space, i don’t know what happen the image is already big enough i thought its gonna re-size itself to what is the size of the div where the img tag is located.

<div class="myClass">
     <img src="theVeryBigImage.jpg"/>
</div>

Above is my code for that part which results on this part, see image below

enter image description here

As you can see, that image has a size of 1600×1200 px but still it doesn’t occupy the whole space, it leaves a whitespace (Blank space) below

  • 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-13T06:54:02+00:00Added an answer on June 13, 2026 at 6:54 am

    Some default css may be setting image height.

    Try

    .myClass { height: /* some height */; }
    .myClass img{ height:100% ; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an image inside a div tag so that on clicking this image,
I know that I should put all the html elements in body tag, but
I'm using this: http://code.google.com/p/svg-edit/ I put a hard coded code inside the svgcanvas div
I would like to know how to embed my div tag, which I want
Below I have a h3 tag inside a div. #one { width:300px; height:200px; background-color:black;
how can i add <div> or a <span> tag inside an <option> tag? I
I have a webpage where I put a text into a pre tag that
I got a tag inside a : #in .css file div.box { width: 50px;
A simple question, I think: I want to put a tag into an ASP.NET
I'm wondering what is the best place to put the viewport tag. after <title>

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.