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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:32:42+00:00 2026-06-04T17:32:42+00:00

I stumbled across some bizarre behavior in Firefox 12. Consider the following HTML: <!DOCTYPE

  • 0

I stumbled across some bizarre behavior in Firefox 12. Consider the following HTML:

<!DOCTYPE html>
<img src="resources/csv.png">
<img src="resources/globe.png">
<img src="resources/clock.png">
<img src="resources/key.png">
<img src="resources/delete.png">

When this renders, I notice there’s a small space between the first and second images. If I do a “text selection” around all of the images, I see there’s a sneaky little whitespace character between them:

wtfspace

I can think of no reason for this, but my intention is to make all of my buttons links instead, so I tried that too to see if it had any effect. Here’s the new code:

<!DOCTYPE html>
<a><img src="resources/csv.png"></a>
<a><img src="resources/globe.png"></a>
<a><img src="resources/clock.png"></a>
<a><img src="resources/key.png"></a>
<a><img src="resources/delete.png"></a>

Once again, here’s the rendered output, which has been selected. Notice now there’s a space after each image:

enter image description here

Can anyone think of a logical explanation for this quirk? Is it a problem in my HTML, or perhaps a bug in Firefox? Can anyone think of a workaround, perhaps with CSS? My first instinct is to play with the margins, but I need to be IE7 compatible, which I think does not work with negative margins if I recall correctly. Thanks much.

EDIT: Oops. I forgot that a carriage return turns into a space character in HTML. Still, many thanks to the answerers. 🙂

  • 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-06-04T17:32:45+00:00Added an answer on June 4, 2026 at 5:32 pm

    The white space is the carriage return. remove that and you’ll be golden!

    <img src="one.jpg"><img src="two.jpg">
    

    or

    <a href="#"><img src="one.jpg"></a><a 
    href="#"><img src="two.jpg"></a>
    

    is usually how I mark it in my html when I need to get rid of that whitespace.

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

Sidebar

Related Questions

I've stumbled across some code that works in Firefox but not Chrome. What seems
I have some code that parses through an html file and I stumbled across
Googling is only coming up with the keyword, but I stumbled across some code
Stumbled across the ∴ operator in some of the rvm install scripts and couldn't
I was migrating mysql database to postgres and stumbled across the following block in
I was looking at some existing code and stumbled across a variable declaration I
Whilst 'investigating' finalisation (read: trying stupid things) I stumbled across some unexpected behaviour (to
I'm familiar with $get() and $find() . But, I've just stumbled across some code
What's the purpose of use statement below which I stumbled across in some Perl
In doing some work on a project I stumbled across a formatting situation on

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.