Table css border help

Thread Solved

Join Date: Oct 2006
Posts: 179
Reputation: HLA91 is an unknown quantity at this point 
Solved Threads: 2
HLA91 HLA91 is offline Offline
Junior Poster

Table css border help

 
0
  #1
May 9th, 2007
Hi
This is the first time I have had any need to use css and I am confused.
I want to make the border of my table dashed and I managed to do so but how do I keep the colour of the border the same (before it was #cc3300 Orange) and now it has changed to black here is the code:
HTML and CSS Syntax (Toggle Plain Text)
  1.  
  2. table {border-style: dashed;}
  3. td {border-style: dashed;}

Many thanks
HLA91
Last edited by HLA91; May 9th, 2007 at 1:47 pm.
You know your a geek, if you introduce your wife as "mylady@home.wife"
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 192
Reputation: stupidenator is an unknown quantity at this point 
Solved Threads: 4
stupidenator's Avatar
stupidenator stupidenator is offline Offline
Junior Poster

Re: Table css border help

 
0
  #2
May 9th, 2007
table { border-color: #cc3300; }
td { border-color: #cc3300; }

or you can combine the two commands into one:

table { border: 1px dashed #cc3300; }

Hope this helps.

Nick
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 30
Reputation: azzu5 is an unknown quantity at this point 
Solved Threads: 2
azzu5 azzu5 is offline Offline
Light Poster

Re: Table css border help

 
0
  #3
May 9th, 2007
You can also short the class like this...


table, td { border: 1px dashed #cc3300; }
Looking at my own code of Life and thinking what the hell is this....
------------------------------------
Middle East B2B Marketplace
Dubai Web Design
Dubai SEO
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC