www.webdeveloper.com
Results 1 to 3 of 3

Thread: tables... or list items?

Hybrid View

  1. #1
    Join Date
    Nov 2010
    Posts
    6

    tables... or list items?

    HTML Code:
    <table cellpadding="5">
    <tr class="blue">
    	<td width="17%">Model</td>
        <td width="43%">Processor</td>
        <td width="15%">Hard Disk</td>
        <td width="10%">Memory</td>
        <td width="10%">Price</td>
    </tr>
    <tr class="white">
    	<td class="model">White 13"</td>
        <td class="other">2.26 GHz Intel Core 2 Duo</td>
        <td class="other">250GB</td>
        <td class="other">2GB</td>
        <td class="price">$899</td>
    </tr>
    <tr class="grey">
    	<td class="model">White 13"</td>
        <td class="other">2.26 GHz Intel Core 2 Duo</td>
        <td class="other">250GB</td>
        <td class="other">2GB</td>
        <td class="price">$899</td>
    </tr>
    </table>
    here's my code. here's where i'm working on it:
    http://www.book.uiowa.edu/ePOS/this_...tml&design=335

    how can i get ride of those ugly white spaces between each column and row? can this be better accomplished using list items, and how?

  2. #2
    Join Date
    Nov 2010
    Location
    Los Angeles, CA
    Posts
    234
    Usually I'm against tables for almost everything but this is a proper time to use them. You are showing a table of data so that's okay. To get rid of those ugly white space your table needs the following attribute: cellspacing="0"

  3. #3
    Join Date
    Nov 2010
    Posts
    6
    thanks! i don't know why i didn't think of that haha

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles