| | |
Table with CSS
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
How do they make tables with only CSS without using HTML Tables? is it possible to make a table as shown on the screenshot below with only CSS and NO HTML? if yes how?
http://photobag.2plans.com/images/75427379.jpg
Thanx in advance
http://photobag.2plans.com/images/75427379.jpg
Thanx in advance
>> How do they make tables with only CSS without using HTML Tables?
Well, if you need a table, you need a table. But you can do typical table layout stuff with CSS pretty easily. Just make good use of divs.
>> is it possible to make a table as shown on the screenshot below with only CSS and NO HTML?
Absolutely! You can do it a bunch of ways. Probably the easiest would be something like this.
Then the CSS is a simple div with carefully crafted borders and a float for the "title" element. Then inside the div is just a bullet list with a cut left margin and link below it with a large left margin.
With tweaking you can make it more elegant, of course.
Well, if you need a table, you need a table. But you can do typical table layout stuff with CSS pretty easily. Just make good use of divs.
>> is it possible to make a table as shown on the screenshot below with only CSS and NO HTML?
Absolutely! You can do it a bunch of ways. Probably the easiest would be something like this.
HTML and CSS Syntax (Toggle Plain Text)
<div> <span class="box-title">Title Stuff</span> <div class="box"> <ul class="box-list"> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> <li>Item 5</li> </ul> <span class="box-link">Link>></span> </div> </div>
HTML and CSS Syntax (Toggle Plain Text)
.box { width:5em; border:solid #0000FF; border-top-width:1.5em; } .box-title { float:left; margin-left:.2em; margin-top:.3em; color:#FFFFFF; } .box-link { padding-top:-1em; margin-left:2em; padding-right:.2em; padding-bottom:.2em; } .box-list { list-style-type:circle; margin-left:-2em; margin-bottom:.5em; }
![]() |
Similar Threads
- Why do people wish for tableless with CSS? (HTML and CSS)
- Trying to use not tables, only CSS, but can I? (HTML and CSS)
- Eliminating visible table borders? (HTML and CSS)
- Stretching a table image with CSS (Site Layout and Usability)
- i have created these table can you please look at them and tell me if there are right (Visual Basic 4 / 5 / 6)
- iframes help (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: html template help
- Next Thread: Linking Help Needed!
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7





