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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:03:35+00:00 2026-05-31T04:03:35+00:00

I have a div that is deliberately smaller than its content (I’m making a

  • 0

I have a div that is deliberately smaller than its content (I’m making a sliding toggle widget). I want the container to have rounded corners. In FireFox, it renders as intended, but Chrome and Safari both show the inner content in the region between where the rounded corners are and where square corners would be.
I can’t put rounded corners on the inner content as there is no solution that is right for all scenarios (toggle left, toggle right, toggle in motion).
Here’s what I have so far:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
        <title>DIV test</title>

        <style type="text/css">
            body {
                font-size               : 3em;
            }
            #frame {
                border                  : thin solid black;
                /* background: #a0a0ff; */
            }
            #portal {
                background              : none;
                margin                  : 20px;
                display                 : inline-block;

                -moz-border-radius      : 29px;
                -webkit-border-radius   : 29px;
                -khtml-border-radius    : 29px;
                border-radius           : 29px;
                border                  : thin solid black;

                width                   : 400px;
                overflow                : hidden;
                height                  : 4em;
                line-height             : 4em;
            }
            #inner {
                position                : relative;
                width                   : 900px;
                background              : #a0ffa0;
                z-index                 : -100;
                margin-left             : -150px;
            }
        </style>

    </head>
    <body>
        <div id="frame">
            <div id="portal">
                <div id="inner">Here are some partially visible words</div>
            </div>
        </div>
    </body>
</html>

Is this a rendering bug in WebKit browsers, or am I doing something wrong and getting lucky with FireFox?

  • 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-31T04:03:38+00:00Added an answer on May 31, 2026 at 4:03 am

    Not sure if it’s a bug, but it sucks.
    However, try this fix:
    http://jsfiddle.net/tpe36/1/

    Works in Chrome and Firefox for me.

    HTML:

    <div id="frame">
        <div id="portal">
            <div id="container">                
                <div id="inner">Here are some partially visible words</div>
            </div>
        </div>
    </div>
    

    CSS:

    #inner {
        position                : relative;
        width                   : 900px;
        z-index                 : 1;
        margin-left             : -150px;
    }
    #container {
        background              : #a0ffa0;
    }
    ​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div that I want to toggle between displaying or not when
I have a DIV that I want to touch the bottom of the screen
i have a div that i use as a container to fit in footer
I have a Div that is 400px in height with the ID content, I
I have a div that looks like this <div class=listItem jrFeatured> I want it
I have a container div that has the height of my body which is
I have a div that is 400px high and it has content that scrolls
I have div#myid that is resizeable with minHeight = 30px; I want to do
I have a div that i want to apply two backgrounds to it. Basically
I have a div that is scrolling vertically. I, however, really want it to

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.