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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:24:50+00:00 2026-05-27T00:24:50+00:00

I have a <div>&nbsp;</div> which has the following styles: background-position: 0 bottom; background-repeat: no-repeat;

  • 0

I have a <div>&nbsp;</div> which has the following styles:

background-position: 0 bottom;
background-repeat: no-repeat;
font-size: 0.01em;
overflow: hidden;

As far as I can tell, this should simply not appear on the site, but it renders as a dot similar to a full stop instead.

Changing the font-size to anything larger than 0.01em makes the dot disappear.

(The div doesn’t accomplish anything, but was recently noticed on a customers site and we wish to find out how this could happen?)

Any ideas what’s causing it to render as a dot? Or render at all?

  • 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-27T00:24:51+00:00Added an answer on May 27, 2026 at 12:24 am

    The white-space will show. It is considered to have content, so it will display. In this case, as a dot.

    The &nbsp; is a non-breaking white-space and is treated differently by the browser than a normal white-space. For example, if you have the following element:

    <span>&npsp;&nbsp;&nbsp;</span>
    

    it will render with 3 spaces in the element. That is, the equivalent of three &nbsp; character widths will be rendered in the span. This is often used by new developers to indent text instead of using CSS, but we know better, don’t we 😉

    On the other hand, the following:

    <span>   </span>
    

    will render as a span element, and some browsers will consider it’s content empty and will not render unless it is given an explicit height and width (and display in this case) or a border, or padding which will give it a calculable width and height.

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

Sidebar

Related Questions

I have the following code (inherited from someone): <div class=feedback>&nbsp;</div> <form onsubmit=return false autocomplete=off>
I have such html and css. <div class=selected> <div class=text>First</div> <div class=arrow>&nbsp;</div> </div> .selected
I have this div: <div class=transparency data-title=<? echo $perf; ?>>&nbsp;</div> An this is the
I have a div and an iframe on the page the div has z-index:
I have a div in which a page is loaded with the DojoX Layout
I have a div with overflow:hidden , inside which I show a phone number
I have a div which I place at the top right-hand corner of a
I have a piece of piece of HTML which looks like this - <div
I have a table, with rows which all have a cell of a div
I have the following javascript code, which is modified from the SimpleUpload demo in

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.