Pure CSS table using UL and LI

this is the nice way for achieving the 100% tableless design.
here, by the use of UL and LI, we can make the Pure CSS Table.

<html>
<head>
<title>pure css table</title>
<style>
.table{background:None;}
.table ul{float:left;margin:0px;padding:0px;}
.table ul li{list-style:none;padding:4px 9px;}
.table ul li.title{font-weight:bold;background:#333;color:#fff;}
.table ul li.even{background:#fff;}
.table ul li.odd{background:#FFFFE6;}
</style>
</head>
<body>
<div class="table">
<ul>
<li class="titile">country</li>
<li class="odd">India</li>
<li class="even">US</li>
<li class="odd">England</li>
<li class="even">Japan</li>
</ul>
<ul>
<li class="titile">city</li>
<li class="odd">Mumbai</li>
<li class="evev">Washington</li>
<li class="odd">London</li>
<li class="even">Tokyo</li>
</ul>
</div>
</body>
</html>

Hope this post will be helpful.
Please share / recommend if you like.

Thanks,
Nikhil Ughade
UI Designer
Mumbai [INDIA]

Advertisements

About Nikhil
Name : Nikhil Ughade UI Developer, Accidentally in design field, no turn back since then. Location : Pune (MH, INDIA) From : Amravati (MH,INDIA) College : VYWS's College Of Engg. Badnera, Amravati Hobby : Social Networking, Designing Web Sites, Photography, Reading Books. In Free time works for NGO.

2 Responses to Pure CSS table using UL and LI

  1. Stephen says:

    this is kind of pointless considering that tables are meant for tabular data

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: