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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:25:35+00:00 2026-06-01T18:25:35+00:00

Or i have been building web pages for too long without a break or

  • 0

Or i have been building web pages for too long without a break or something really weird happened.

<div style="background-color:#0F0; margin:5px; height:5px;"></div>

Will result in a long bar of 5 height across the width of the parent div. This should normally not be visible since i gave the div no width.

I tried everything, messed up my whole CSS layout and nothing seemed to get rid of it. I even check some divs of me in that same project that still work like this.

So i opened a new project and just filled in that line above to make sure there wasn’t some style setting messing things up. But still there is a green bar showing.

I just want my div to be the size of the text in it.

Again, i could be seeing things but this happened all of a sudden and i’m really clueless…

  • 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-01T18:25:37+00:00Added an answer on June 1, 2026 at 6:25 pm

    use display:inline because a div element automatic get the display:block

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

Sidebar

Related Questions

without getting too verbose....i have been learning AS3 over the last week by building
I have been investigating building web parts for sharepoint 2010 and currently have a
I am building a web application and have been told that using object oriented
I have been tasked with building a new web project from scratch, with the
I am learning Python and building my first web app. I have been going
I have been building a client / server app with Silverlight, web services, and
I want to bounce an idea around. I have been building web services and
I have an existing web application which I have been building with an ant
It has been a long while since I have really worked with J2EE so
I have been building applications / web apps for some time, and I guess

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.