bdt Posted May 14, 2007 Share Posted May 14, 2007 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 More sharing options...
jesh Posted May 14, 2007 Share Posted May 14, 2007 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 More sharing options...
bdt Posted May 14, 2007 Author Share Posted May 14, 2007 It may be that ... you are missing border-style so the borders aren't being rendered. Try this instead:Bingo!! I assumed that the default was solid. thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.