Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2nd attempt usign Class 1

Status
Not open for further replies.

rewdee

Programmer
Aug 17, 2001
295
US
I'm trying to implement a class as:
Code:
<style type=&quot;text/css&quot;>
.DataTable {font-size: 12px; font-family:Arial; border:solid 2px #000000; background-color:#ffffff; padding:0px;}
.DataTableHeader {background-color:#808080 ; border:solid 2px #FF0000; font-size: 12px; padding:15px; font-family:Courier; }            
</style>

I'm finding thought that I can't create the flat border that is so widely used (just copy and paste data from Excel to FrontPage). In fact this way, I'm not getting any borders within the table. However, If I add the Border element in the inline statement, I do at least get a border. (see and How do I create a class that has a flat border all around cells?

Many thanks,
Rewdee
 
That looks fine to me. I don't mean to insult you, but are you linking to it by using <table class=&quot;DataTable&quot;> ? That's the only thing that I see that might be wrong.
Good luck,
Rick
 
Hi Rewdee,

the reason is as follow:
The class .DataTable only makes the Outline-border of the TOTAL table.
The class .DataTableHeader only makes the border of the header cells.

For sofar you did a good job !!

So now you only have to ad a new class for the other cells and put this class in each <TD> like:

.DataTableCell {border:solid 1px #404040;}

<TD class=&quot;DataTableCell&quot;>

and DELETE the border=&quot;1&quot; in the <table> tag !!

If you want this &quot;style&quot; for all your tables in the entire site you kan define :
TD.DataTableCell {border:solid 1px #404040;}
and leave the class=&quot;DataTableCell&quot; in the <TD> tag

I don't understand what you mean with &quot;flat&quot; border but if you mean another type of border you can change &quot;solid&quot; in your styles to:

| dotted | dashed | solid | double | groove | ridge | inset | outset |

Hope this helps,
Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top