The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] How can I set a border in alignment with other borders
I have a theme with following code: http://sudrap.org/paste/text/392549
When I add css to my html, the borders aren’t aligned correctly. My code is:
table.alt tr th.rightAlignBorderLeft { text-align: right; border-left: solid 1px #e5e5e5; }
I don’t want to set border-collapse to collapse, because changing my default theme code may mess up my pages. How can I fix this?
Fiddle: http://jsfiddle.net/ru1923mf/2
Try removing border-left: solid 1px #e5e5e5; and use border-right: solid 1px #e5e5e5; on the th elements instead
border-left: solid 1px #e5e5e5;
border-right: solid 1px #e5e5e5;
Thanks a lot.