CSS tips with html tables

Presently doing an html mockup, I am using to some extent html tables (which I should not as a presentation tool, but for a mockup, and in particular for forms with large amounts of fields, I still find it way faster than tableless html).

I found out a couple of tips to replace html attributes with proper css:

To prevent word wrapping with css:

table td{
white-space: nowrap;
}

to replace the html attribute “cell-spacing” in css:

table {
border-spacing: 0px;
}

To merge borders of neighbour cells:

table {
border-collapse:collapse;
}

3 Responses to “CSS tips with html tables”

  1. Ivanov says:

    Видел уже где то…

  2. DOUGLAS says:


    CheapTabletsOnline.com. Canadian Health&Care.No prescription online pharmacy.Best quality drugs.Special Internet Prices. Low price pills. Order drugs online

    Buy:Lumigan.Nexium.Actos.Valtrex.100% Pure Okinawan Coral Calcium.Zovirax.Prednisolone.Mega Hoodia.Prevacid.Arimidex.Accutane.Petcam (Metacam) Oral Suspension.Zyban.Human Growth Hormone.Synthroid.Retin-A….

Leave a Reply