943,789 Members | Top Members by Rank

Ad:
May 9th, 2007
0

Table css border help

Expand Post »
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.
Similar Threads
Reputation Points: 7
Solved Threads: 2
Junior Poster
HLA91 is offline Offline
177 posts
since Oct 2006
May 9th, 2007
0

Re: Table css border help

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
Reputation Points: 18
Solved Threads: 4
Junior Poster
stupidenator is offline Offline
192 posts
since Mar 2005
May 9th, 2007
0

Re: Table css border help

You can also short the class like this...


table, td { border: 1px dashed #cc3300; }
Reputation Points: 10
Solved Threads: 2
Light Poster
azzu5 is offline Offline
30 posts
since May 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Copying styles from one window to another...
Next Thread in HTML and CSS Forum Timeline: how





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC