Solution (Clean Markup Solution)
Date of the Solution
Mon Aug 17 21:03:20 2009
Fixed Versions
All of the affected
Description
If you can "afford" it, simply set border-width
to more than 1px
for parts where it is 1px
. Alternatively, don't use dotted
style or set the same width everywhere. If none of those solutions are feasible, let's have a look at the markup solution:
- HTML Code:
<div>
<p>Lorem ...[plain text cut for brevity]... Curae;</p>
</div>
- CSS Code:
p {
border: 1px dotted #000;
border-left-width: 0;
}
div {
border-left: 4px dotted #000;
}
What I did here is added an extra wrapper ' element"><div>
. The left border on ' element"><p>
, that was formerly styled as 4px
width is now set to be of 0
width (the bug is not triggered this way). Then on the ' element"><div>
I've set border-left
to be 4px dotted #000
to create an illusion that the entire border around the box is on the same element.