Difference of pixel in border I can't figure where it is coming from
I can't reproduce the bug, but I may have a solution : you're currently using borders that you don't need. Let me explain : there is a border right on Séjours and a border left on Croisières. So 2 borders, and you're currently hiding one of them.
Using font-size in em
, makes your trick (margin-left / margin-right : -2px) unconsistent, because em can't really be converted into px (well it can, but it will depends on the browser calculation so you may need more than 2px to make a border go over another, maybe 1px maybe 1.5487px).
So, my solution : removes all the unecessary borders :
a {
border-left: 1px solid #fff;
}
a:last-child {
border-right: 1px solid #fff;
}
No more borders overlapping, more reliable solution.
Need Thin Table Borders in PDF Generated by cfDocument
Tables are so 90's but this does seem to work for cfdocument pdf (inconsistent on web browser display though):
.tbl {background-color:#000;}
.tbl td,th,caption{background-color:#fff}
...
<table cellspacing="1" class="tbl">
...
</table>
(border-spacing in style setting doesn't work - you have to put the attr in the table tag)
Different thicknesses for the border-collapse in a table on firefox
I solved the problem just changing the CSS code:
table.bordasimples {
border-spacing: 0px;
border:1px solid #D2DDD4;
}
table.bordasimples tr td, table.bordasimples tr th
{border:1px solid #D2DDD4;}
I replaced the border-collapse for border-spacing and changed the color of borders, now my table is the way I wanted, and with a better layout.
Thanks everyone!
Preventing double borders in CSS
#divNumberOne { border-right: 0; }
Related Topics
Choosing Efficient Selectors Based on Computational Complexity
Is It Posible to Make an Input Checkbox a Bootstrap Glyphicon
How to Get CSS Variables Working in Chrome 34
How to Dynamically Load a CSS File into a Flex Application
Variable Sized Column with Ellipsis in a Table
Iterate Over Chunks of an Array Using Ng-Repeat
Adding an Arrow on Both Sides of a Div Using CSS
Webkit-Transform Alternative for Firefox
Is There a Specific Order for CSS Properties
Positioning Context on Table-Cell Element in Firefox
CSS Multiple Backgrounds Not Working on IE8
React: How to Make an Input Only as Wide as the Amount of Text Provided
Css3 Image Crossfade (No JavaScript)
Can You Use Rgba Colours in Gradients Produced with Internet Explorer's Filter Property