This is a discussion on "mimic table rows" within the Web Page Design section. This forum, and the thread "mimic table rows are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
mimic table rows
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
mimic table rows
I'm from the old school way of making websites using tables. I'm trying to show an icon and then right underneath the icon show a title. Similar to how it is on your desktop. I'm pulling the data out of a database, so I have no idea how many items there will be.
Normally I would use tables for this, however, people are always telling me I should learn to use just css, so i'm trying. I was able to use a span element to simply show the icon and it worked great, but I can't figure out where to look to try and get the title to align nicely underneath. I'll show you my "table way".
Thank you
__________________
http://www.freemortgagecalculator.net Last edited by karinne; Apr 12th, 2007 at 16:47. Reason: I change th [html] to [code] since we're having problems with that tag. |
|
|
|
#2
|
|||
|
|||
|
Re: mimic table rows
Well ... the simplest way would be
HTML
|
|
#3
|
|||
|
|||
|
Re: mimic table rows
wouldn't it break after each div? Or is that what the float:left is eliminating?
__________________
http://www.freemortgagecalculator.net |
|
#4
|
|||
|
|||
|
Re: mimic table rows
You got it
|
|
#5
|
||||
|
||||
|
Re: mimic table rows
Just a note, if you want only three items per line, you can add an extra class to every third <div> so it will wrap without a container.
|
|
#6
|
|||
|
|||
|
Re: mimic table rows
That's a good tip. Had not thought of that!
|
![]() |
| Tags |
| css, tables |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Placing pictures in rows | casho | Website Planning | 9 | Nov 29th, 2007 17:46 |
| Columns and Rows | tlo5 | JavaScript Forum | 4 | Nov 20th, 2007 16:13 |
| mimic iframe | c010depunkk | Web Page Design | 7 | Aug 1st, 2007 06:30 |
| IE Fast rows insertion. | ronen | JavaScript Forum | 1 | Mar 21st, 2007 22:51 |
| Customizing table rows | AdRock | Web Page Design | 2 | Aug 28th, 2006 09:28 |