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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:20:49+00:00 2026-05-19T12:20:49+00:00

Say I have several inline-block div tags, like this <div class=image> </div> <div class=image>

  • 0

Say I have several inline-block div tags, like this

<div class="image">

</div>
<div class="image">

</div>

class image just sets their size to 100×100 and a gray background color. Their margin and borders are set to 0, and yet there is spacing between the two rectangles.

If I write the HTML such as this, however:

<div class="image">

</div><div class="image">

</div>

Removing all whitespace between the divs, the spacing disappears.

Since I don’t want to write my HTML like that, I’m thinking that there must be a way to remove whitespace using CSS. I don’t care if the whitespace is removed, hidden or downsized as long as it’s visibility is removed.

Thanks for any help


As requested, JSFiddle: http://jsfiddle.net/6h3Jx/


Updated with word-spacing: http://jsfiddle.net/6h3Jx/1/

  • 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-19T12:20:50+00:00Added an answer on May 19, 2026 at 12:20 pm

    it is an inline element behaviour, so try floating left. http://jsfiddle.net/aVrSx/

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

Sidebar

Related Questions

Let's say I have a Base class and several Derived classes. Is there any
I have an abstract root class, let's say A . And I have several
Say I have several JavaScript includes in a page: <script type=text/javascript src=/js/script0.js></script> <script type=text/javascript
Say you have several webparts, one as a controller and several which take information
Lets say I have several web sites on my web server, all as applications
I have several user controls, let's say A , B , C and D
I have several similar methods, say eg. CalculatePoint(...) and CalculateListOfPoints(...). Occasionally, they may not
I have heard several podcasters (most recently the guys on DotNetRocks ) say that
Let's say have something like: SELECT energy_produced, energy_consumed, timestamp1 AS timestamp FROM ( SELECT
Let's say I have several versions of a gen_event handler and want to change

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.