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 7410631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:15:47+00:00 2026-05-29T06:15:47+00:00

I am having problems with my sidebar_box , as it is displaying a unwanted

  • 0

I am having problems with my sidebar_box, as it is displaying a unwanted white space at the bottom of my images.

The thing is that this seems to happen only when I place an image inside (this doesn’t happen with text or ul lists)

You can see this jsFiddle

My HTML structure:

<div id="sidebar">
    <div class="sidebar_box">
        <div class="sidebar_header">Advertisement</div>
        <img src="./images/square_add.png" width="180" height="150" />
    </div>
</div>

The relevant CSS to reproduce:

*{
    padding:0;
    margin:0;
}

img{
    border:0;
}

#sidebar .sidebar_box{
    width:180px;
    background:#fff;
    border:1px solid #000;
}

#sidebar .sidebar_header{
    width:180px;
    background:#ddd;
    border-bottom:1px solid #000;
}

I am clueless and I have already tried everything of my knowledge.

  • 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-05-29T06:15:49+00:00Added an answer on May 29, 2026 at 6:15 am

    Add vertical-align: bottom to your image. This happens because images are displayed inline, meaning they have to leave space below in case of q, p or other letters that drop below the baseline.

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

Sidebar

Related Questions

Hi I am having problems positioning several images. It is very important that max
Im having problems displaying records to my view when passing viewdata to a user
im having problems starting a codeigniter project, the problem is that when i do
I'm having problems using textures that are larger than the OpenGL window or the
Having problems with IE8... I have a button that onclick fires the showImageBrowser() function.
Having problems with this setup what im trying to do is like so. Steps
Having problems figuring this out. trying to do a rescue_from NoMethodError, :with => :try_some_options
Having problems compiling this class. I'm working through a book on java and this
I having problems to generate a doctrine_rawsql with a custom select. This is my
having problems with this error in python: File F:\dykrstra, line 36, in route while

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.