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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:23:26+00:00 2026-05-17T17:23:26+00:00

I have code like this: <div id=sc> <h1>1. Orange</h1> <p>some text in here </p>

  • 0

I have code like this:

        <div id="sc">  
            <h1>1. Orange</h1>
            <p>some text in here </p>                                          
        </div>
        <img class="separator" src="images/separator.png" /> 

There’s ALWAYS 13px gap between the “sc” div and “separator” img.

Margins and paddings for both are set to 0, null, empty, nothing. Argh. I’m so mad ;d

I was trying to figure out what’s going on with firebug but the space between them just doesn’t belong to anything, it’s not a margin, not a padding, what the heck?

No floats, no display settings, no inherited margins or paddings either.

What’s wrong with my code? I’ve been trying to delete the whitespace in HTML but doesn’t help (by the way if I put the separator above the “sc” div there’s also some gap, but smaller).

Thanks.

[ADDED]

CSS STYLES:

.separator {
    margin: 0;
    padding: 0;
}

#sc {
    text-align: justify;
    padding: 0;
    margin: 0;
    background-image: url('images/bg.png');  
    background-repeat: repeat-y;
    width: 970px;
}
  • 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-17T17:23:27+00:00Added an answer on May 17, 2026 at 5:23 pm

    Add display: block; to the .separator image.

    .separator {
        margin: 0;
        padding: 0;
        display: block;
    }
    

    The problem is that images can sometimes add a bit of magic space up/below them, I have this issue whenever I’m working with image elements as *block* elements.

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

Sidebar

Related Questions

I have some code like this: <div><%# DataBinder.Eval(Container.DataItem, M_ClassProperty) %></div> <img src='<%# DataBinder.Eval(Container.DataItem, M_AnotherClassProperty).To<string>()
Suppose to have a code like this: <div class=notSelected> <label>Name <input type=text name=name id=name
Say I have jquery code like this: html += '<div class=index>' + item.index +
I have html code that looks roughly like this: <div id=id1> <div id=id2> <p>some
I have some code like this if ($('.lblpricefrom > strong').html() == '£'){ $('.lblpricefrom').parents(div.resultsitem).hide();} But
I have HTML code like this : <div> <a>Link A1</a> <a>Link A2</a> <a>Link A3</a>
Suppose I have code like this: template<class T, T initial_t> class Bar { //
I have HTML code like this: <div id=paragraph> <pre> <p>First Line in the paragraph
Ok, I have code like this: <div id=header> (yeah, have to use div instead
I have code like this: var newMsg = new Msg { Var1 = var1,

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.