[CS-FSLUG] html/css question - <table>

@ndrew andrew at dothedrew.net
Fri May 7 21:22:50 CDT 2004


> You actually don't need to touch <table>'s with CSS.
> You can setup <div>'s that have borders, etc and they
> can look exactly like a table.

To a point. The problem I found (unless I'm missing something obvious) was
that you couldn't make two div's the same height without strictly specifying
that height in the CSS styles.

--
@ndrew
andrew at dothedrew.net
http://www.dothedrew.net

"No man has a good enough memory
to be a successful liar."
  Abraham Lincoln
 

> -----Original Message-----
> From: Christiansource-bounces at ofb.biz 
> [mailto:Christiansource-bounces at ofb.biz] On Behalf Of Brian Derr
> Sent: Friday, May 07, 2004 6:04 PM
> To: christiansource at ofb.biz
> Subject: Re: [CS-FSLUG] html/css question - <table>
> 
> On Fri, May 07, 2004 at 02:55:14PM -0400, Frank Bax wrote:
> > <table border="1" width="80%" align="center" cellspacing="2" 
> > cellpadding="4">
> > 
> > I'm trying to learn css the hard way - by myself - with 
> help from this site:
> > 	http://www.blooberry.com/indexdot/css/index.html
> > 
> > cellpadding can now be controlled by row or by cell:
> > 	  tr { padding: 4px; }
> > 	  th { padding: 4px; }
> > 	  td { padding: 4px; }
> > 
> > A border around the entire table like border="1" can be done with 
> > table {
> > border-width: 1pt }, but the css code does not affect 
> spacing between 
> > rows/cells in table.  Also, I cannot seem to find css 
> coding for the 
> > other properties in above "table" tag.  Can anyone help?
> 
> You actually don't need to touch <table>'s with CSS.  You can 
> setup <div>'s that have borders, etc and they can look 
> exactly like a table.
> Check out http://www.w3.org/Style/CSS/learning (jump down to 
> the "CSS Online Resources").  You'll find tons of examples of 
> how to do just about anything you want with CSS.
> 
> Brian
> 
> --
> The just man walketh in his integrity:
> his children are blessed after him.  -- Proverbs 20:7
> 





More information about the Christiansource mailing list