html - Google Chrome - buggy curved borders? -
i have relatively positioned div within centred div of width 50%... mean outer 1 set width: 50% , margin-left/right: auto. have div class headercontainer , 1 class header. there image class headerimg within header div.
it seem that, when curved border of 30px set on header div , headerimg img tag, slight overlap of border appears on either side... dont know how describe it... basically, in google chrome, 30px curved border appears perfectly, (about 2 out of 3 or 3 out of 4 times) appears border, hits rightmost , leftmost points, extends few pixels. there slight slant @ tip of either end, other border straight. if possible upload image on here show - isnt cant without signing image hosting site...
basically want know if happens else... know tiny thing - sites pixel-perfect, not odd pixel out of place here , there - looks bad.
anyway source code follows (i have simplified 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 appreciated.
regards,
richard
ps see can uploading image later, if still problem.
you might talking this: http://tumble.sneak.co.nz/post/928998513/fixing-the-background-bleed
if not, possible show example?
Comments
Post a Comment