Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Help with special table format

Reply
Thread Tools

Help with special table format

 
 
Lee Harris
Guest
Posts: n/a
 
      04-28-2005
Other than trying to work out some way to do it with spacer graphics, is
there any easy way to set up a table such that you can have a dashed line
between certain rows, for example, if you had a league table, and you might
want a class for a td style for the header of the table, then some rows of
data, perhaps with a td class, and then another td class for say the bottom
3 items in a table with different shading, but then how to have a dashed
line between the table data at the top and those bottom three

something like

TITLE OF TABLE (dark colour)
row data (white)
row data (white)
row data (white)
row data (white)
row data (white)
dashed line here
row data (grey)
row data (grey)
row data (grey)



I'm not sure this is possible, but it seems like it ought to be!
thanks in advance for any advice. I could possibly do it with a dashed line
image inserted if I am careful to specify the dimensions of the dashed line
row so it looks right, but I am also filling some tables with dynamic data
from a csv file, so it would be more tricky (although I could have different
dashed image sections placed in each cell on a specific row I suppose)


 
Reply With Quote
 
 
 
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      04-28-2005
Lee Harris wrote:
> Other than trying to work out some way to do it with spacer
> graphics, is there any easy way to set up a table such that you can
> have a dashed line between certain rows,


I use the following on some pages of mine, that gives a dashed border
between each row:

table { border: 1px solid; }
td { background-color: #f5f5f5; padding-left: 0.5em; padding-right:
1em; border-top: 1px dashed #000; }

See it here:
http://www.countryrode.com/sales/preowned.php

For your case, you would probably want to set up different classes,
and use the above dashed line only on the class of the first of the
grey rows.

Hope that helps.

--
-bts
-This space intentionally left blank.
 
Reply With Quote
 
 
 
 
Lee Harris
Guest
Posts: n/a
 
      04-29-2005

"Beauregard T. Shagnasty" <(E-Mail Removed)> wrote in message
news:S5ace.9340$(E-Mail Removed)...
> Lee Harris wrote:
>> Other than trying to work out some way to do it with spacer
>> graphics, is there any easy way to set up a table such that you can
>> have a dashed line between certain rows,

>
> I use the following on some pages of mine, that gives a dashed border
> between each row:
>
> table { border: 1px solid; }
> td { background-color: #f5f5f5; padding-left: 0.5em; padding-right: 1em;
> border-top: 1px dashed #000; }
>
> See it here:
> http://www.countryrode.com/sales/preowned.php
>
> For your case, you would probably want to set up different classes, and
> use the above dashed line only on the class of the first of the grey rows.
>
> Hope that helps.



bless you Sir!
(you're not related to that old geezer porn bloke of "Shagnasty & Mutley"
over here in the UK are you, LOL)


 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      04-29-2005
Lee Harris wrote:

> bless you Sir!


Ah, I'm blessed...

> (you're not related to that old geezer porn bloke of
> "Shagnasty & Mutley" over here in the UK are you, LOL)


*Porn* bloke? Oh my... nooooo..

--
-bts
-This space intentionally left blank.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Special Report: How special are you? Death from Above MCSE 2 03-19-2007 07:22 PM
Special editions and Deluxe special edition dvd question. Rclrk43 DVD Video 8 12-29-2004 07:32 PM
Table/table rows/table data tag question? Rio HTML 4 11-05-2004 08:11 AM
Script to format existing Access table into wall calendar format? Lee Falataco ASP General 2 08-10-2004 01:42 AM
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table. David Williams ASP .Net 2 08-12-2003 07:55 AM



Advertisments