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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:12:40+00:00 2026-05-21T23:12:40+00:00

I have 3 divs with backgrounds. IOS seams to add a white line between

  • 0

I have 3 divs with backgrounds. IOS seams to add a white line between them on all formats from iPhone to iPAD. Originally I thought this was a problem with tables but it applies to divs too.

#cbtop {
    height:10px;
    background:url(http://www.golfbrowser.com/images/structure/cbmain.png) center top repeat-y;
}
#cbbottom {
    height:10px;
    background:url(http://www.golfbrowser.com/images/structure/cbmain.png) center bottom repeat-y;
}
#content {
    min-height:10px;
    background:url(http://www.golfbrowser.com/images/structure/cbmains.png) center top repeat-y;
}

seen here on iOS only – http://www.golfbrowser.com/courses/wentworth-east/

Any ideas?

Marvellous

  • 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-21T23:12:41+00:00Added an answer on May 21, 2026 at 11:12 pm

    That white line is actually the two divs overlapping. This is a precision problem on iOS’s safari, and is pretty much unavoidable (imho). The problem is most prominent when zooming in, as this is when the lack of precision occurs.

    You MAY be able to “trick” the browser into working correctly by using a half-pixel top-margin on the bottom div… I have no way of testing this, however.

    In this instance, I would use css border radius to accomplish the same effect… although it will not display properly in all browsers, you may still find it an acceptable solution

    #cb
    {
        background: rgb(255,255,255); // fallback for browsers without alpha support
        background: rgba(255,255,255, 0.5);
    
        border-radius: 30px;
    }
    

    There are also webkit and mozilla versions of the border radius property… this will help with cross-platform compatability.

    See more on background alpha transparency here: http://robertnyman.com/2010/01/11/css-background-transparency-without-affecting-child-elements-through-rgba-and-filters/

    See JS Fiddle: http://jsfiddle.net/xixionia/4SYP4/

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

Sidebar

Related Questions

I have 2 divs, each has a background image and I want them to
I have two divs, both with 0.6 opacity. I need them to overlap but
I want to have 10 divs that when someone click on each of them
I have several divs on my page. Each of them has the title attribute
I have Divs show and hide (with an animation) using the following script (I
I have divs that I want to display at specific times throughout the day.
I have a list which have divs inside it.. Now when i use nested
Have three divs in a container that I want to float over a large
I have three divs : <div id=login /> <div id=content /> <div id=menu />
I have three DIVs, something like this: <div id=header> ... </div> <div id=content> <div

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.