Asik-asik ngajarin yang belajar php, ingin menampilkan data dari database ke dalam table, tiba-tiba  melihat ko satu kelas yang belajar php belum ada yang merubah tampilan tablenya menjadi lebih menarik atau enak di lihat. Masih standart semua, tidak tahan melihat tampilan yang gitu-gitu saja 😀 akhirnya memberi contoh kepada temen yang lain. Dengan sedikit berselancar kepada paman Google akhirnya dapat juga css table layout yang pas dan lumayan dapat merubah tampilan table menjadi tidak standart lagi. 😀

Berbagi share dengan yang lainnya dan semoga dapat bermanfaat untuk membuat tampilan table menjadi lebih menarik dan bagus.

Contoh HTML buat table-nya
Ini codenya membuat table:

<table id="mytable" cellspacing="0" summary="The technical
specifications of the Apple PowerMac G5 series">
<caption>Table 1: Power Mac G5 tech specs </caption>
<tr>
  <th scope="col" abbr="Configurations">Configurations</th>
  <th scope="col" abbr="Dual 1.8GHz">Dual 1.8GHz</th>
  <th scope="col" abbr="Dual 2GHz">Dual 2GHz</th>
  <th scope="col" abbr="Dual 2.5GHz">Dual 2GHz</th>
</tr>
<tr>
  <th scope="row">Model</th>
  <td>M9454LL/A</td>
  <td>M9455LL/A</td>
  <td>M9457LL/A</td>
</tr>
</table>

Ini code CSS-nya tinggal copy aja kalau malas nulisnya :

body {
	font: normal 11px auto "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	color: #4f6b72;
	background: #E6EAE9;
}

a {
	color: #c75f3e;
}

#mytable {
	width: 700px;
	padding: 0;
	margin: 0;
}

caption {
	padding: 0 0 5px 0;
	width: 700px;
	font: italic 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	text-align: right;
}

th {
	font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	color: #4f6b72;
	border-right: 1px solid #C1DAD7;
	border-bottom: 1px solid #C1DAD7;
	border-top: 1px solid #C1DAD7;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-align: left;
	padding: 6px 6px 6px 12px;
	background: #CAE8EA url(images/bg_header.jpg) no-repeat;
}

th.nobg {
	border-top: 0;
	border-left: 0;
	border-right: 1px solid #C1DAD7;
	background: none;
}

td {
	border-right: 1px solid #C1DAD7;
	border-bottom: 1px solid #C1DAD7;
	background: #fff;
	padding: 6px 6px 6px 12px;
	color: #4f6b72;
}

td.alt {
	background: #F5FAFA;
	color: #797268;
}

th.spec {
	border-left: 1px solid #C1DAD7;
	border-top: 0;
	background: #fff url(images/bullet1.gif) no-repeat;
	font: bold 10px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
}

th.specalt {
	border-left: 1px solid #C1DAD7;
	border-top: 0;
	background: #f5fafa url(images/bullet2.gif) no-repeat;
	font: bold 10px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	color: #797268;
}

Semoga bermanfaat. Download 

CSS Table Layouts

You May Also Like

