Solved

td border width

Posted on 2011-03-01
5
585 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do I select this logo using CSS? 6 49
Why "Mobile First"? 5 62
CSS Scroll Center with Static Side. Like EE does. 2 46
Wordpress Responsive Web design and iPads 11 39
Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
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…

739 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