Jump to content

Borders in <td> elements


bdt

Recommended Posts

I'm trying to use a little CSS and I'm not getting what I want. I am applying a rule to a series of <td> 's to make some buttons. Here is the rule:.top_button {background-image: url(images/button_bkg.gif); text-decoration: underline; border-width: 3px; border-color: #cc9900; height: 50px}I get the background image and the underlined the text, but I am not getting any border at all. I had everything pretty good without using CSS, but when I tried to clean up the HTML and shift some of the presentation to CSS I lost my borders and can't find them anywhere.thanks

Link to comment
Share on other sites

I typically do my border declaration in a single call:

border: 3px solid #cc9900;

It may be that you have border-width and border-color set but you are missing border-style so the borders aren't being rendered. Try this instead:

border-width: 3px;border-color: #cc9900;border-style: solid;

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...