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

The Archive Base Latest Questions

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

This is how my problem looks like: As you can see, there are 3

  • 0

This is how my problem looks like:

div spacings

As you can see, there are 3 images (divs), and I wan’t to remove that black spacings between each divs.

The most important thing is that, when I place in my css the following:

* {
padding: 0;
margin: 0;
}

Then it looks fine:

Working example

The problem is that I can’t use padding: 0 and margin: 0 for my whole html, because other attributes will be broken then…

I’ve tried to add: padding:0 and margin:0 on each div (image), but it not work.

HTML Source:

<div id="sidebar-left" class="sidebar" role="complementary">
       <div class="sb-ui sb-title"><h3>Account</h3></div>
       <div class="sb-con">
            <ul>
        <li><a href="index.php?subtopic=accountmanagement">My Account</a></li>
                <li><a href="index.php?subtopic=accountmanagement&action=logout">Logout</a></li>
            </ul>
       </div>
       <div class="sb-ui sb-end"></div>
</div>

My CSS:

#sidebar-left {
margin-right: 9px;
}

.sidebar {
width: 170px;
position: relative;
bottom: 7px;
}

.sidebar, #content {
float: left;
}

.sb-title {
height: 60px;
text-align: center;
}

.sb-ui {
background: url("../images/ui/sidebar_ui.png");
}

.sb-con {
background: url("../images/ui/sidebar_bgrepeat.jpg") repeat-y;
}

.sb-end {
height: 23px;
background-position: bottom center;
margin-bottom: 10px;
}

.sb-ui {
background: url("../images/ui/sidebar_ui.png");
}

All help attempts will be appreciated.

  • 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-26T17:18:52+00:00Added an answer on May 26, 2026 at 5:18 pm

    It’s likely the margin on the ul is causing this.

    .sb-con ul { padding:0; margin:0; }
    

    may have the desired effect. The li might also be affecting the layout; but we can’t tell from your provided code.

    Your “catch all” reset removes the default margin/padding; hence why it looks ok.

    Edit – your .sb-title h3 may also need the bottom margin removed as it looks like you are using a fixed height (60px) but the default margin would add extra height.

    This is easily debugged with firebug or Chrome’s web inspector with the visual indications of where the spacing is coming from.

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

Sidebar

Related Questions

Problem: I have a string that looks like this: [1=>2,3,4][5=>6,7,8][9=>10,11,12][13=>14,15][16=>17,18] Question: How can you
Probably a very trivial problem. I have an object that looks like this: @PersistenceCapable
I'm having a problem. I have a UIView, that looks like this : In
I have a problem woth floating divs. On this site you can see a
UPDATE It looks like this problem has been quietly fixed in iOS 4.3. Up
We are having this problem with a controller right now; the controller looks like
I have a problem, my rake file looks like this: require File.expand_path('../config/application', __FILE__) require
I have a problem with a jquery function. My HTML looks like this, I
The Problem I'm receiving crash reports from users that look like this: Code Type:
I know this looks embarrassingly easy, and I guess the problem is that I

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.