Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 6th, 2006, 11:32 AM
Registered User
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default table borders

I wonder if anyone can help.

Say you have a table containing numerous columns and rows, how can you make it so that borders only appear on the right and left outer edge of the table, not the top or bottom or the cells contained within the table.

 
Old June 6th, 2006, 12:57 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You can use the CSS border property for that, like this:

<table style="border-left: 2px solid red; border-right: 3px solid green;">
  ..
</table>

This adds a 2 pixel red border to the left of the table, and a 3 px green border to the right. Similarly, you can also set border-top and border-bottom, and obviously, you can change stuff like color, size etc.

Does this help?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004





Similar Threads
Thread Thread Starter Forum Replies Last Post
'Table' does not contain a definition for 'BorderS [email protected] C# 2005 1 September 13th, 2008 03:08 AM
How to: Have no borders and stuff! Apocolypse2005 Beginning VB 6 7 May 8th, 2007 11:56 AM
format table borders through CSS amc Dreamweaver (all versions) 7 August 28th, 2004 10:19 AM
XHTML Strict Frame Borders Alexpizzoferro HTML Code Clinic 4 September 21st, 2003 11:54 AM
Borders Round Image Links Alexpizzoferro HTML Code Clinic 1 July 1st, 2003 01:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.