HighTechTalks DotNet Forums  

How to make a table draw lines between cells

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss How to make a table draw lines between cells in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Academia
 
Posts: n/a

Default How to make a table draw lines between cells - 12-26-2007 , 10:26 AM






I think this is a simple question but I can't find the answer.

I have in the head:
<style type="text/css">
table.c7 {font-family: Verdana}

and in the body:
<table class="c7">

The cell are not outlined.
How can I force the lines between the cells to be drawn?


Thanks for any help



Reply With Quote
  #2  
Old   
Anthony Jones
 
Posts: n/a

Default Re: How to make a table draw lines between cells - 12-30-2007 , 06:10 AM






"Academia" <academiaNOSPAM (AT) a-znet (DOT) com> wrote

Quote:
I think this is a simple question but I can't find the answer.

I have in the head:
style type="text/css"
table.c7 {font-family: Verdana}

and in the body:
table class="c7"

The cell are not outlined.
How can I force the lines between the cells to be drawn?

table.c7 td {border:1px solid black}
table.c7 th {border:1px solid black}

--
Anthony Jones - MVP ASP/ASP.NET




Reply With Quote
  #3  
Old   
Academia
 
Posts: n/a

Default Re: How to make a table draw lines between cells - 12-31-2007 , 03:23 PM



Works well but I can't figure the syntax.

Does it say, for example: Any table that references class c7 apply
{border:1px solid black} to the td's?

Thanks

"Anthony Jones" <Ant (AT) yadayadayada (DOT) com> wrote

Quote:
"Academia" <academiaNOSPAM (AT) a-znet (DOT) com> wrote in message
news:%23BvBFw9RIHA.5288 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
I think this is a simple question but I can't find the answer.

I have in the head:
style type="text/css"
table.c7 {font-family: Verdana}

and in the body:
table class="c7"

The cell are not outlined.
How can I force the lines between the cells to be drawn?


table.c7 td {border:1px solid black}
table.c7 th {border:1px solid black}

--
Anthony Jones - MVP ASP/ASP.NET





Reply With Quote
  #4  
Old   
Anthony Jones
 
Posts: n/a

Default Re: How to make a table draw lines between cells - 01-01-2008 , 04:25 AM



"Academia" <academiaNOSPAM (AT) a-znet (DOT) com> wrote

Quote:
Works well but I can't figure the syntax.

Does it say, for example: Any table that references class c7 apply
{border:1px solid black} to the td's?

Something like that yes.

More accurately it says: Apply the style {border:1px solid black} to any td
that is a descendant of a table element that has a class name of c7.

See:-

http://www.w3.org/TR/CSS21/selector....dant-selectors

--
Anthony Jones - MVP ASP/ASP.NET




Reply With Quote
  #5  
Old   
Academia
 
Posts: n/a

Default Re: How to make a table draw lines between cells - 01-01-2008 , 04:58 AM



thanks very much

"Anthony Jones" <Ant (AT) yadayadayada (DOT) com> wrote

Quote:
"Academia" <academiaNOSPAM (AT) a-znet (DOT) com> wrote in message
news:OKlZUN$SIHA.1924 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Works well but I can't figure the syntax.

Does it say, for example: Any table that references class c7 apply
{border:1px solid black} to the td's?


Something like that yes.

More accurately it says: Apply the style {border:1px solid black} to any
td
that is a descendant of a table element that has a class name of c7.

See:-

http://www.w3.org/TR/CSS21/selector....dant-selectors

--
Anthony Jones - MVP ASP/ASP.NET





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.