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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:10:23+00:00 2026-05-23T07:10:23+00:00

HTML (3x times): <div class=scream> <div class=author> <img src=avatars/dagrevis.png alt= title=daGrevis /> </div> <div

  • 0

HTML (3x times):

<div class="scream">
  <div class="author">
    <img src="avatars/dagrevis.png" alt="" title="daGrevis" />
  </div>
  <div class="data">
    <span>Lorem Ipsum is simply dummy text of the printing and typesetting industry...</span>
  </div>
  <div class="clearer"></div>
</div>

CSS:

.scream {
  background: #F4F4F4;
  width: 944px; height: 48px;
}

.scream .author {
  float: left;
}

.scream .data {
  float: left;
}

.clearer { clear: both; }

This is how it looks on my browser:

My situation.

As you can see, height is set to 48px. Images size is 48px as well. How it comes that I don’t see each div.scream in separate line? If I set height to 50px, for example, all works! In my opinion, it’s because there are some-kind of border/outline/margin/padding that ruin my life. Unfortunately, with FireBug I don’t see anything like that…

  • 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-23T07:10:23+00:00Added an answer on May 23, 2026 at 7:10 am

    enter image description here

    The bottom edge of an image is aligned with the baseline (the grey line) of the line box by default. The space below the baseline (also called “descender space”) is what’s causing your problem. See this article by Eric Meyer for more details.

    To fix it, add this rule:

    .scream .author img {
        display: block;
    }
    

    Or this one:

    .scream .author img {
        vertical-align: bottom;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this HTML code multiple times one after the other: <li> <img src=path/to/my/picture.jpg
Here is the HTML <a style=border: medium none; display: block; class=agendaNav href=#><img class=rightArrow src=/images/arrowdown.png>
I have this HTML code: <div id=content> <div class=profile_photo> <img style=float:left;margin-right:7px; src=http://gravatar.com/avatar/53566ac91a169b353a78b329bdd35c95?s=50&d=identicon class=profile_img alt={username}/>
<div class=modal hide fade id=modal_window> <div class=modal-header> <button type=button class=close data-dismiss=modal aria-hidden=true>&times;</button> <h3>Modal header</h3>
I have a HTML document like below: <td> <div class="commentLink"> <a href="javascript:ShowBox()">Show</a> </div> <div
I have a class that is building some HTML using data stored in an
Here is the relevant HTML: <div class=row> <div class=arrow box>&#9668;</div>Month Year<div class=dayMonth box></div>&#9658;<div class=arrow
Suppose, I have an HTML element, <div class = variable-content> </div> I want to
html: <div class=box> <div><p>Hello World</p></div> </div> <input type=button id=add value=Add /> jquery: $(document).ready(function(){ var
I have a simple div on html, something like: <div class=warning> <h3>Please make sure:</h3>

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.