CSS in FP - border value of 0

  • Thread starter Thread starter Cowtoon
  • Start date Start date
C

Cowtoon

I'm trying to get CSS to work in FP (2003). I'm still working with tables.
How do I get a value of the borders to be none or 0. All else that I've
done (minimal) validates, but my borders are failing. How do I end up with
no borders ... "0" and "non" doesn't work. All help that I seek, shows how
to show a value ... but I don't want borders.

Can someone help. Thanks.
 
table, td, th {border: none;}
table {border-collapse: collapse;}

The above should go into an external style sheet, or style block in the
<head> of the page.
--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
 
I'll add to the external style sheet. I'm still figuring out how I'll point
to it ... all part of the learning curve.
CSS might be the death of me ... but I'm prepared to die ... learning it!
LOL
Thank you.
 
Cowtoon said:
I'll add to the external style sheet. I'm still figuring out how I'll
point to it ... all part of the learning curve.

In the <head> section ,add

<link rel="stylesheet" type="text/css" href="style.css">.

where "style.css" is in the same folder and contains the CSS
 
Thanks Trevor. I'm happy to report that I've got that small part figured
out. One small leap for the little FP people.

I'm still stuck though. I think I've figured out (mostly) how to get the
text to behave (look to the stylesheet), however, I have a number of tables
and don't know how to tell the table to look to the style sheet for size,
border, margins padding. I've figured out the attributes (again ...
mostly), but how does the table know that I want it to look to the styles
sheet for its layout. I spent a lot of time removing the formatting, but
now I'm stuck. I'd really like to succeed at this ... but these basic steps
will be the death of me.

PS ... I do have my style sheet is in the same folder (keeping it in the
root).
Thanks for any tidbits.
 
You give each table a class or id, and define the styles for that class or
id in the style sheet.

For example, in a page with several tables there may be two tables with ids
table3 and table2 :

#table2, #table3 {border: 2px solid green; width: 100%;} sets the borders to
green and the table width to 100%
#table2 td {border: 1px solid green; padding 3px;} sets the border
thickness and color, and padding for the cells in table2.
#table3 td {border: 1px solid green; padding 10px;} sets the border
thickness and color, and padding for the cells in table3.

I rarely set the width for table cells, allowing them to set their own
widths depending on content.
--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
 
Ohhhh ... I think I'm getting it. Thanks for the examples/samples. I'll do
some testing. It'll be so exciting when I get some of this nailed!
I also "try" not to set widths, but sometimes I have to ... in some
circumstances ... exp. when nested.
 
Back
Top