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:

table {border-style: dashed;}
td     {border-style: dashed;}

Many thanks
HLA91

Recommended Answers

All 2 Replies

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

You can also short the class like this...


table, td { border: 1px dashed #cc3300; }

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.