简体   繁体   中英

Border in CSS display-table

I want to add a border before my last row and can't find a way without breaking my design. Every input or suggestions are appreciated.

Fiddle

see jsfiddle

Move the <div class="tt-entry-hr"></div> outside of the span.

Updated Fiddle

Add this to your CSS: And delete that -hr div.

.tt-container > .tt-entry-row:last-child > .tt-entry {
  border-top:thin solid white;
}

Adjust to suit.

Updated fiddle

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM