www.webdeveloper.com
Results 1 to 2 of 2

Thread: Want the middle TD to have a border

  1. #1
    Join Date
    May 2006
    Posts
    16

    Want the middle TD to have a border

    I am making a page with three tables.

    • Left Side Bar
      Middle Content Area
      Right Ads Bar


    HTML Code:
    <!-- Main -->
    <table class="main" cellpadding="2" cellspacing="2">
    <tr>
    <td class="sidebar">
    </td>
    <td class="content">
    <!-- Content -->
    This site
    <!-- Content Area -->
    </td>
    <td class="adsbar">
    </td>
    </tr>
    </table>
    I want the middle contents area to have a border. However, the following style sheet doesn't work.

    Code:
    table.main
    {
    	width: 100%
    }
    
    td.sidebar
    {
    	background-color: #909090;
    	border: 0px;
    	color: lightcyan;
    	width: 120
    }
    
    td.content
    {
    	background-color: #fffff;
    	border: 2px;
    	color: #00000;
    	width: 75%
    }
    
    td.adsbar
    {
    	background-color: #888800;
    	border: 0px;
    	color: #000000;
    	width: 120
    }
    What should be done?

  2. #2
    Join Date
    Nov 2002
    Posts
    4,473
    You need to specify a border-style and a border-color to make the border visible.
    Code:
    border: 2px inset black;

Thread Information

Users Browsing this Thread

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

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