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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:12:32+00:00 2026-05-16T04:12:32+00:00

I am not able to figure out why this does happen. On all non-webkit

  • 0

I am not able to figure out why this does happen.
On all non-webkit browsers I tested the code below with (IE8, FFx 3.x, Opera 10.x) there is no scrollbar on the <pre> area. For both Chrome and Safari vertical scrollbar appears.

Of course I do not want it to appear.

The code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB" dir="ltr"> 
    <head>
        <style type="text/css" media="screen,projection">
body {
    color: black;
    font-family: Verdana, sans-serif;
    font-size: 90%;
}

#container {
    font-size: 9pt;
}

#container-content {
    color: black;
    line-height: 1.5em;
}

pre {
    background-color: #F9F9F9;
    border: 1px dashed #2F6FAB;
    color: black;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    line-height: 1.1em;
    overflow: auto;
    padding: 15px 20px;
    width: 150px;
}
        </style>
    </head>
    <body>
        <div id="container">
            <div id="container-content">
                <pre>line 1
line 2
and this is a very long like it is, and this is a very long like it is
line 4</pre>
            </div>
        </div>
    </body>
</html>

Note that this is a code snippet from a large project. All unrelated code is stripped out.

Removing line-height or making it >= 1.3em solves the problem but I want it to be 1.1em.

  • 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-16T04:12:32+00:00Added an answer on May 16, 2026 at 4:12 am

    If you change the overflow property to the default (visible) or remove it, the scroll bar disappears. See: http://www.w3schools.com/css/pr_pos_overflow.asp

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

Sidebar

Related Questions

I am not able to figure out this simple thing in ASP.NET MVC: I
I have tried but i am not able to figure this out. I have
I'm sure this is simple, but I'm not able to figure out why this
This error is a nightmare, I have not been able to figure out why
I am not able to figure out why it is not tracing value for
I am not able to figure out how the graphs shown here are constructed?
I am stuck with a simple problem but not able to figure out the
In SQL Server 2005, I'm trying to figure out why I'm not able to
I have seen the abbreviation WS-*, but I have not been able to figure
Im not able to load the page with circlepageindicator. This is the xml <FrameLayout

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.