Solved

td border width

Posted on 2011-03-01
5
549 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
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…

708 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

15 Experts available now in Live!

Get 1:1 Help Now