Just collapse the table borders and remove the borders from table cells (td
elements).
table { border: 1px solid #CCC; border-collapse: collapse; } td { border: none; }
Without explicitly setting border-collapse
cross-browser removal of table cell borders is not guaranteed.
Related Posts:
- Setting table column width
- Setting table column width
- Add border-bottom to table row
- Set cellpadding and cellspacing in CSS?
- HTML list-style-type dash
- Make a div fill the height of the remaining screen space
- Padding a table row
- Table scroll with HTML and CSS
- Set cellpadding and cellspacing in CSS?
- Table fixed header and scrollable body
- Alternate table row color using CSS?
- CSS table td width – fixed, not flexible
- td widths, not working?
- How to make a monopoly board using css grid?
- Redirect from an HTML page
- Half circle with CSS (border, outline only)
- How to horizontally center an element
- Unblur content inside blurring background div
- How to set a border for an HTML div tag
- Why does z-index not work?
- How to center an iframe horizontally?
- Creating a nav bar with flexbox
- Is
element block level or inline level?
- How to line-break from css, without using
?- How to put img inline with text
- How to center a “position: absolute” element
- How do I make an image smaller with CSS?
- Two divs side by side – Fluid display
- What is sr-only in Bootstrap 3?
- FontAwesome icons are not showing, Why?
- Remove border from IFrame
- How to change text transparency in HTML/CSS?
- CSS horizontal scroll
- Bootstrap 4 images thumbnail classes
- How do I set a background-color for the width of text, not the width of the entire element, using CSS?
- text-overflow: ellipsis not working
- How to reference nested classes with css?
- Placing border inside of div and not on its edge
- Why is there an unexplainable gap between these inline-block div elements?
- How to apply CSS to iframe?
- Draw a line in a div
- CSS centred header image
- How to move text up using CSS when nothing is working
- How to style input and submit button with CSS?
- How to align content of a div to the bottom
- How to outline text in HTML / CSS
- How to draw a dotted line with css?
- Bring element to front using CSS
- Brackets – Live Preview not working
- How to apply style classes to td elements?
- HTML iframe – disable scroll
- How to make HTML table cell editable?
- CSS set li indent
- how to overlap two div in css?
- Why does this CSS margin-top style not work?
- How to center content in a Bootstrap column?
- Freeze the top row for an html table only (Fixed Table Header Scrolling)
- Bootstrap throws Uncaught Error: Bootstrap’s JavaScript requires jQuery
- How do I install a custom font on an HTML site
- How can I make my footer center to the bottom of the page?
- How to align an input tag to the center without specifying the width?
- How can I embed video for discord directly from website?
- Why would max-width not work on this?
- Basic CSS – how to overlay a DIV with semi-transparent DIV on top
- difference between width auto and width 100 percent
- Making text background transparent but not text itself
- How to show text on image when hovering?
- Square brackets in CSS
- How do I disable form fields using CSS?
- Fit background image to div
- body background color not showing?
- How to make my website fit any screen size?
- Display:inline not working
- CSS content property: is it possible to insert HTML instead of Text?
- How to increase height of textarea using bootstrap rows and columns
- Indent List in HTML and CSS
- Bootstrap 3 Glyphicons CDN
- Absolute position is not working
- Position absolute but relative to parent
- How do you specify table padding in CSS? ( table, not cell padding )
- Two Divs next to each other, that then stack with responsive change
- Can an HTML element have multiple ids?
- How can I change the Bootstrap default font family using font from Google?
- SVG drop shadow using css3
- Force table column widths to always be fixed regardless of contents
- Colspan all columns
- Change the color of glyphicons to blue in some- but not at all places using Bootstrap 2
- Using Numbers With Font Awesome
- Is it possible to use css to shrink text to automatically fit the size of the div
- Horizontal list items
- How to make Bootstrap Panel body with fixed height
- word-wrap break-word does not work in this example
- Change navbar text color Bootstrap
- Create a slanted edge to a div [duplicate]
- How can I align text directly beneath an image?
- how do I get the bullet points of a
- to center with the text?
- jQuery find element by data attribute value
- CSS: Can a div “float:middle” rather than “float:left;” with margin-left?
- WordPress footer menu floating with height of footer
- Using custom HTML tags to WordPress [closed]