Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Table Borders: BORDER, FRAME and RULES

For the next few pages we're going to use three <TABLE ...> attributes:

BORDER size of outside border
FRAME which outside borders are displayed
RULES which inside borders are displayed

These three attributes can get pretty confusing because they tend to change each other's defaults. For example, if you don't use BORDER then the default for RULES is NONE. However, if you do use BORDER (but only values greater than zero) or if you use any value of FRAME besides VOID then RULES defaults to ALL. Likewise, RULES changes FRAME's defaults.

To keep things simple it's usually a good idea to follow a simple rule: if you use either FRAME or RULES use them both and also use BORDER. That avoids confusion about what is defaulting to what. We'll follow that example in this guide. So, for example, to create a table with no inner borders we'll use all three attributes like this:

<TABLE BORDER=1 RULES=NONE FRAME=BOX>

which gives us this table

watermelon grapes
peaches bananas

 
 
  Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License Design by Interspire