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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:30:40+00:00 2026-05-17T15:30:40+00:00

I have a relatively positioned div within a centred div of width 50%… I

  • 0

I have a relatively positioned div within a centred div of width 50%… I mean the outer one is set to width: 50% and margin-left/right: auto. I then have another div with class headerContainer and another one with class header. There is an image with class headerImg within the header div.

It would seem that, when a curved border of 30px is set on the header div and the headerImg img tag, a slight overlap of the border appears on either side… I really dont know how to describe it… Basically, in Google Chrome, the 30px curved border appears perfectly, but sometimes (about 2 out of 3 or 3 out of 4 times) it appears perfectly but the border, where it hits the rightmost and leftmost points, also extends by a few pixels. There is a slight slant at the very tip of either end, but other than that the extra border will be straight. If it were possible to upload image on here then I would show you – but it isnt so I cant without signing up to some image hosting site…

Basically what I want to know is if this happens for anyone else… I know it is only a tiny thing – but I like my sites to be pixel-perfect, not for the odd pixel to be out of place here and there – that just looks bad.

Anyway my source code is as follows (I have simplified it as much as possible…):

body {
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    margin: 0px;
    padding: 0px;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    /*background-color: #E7D2B8;*/
    background-color: #eeeeff;
    color: #863F2B;
}
.page-container {
    position: relative;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}
.headerContainer {
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    position: relative;
    clear: right;
}
div.header {
    border-top: 2px solid #2e699b;
    border-left: 2px solid #2e699b;
    border-right: 2px solid #2e699b;
    -moz-border-radius-topleft: 30px;
    -webkit-border-top-left-radius: 30px;
    border-top-left-radius: 30px;
    -moz-border-radius-topright: 30px;
    -webkit-border-top-right-radius: 30px;
    border-top-right-radius: 30px;
}
img.headerImg {
    width: 100%;
    -moz-border-radius-topleft: 30px;
    -webkit-border-top-left-radius: 30px;
    border-top-left-radius: 30px;
    -moz-border-radius-topright: 30px;
    -webkit-border-top-right-radius: 30px;
    border-top-right-radius: 30px;
}
form {
    position: relative;
    width: 100%;
    height: 100%;
}
<body>
    <form method="post"> 
        <div class="page-container"> 
            <div class="headerContainer"> 
                <div class="header"> 
                    <img class="headerImg" alt="Header image" src="/Images/header1.png" /> 
                </div> 
                <div class="clear"></div> 
            </div> 
        </div>
    </form>
</body>

Any help would be greatly appreciated.

Regards,

Richard

PS I will see what I can do about uploading an image later, if it is still a problem.

  • 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-17T15:30:40+00:00Added an answer on May 17, 2026 at 3:30 pm

    Well I have kind of solved the problem. The header now just has text in it and has no top border, nor does it have any curved corners. The problem is still there but I am evading it. I have used a background image instead of the header image.

    I will mark this as an answer – even though it does not actually resolve the issue. It has been reported on Google Chrome though.

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

Sidebar

Related Questions

I have float left and float right <div> nested within a light blue box
Is there a way to have a child DIV within a parent container DIV
I have a JavaScript menu bar that is positioned on my webpage, then when
I have a form which I load within a modal window in that from
I've got 3 divs lined up; the center div has many position:absolute images (which
I have a single line of text that looks like this: GIVE US A
I have my menu working the way I want with the exception that menu
I am creating a calendar using a HTML table. I have a problem where
Why does Firefox 4 absolutely position fieldset legends differently than other browsers? Test page:
I am trying to make a thermometer that can keep display the percentage of

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.