31 thoughts on “CSS Table Layouts

  1. Yet another thing to mention is that an online business administration training course is designed for students to be able to smoothly proceed to bachelors degree education. The Ninety credit certification meets the other bachelor college degree requirements so when you earn your own associate of arts in BA online, you’ll have access to the most recent technologies in such a field. Several reasons why students need to get their associate degree in business is because they may be interested in this area and want to receive the general knowledge necessary in advance of jumping right bachelor college diploma program. Many thanks for the tips you provide in the blog.

  2. Heya i抦 for the first time here. I came across this board and I find It really useful & it helped me out a lot. I hope to give something back and help others like you aided me.

  3. I would like to voice my gratitude for your kind-heartedness in support of men and women that actually need guidance on the theme. Your very own commitment to passing the solution all-around appears to be really practical and have all the time enabled individuals just like me to realize their targets. This warm and friendly guideline implies a whole lot a person like me and additionally to my office colleagues. Best wishes; from everyone of us.

  4. I simply wanted to make a remark in order to appreciate you for these fabulous facts you are placing at this website. My incredibly long internet lookup has at the end of the day been rewarded with useful know-how to exchange with my pals. I ‘d say that many of us readers are definitely lucky to be in a notable site with so many marvellous people with useful strategies. I feel quite grateful to have used your webpage and look forward to many more entertaining moments reading here. Thanks once again for a lot of things.

  5. I am also writing to let you be aware of what a wonderful encounter our princess developed going through your site. She realized too many issues, not to mention what it is like to have an excellent coaching mindset to let the others really easily grasp specified hard to do subject matter. You actually exceeded my expected results. Many thanks for distributing the interesting, trusted, revealing not to mention easy guidance on your topic to Jane.

  6. I am just writing to let you know of the superb experience my wife’s daughter found checking the blog. She came to find many things, with the inclusion of what it is like to possess a very effective teaching heart to make the others just fully understand a variety of multifaceted issues. You truly surpassed readers’ expected results. Many thanks for churning out the important, healthy, revealing and cool thoughts on this topic to Kate.

  7. I intended to post you one bit of remark to be able to say thanks a lot as before on the pleasant principles you have contributed at this time. This is remarkably generous of people like you to grant unreservedly exactly what numerous people could possibly have marketed as an ebook to help make some dough for themselves, especially considering the fact that you might have done it in the event you considered necessary. Those inspiring ideas as well served to become a great way to recognize that other individuals have similar eagerness similar to my own to find out more and more in respect of this condition. I believe there are many more pleasant sessions up front for individuals who take a look at your blog.

  8. I have to convey my passion for your generosity supporting individuals that really want help with that idea. Your special dedication to getting the solution throughout turned out to be astonishingly advantageous and has specifically empowered guys and women much like me to arrive at their desired goals. The informative advice denotes so much to me and especially to my colleagues. Thanks a ton; from each one of us.

  9. Oh my goodness! an incredible article dude. Thanks However I am experiencing problem with ur rss . Don抰 know why Unable to subscribe to it. Is there anybody getting equivalent rss downside? Anybody who knows kindly respond. Thnkx

  10. I’m also commenting to let you know what a wonderful discovery our girl experienced browsing your webblog. She mastered many things, not to mention what it’s like to possess an incredible helping nature to get certain people quite simply master selected very confusing subject matter. You undoubtedly exceeded her expected results. Thanks for coming up with those insightful, trustworthy, revealing and even unique guidance on that topic to Jane.

  11. I want to voice my love for your generosity giving support to all those that should have guidance on this one area of interest. Your real commitment to getting the solution all through was really valuable and has regularly allowed employees much like me to attain their targets. Your important tutorial implies this much to me and much more to my colleagues. Many thanks; from all of us.

  12. I together with my buddies were checking out the nice techniques on the blog then the sudden developed a terrible suspicion I never thanked the blog owner for those tips. All the people are already totally joyful to read them and now have pretty much been tapping into them. Thank you for actually being simply kind and then for going for some helpful ideas most people are really wanting to be aware of. My honest apologies for not expressing gratitude to sooner.

  13. I precisely desired to thank you so much yet again. I do not know what I might have used in the absence of the opinions provided by you about my subject. It had become the troublesome situation for me, but understanding a skilled form you treated the issue took me to cry for gladness. I’m just thankful for this help as well as believe you are aware of a great job you happen to be undertaking teaching others by way of your webblog. Probably you’ve never encountered any of us.

  14. Thanks so much for providing individuals with an extremely terrific possiblity to check tips from this site. It can be so great and as well , stuffed with a good time for me and my office acquaintances to visit your website no less than thrice a week to read the latest tips you have. And of course, I am just always impressed with all the breathtaking creative ideas you serve. Selected two facts in this posting are without a doubt the finest we have ever had.

  15. Needed to post you a tiny observation in order to say thanks a lot the moment again for these awesome strategies you’ve shown at this time. It is simply particularly open-handed with people like you to present easily what exactly a lot of folks would have sold as an e-book to generate some dough on their own, and in particular considering the fact that you might have done it in case you considered necessary. The advice additionally served like a fantastic way to be sure that someone else have the same eagerness just like mine to know whole lot more concerning this issue. I believe there are several more pleasant opportunities up front for folks who see your blog.

  16. A powerful share, I simply given this onto a colleague who was doing a bit evaluation on this. And he in actual fact bought me breakfast because I discovered it for him.. smile. So let me reword that: Thnx for the deal with! However yeah Thnkx for spending the time to debate this, I really feel strongly about it and love reading extra on this topic. If potential, as you grow to be expertise, would you thoughts updating your blog with more particulars? It’s highly helpful for me. Massive thumb up for this blog put up!

  17. I have to show some appreciation to you for rescuing me from such a setting. As a result of exploring through the world wide web and coming across things which are not beneficial, I assumed my entire life was gone. Existing without the answers to the issues you’ve resolved by way of your entire write-up is a serious case, and the ones that could have in a wrong way affected my entire career if I had not discovered your web page. Your own understanding and kindness in maneuvering all things was priceless. I’m not sure what I would’ve done if I had not come across such a step like this. I’m able to at this time look ahead to my future. Thanks a lot so much for your professional and result oriented help. I will not think twice to recommend the website to anybody who needs and wants care on this area.

  18. Thank you so much for giving everyone remarkably terrific opportunity to read from this web site. It’s usually so enjoyable and also jam-packed with a lot of fun for me and my office friends to search your web site at least three times in a week to read through the latest guides you have. And definitely, I’m always astounded with all the extraordinary knowledge you give. Selected 4 tips in this article are rather the most effective I’ve ever had.

  19. Thank you for all your work on this website. Kate really likes participating in research and it’s easy to understand why. My spouse and i hear all of the powerful method you produce great secrets by means of this blog and in addition foster participation from other people about this content then our girl is learning a whole lot. Have fun with the rest of the new year. You’re the one performing a pretty cool job.

  20. My spouse and i were really delighted Albert managed to finish off his investigation from your precious recommendations he had in your blog. It is now and again perplexing just to choose to be giving for free guidance that the rest have been trying to sell. And we also fully understand we’ve got the blog owner to thank because of that. The type of explanations you have made, the easy website menu, the relationships you will make it possible to engender – it’s most powerful, and it’s leading our son in addition to us imagine that this concept is enjoyable, which is certainly wonderfully mandatory. Thank you for all the pieces!

  21. Thank you a lot for giving everyone remarkably brilliant chance to read articles and blog posts from this blog. It is usually very kind plus jam-packed with a good time for me personally and my office mates to search your blog no less than three times a week to read the new stuff you will have. And definitely, I am certainly happy considering the surprising methods served by you. Selected two ideas in this posting are in reality the most suitable we have ever had.

  22. I simply wanted to compose a small note to be able to express gratitude to you for all the magnificent steps you are writing at this site. My time consuming internet look up has at the end been paid with really good ideas to exchange with my close friends. I would declare that most of us site visitors actually are really blessed to live in a decent community with very many wonderful people with insightful principles. I feel quite lucky to have come across the web site and look forward to many more entertaining minutes reading here. Thanks once more for everything.

  23. I would like to convey my love for your kind-heartedness in support of men who really want assistance with that study. Your very own dedication to passing the message throughout turned out to be particularly useful and has frequently permitted guys and women much like me to reach their aims. Your own informative key points entails a great deal to me and still more to my mates. With thanks; from all of us.

  24. I intended to post you one bit of remark to finally say thanks the moment again for all the pleasing views you’ve provided above. This is simply unbelievably open-handed with you to provide extensively what some people might have made available for an ebook to make some profit for their own end, precisely given that you could have tried it if you considered necessary. The techniques in addition served like the great way to comprehend the rest have the identical dreams just like my personal own to know the truth a little more when it comes to this issue. I’m sure there are some more pleasant times in the future for those who view your site.

  25. Thanks for your whole efforts on this website. My daughter really loves working on research and it’s simple to grasp why. I know all concerning the compelling way you convey vital tips on your web blog and therefore boost response from some other people on the content plus our princess is learning a lot. Enjoy the rest of the new year. You have been performing a fabulous job.

  26. Thank you for your whole efforts on this blog. Gloria really likes setting aside time for investigations and it is simple to grasp why. Almost all notice all regarding the compelling mode you provide efficient items through the website and as well as invigorate response from people on this issue while our child is now starting to learn a lot of things. Take advantage of the rest of the year. You have been doing a powerful job.

  27. I not to mention my pals have been analyzing the nice hints on your site and at once came up with a horrible suspicion I had not thanked the web blog owner for those secrets. Most of the ladies ended up absolutely joyful to learn them and have definitely been having fun with those things. I appreciate you for truly being so considerate and then for getting some extraordinary subject matter most people are really desirous to learn about. My personal honest apologies for not saying thanks to earlier.

  28. I simply had to thank you so much yet again. I am not sure the things I might have sorted out in the absence of those tips revealed by you on such problem. It has been a scary condition in my view, nevertheless noticing the professional way you solved it made me to leap for delight. Now i am thankful for this assistance as well as hope you know what a great job you happen to be putting in instructing the others with the aid of your web site. I am sure you haven’t got to know any of us.

  29. I definitely wanted to send a brief message to be able to appreciate you for the marvelous tactics you are giving on this site. My extended internet search has at the end of the day been recognized with high-quality details to write about with my partners. I would tell you that most of us website visitors are unquestionably endowed to be in a great place with very many awesome individuals with insightful advice. I feel extremely lucky to have used your web page and look forward to plenty of more enjoyable moments reading here. Thank you again for everything.

  30. I intended to draft you this very small note to be able to thank you so much over again just for the remarkable guidelines you have contributed here. It’s simply surprisingly open-handed with people like you to deliver publicly what many people could possibly have offered as an ebook to help make some profit on their own, and in particular considering that you could possibly have done it in case you considered necessary. Those points in addition acted as the fantastic way to be sure that other individuals have the same dream similar to my very own to find out lots more pertaining to this problem. I’m certain there are many more fun opportunities up front for folks who go through your blog.

Leave a Reply to Free Stuff Cancel reply

Your email address will not be published.