Solved

td border width

Posted on 2011-03-01
5
561 Views
Last Modified: 2012-05-11
is there a way to set the td border width to 300px and border-color:#ffffff
0
Comment
Question by:rgb192
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:AlanNMMX
ID: 35011704
Hi, try the following in your CSS file.
td {
  border: 300px solid #FFF;
}

Open in new window

0
 
LVL 16

Expert Comment

by:HagayMandel
ID: 35011711
This is hoe it's done.
What do you want to achieve?
<style type="text/css">
<!--
td {
	border-top-width: 300px;
	border-right-width: 300px;
	border-bottom-width: 300px;
	border-left-width: 300px;
	border-top-color: #ffffff;
	border-right-color: #ffffff;
	border-bottom-color: #ffffff;
	border-left-color: #ffffff;
}
-->
</style>

Open in new window

0
 

Author Comment

by:rgb192
ID: 35011725
is there a way to do this in the td tag
because I only want to use it once and dont want it to overwrite my existing td tag
0
 
LVL 4

Accepted Solution

by:
AlanNMMX earned 350 total points
ID: 35011787
Yes you can create a class and apply that only to selected td elements.
td.special {
  border: 300px solid #FFF;
}

Open in new window

<table>
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td class="special">$100</td>
  </tr>
</table>

Open in new window

0
 

Author Closing Comment

by:rgb192
ID: 35012137
thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
increase words that display in widget 6 57
Error in script 11 45
FIELDSETs and LEGENDs in email markup 1 11
Objects on Same Line 2 18
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now