Created
December 27, 2015 09:56
-
-
Save iftee/9cdb93ce555275f937e4 to your computer and use it in GitHub Desktop.
A quick CSS for basic responsive HTML table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CSS Snippet For Responsive Table - Basic */ | |
* { | |
box-sizing: border-box; | |
} | |
table { | |
border-spacing: 0px; | |
border-collapse: collapse; | |
width: 100%; | |
max-width: 100%; | |
margin-bottom: 15px; | |
background-color: transparent; /* Change the background-color of table here */ | |
text-align: left; /* Change the text-alignment of table here */ | |
} | |
th { | |
font-weight: bold; | |
border: 1px solid #cccccc; /* Change the border-color of heading here */ | |
padding: 8px; | |
} | |
td { | |
border: 1px solid #cccccc; /* Change the border-color of cells here */ | |
padding: 8px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment