Top "Css-tables" questions

Use this tag instead of just [css] for questions about styling HTML <table> elements with CSS, or about using the CSS display:table property declaration to define an element's layout to mimic that of an HTML <table>.

CSS Cell Margin

In my HTML document, I have a table with two columns and multiple rows. How can I increase the space …

html css cell margin css-tables
What replaces cellpadding, cellspacing, valign, and align in HTML5 tables?

In Visual Studio, I'm seeing these warnings: Validation (HTML 5): Attribute 'cellpadding' is not a valid attribute of element 'table'. Validation (…

html css visual-studio css-tables
Border around specific rows in a table?

I'm trying to design some HTML/CSS that can put a border around specific rows in a table. Yes, I …

html css border css-tables
CSS way to horizontally align table

I want to show a table of fixed width at the center of browser window. Now I use <table …

html css alignment css-tables
How to apply CSS page-break to print a table with lots of rows?

I have a dynamic table in my web page that sometimes contains lots of rows. I know there are page-break-before …

html css printing css-tables page-break
How to specify table's height such that a vertical scroll bar appears?

I have a table with many rows on my page. I would like to set table's height, say for 500px, …

css css-tables
What's the best way to center your HTML email content in the browser window (or email client preview pane)?

I normally use CSS rules for margin:0 auto along with a 960 container for my standard browser based content, but I'm …

html-email css-tables
Controlling Spacing Between Table Cells

I'm trying to create a table where each cell has a background color with white space between them. But I …

html css css-tables
Repeat table headers in print mode

Is it possible in CSS using a property inside an @page to say that table headers (th) should be repeated …

css css-tables
How do I keep CSS floats in one line?

I want to have two items on the same line using float: left for the item on the left. I …

css css-float css-tables stretching