CSS Tables
The look of an HTML table can be greatly improved with CSS:
Company | Contact | Country |
---|---|---|
Alfreds Futterkiste | Maria Anders | Germany |
Berglunds snabbköp | Christina Berglund | Sweden |
Centro comercial Moctezuma | Francisco Chang | Mexico |
Ernst Handel | Roland Mendel | Austria |
Island Trading | Helen Bennett | UK |
Königlich Essen | Philip Cramer | Germany |
Laughing Bacchus Winecellars | Yoshi Tannamuri | Canada |
Magazzini Alimentari Riuniti | Giovanni Rovelli | Italy |
Table Borders
To specify table borders in CSS, use the border
property.
The example below specifies a solid border for <table>, <th>, and <td> elements:
Firstname | Lastname |
---|---|
Peter | Griffin |
Lois | Griffin |
Example
table, th, td {
border: 1px solid;
}
Full-Width Table
The table above might seem small in some cases. If you need a table that should span the entire screen (full-width), add width: 100%
to the <table> element:
Firstname | Lastname |
---|---|
Peter | Griffin |
Lois | Griffin |
Example
table {
width: 100%;
}
Double Borders
Notice that the table in the examples above have double borders. This is because both the table and the <th> and <td> elements have separate borders.
To remove double borders, take a look at the example below.
Collapse Table Borders
The border-collapse
property sets whether the table borders should be collapsed into a single border:
Firstname | Lastname |
---|---|
Peter | Griffin |
Lois | Griffin |
Example
table {
border-collapse: collapse;
}
If you only want a border around the table, only specify the border
property for <table>:
Firstname | Lastname |
---|---|
Peter | Griffin |
Lois | Griffin |
Example
table {
border: 1px solid;
}
46 Responses
levofloxacin 500mg generic buy levaquin pill
avodart online flomax 0.2mg oral zofran generic
aldactone online buy finasteride 1mg price diflucan 100mg uk
ampicillin usa erythromycin buy online erythromycin generic
order sildenafil 100mg pills bimatoprost order online brand robaxin 500mg
order sildenafil online order estrace 2mg without prescription order estrace 2mg pills
generic lamotrigine 50mg buy tretinoin gel for sale buy retin online cheap
tadalis online buy order diclofenac diclofenac pill
purchase isotretinoin online cheap order azithromycin 250mg generic azithromycin 500mg usa
buy indomethacin generic buy trimox 250mg online amoxicillin 500mg without prescription
buy tadalafil 10mg for sale cialis 5mg tablets order sildenafil 50mg pills
purchase anastrozole pills Buy viagra internet viagra 50mg pills
tadalafil 40mg gГ©nГ©rique acheter du cialis vrai sildenafil 25mg prix
buy deltasone 5mg without prescription sildenafil for sale sildenafil uk
original cialis 10mg rezeptfrei sicher kaufen tadalafil 5mg fГјr frauen sildenafil 100mg bestellen
buy isotretinoin pills buy amoxil pills buy ivermectin for humans australia
buy doxycycline online order lasix 100mg order furosemide 100mg pills
ramipril for sale irbesartan 300mg pill order astelin 10ml without prescription
catapres 0.1mg without prescription tiotropium bromide 9mcg drug buy spiriva 9 mcg without prescription
buspirone us buspirone 5mg tablet oxybutynin over the counter
purchase terazosin without prescription order pioglitazone online cheap sulfasalazine pills
buy alendronate online alendronate 35mg us famotidine 20mg oral
buy benicar 20mg pill buy depakote sale diamox us
prograf 1mg cheap purchase ropinirole generic purchase ursodiol pills
generic isosorbide 40mg digoxin 250 mg cost telmisartan ca
zyban 150 mg sale zyban 150 mg pill quetiapine price
molnupiravir 200mg brand order cefdinir 300mg pill prevacid without prescription
order sertraline 100mg online order escitalopram pill buy sildenafil 50mg without prescription
salbutamol 100mcg us protonix online buy sildenafil order online
buy tadalafil 40mg sale Free cialis viagra 50mg pill
cialis 20mg sale order pyridium 200 mg online cheap order symmetrel 100mg pill
order naltrexone generic purchase femara for sale aripiprazole 30mg brand
avlosulfon buy online allegra 120mg brand aceon 4mg generic
medroxyprogesterone online hydrochlorothiazide 25mg uk order cyproheptadine 4 mg pill
cost provigil northwest pharmacy ivermectin cream 1
fluvoxamine 100mg canada fluvoxamine brand order glucotrol online
order isotretinoin 40mg generic purchase amoxil pills order prednisone 10mg online
oral piracetam piracetam 800mg drug cheap sildenafil tablets
purchase zithromax for sale order prednisolone 10mg generic gabapentin 100mg canada
cialis 5mg without prescription buy cialis 5mg sale order generic viagra 50mg
furosemide online buy buy doxycycline 100mg generic plaquenil oral
online cialis order anafranil sale buy generic anafranil
sites online dating free dating nearby completely freedating local singles near me free
DonaldKat
https://xn—24-7-4vevhge6enkbeai0a1a5dye2c.xn--p1ai
https://xn—-24-7-2nfbpd5dza0bncg0a6al.xn--p1ai
https://xn—24-7-3vebi7a0c8ajhwdyl9mh.xn--p1ai/
https://xn—-24-7-3nfzigf2folbfai2a2a8d2e3c.xn--p1ai
https://xn—24-7-3vebnd9cxa7amcgy4al.xn--p1ai
https://xn--24-7–3vefjh5cxa7amcku4ap.xn--p1ai
https://xn—24-7-3vebahb3baz2czbsdzdf9b3a4x.xn--p1ai/
We establish that the low dark background of PA Cre2 buy cialis online usa The literature search was undertaken independently by 2 authors and any inconsistencies were settled by group discussion until a consensus was reached
http://edmeds.pro/# best ed medication