HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Table Trouble with Mozilla
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
dssamaha1



Joined: 18 Mar 2005
Posts: 3

PostPosted: Fri Mar 18, 2005 12:06 pm     Table Trouble with Mozilla Reply with quote

Hi,

I'm having trouble getting my table border color to display in Mozilla. Any suggestions for a quick fix? The table border color displays fine in everything else. Here is a code snippet:

<table width="238" height="50" border="1" bordercolor="#ADC992">

<tr><td style="border: none" valign="middle"></td></tr>

</table>

I realize the bordercolor attribute is ill supported across browsers but I don't know of any other way to do it. Thanks!
chrisxkelley



Joined: 07 Dec 2004
Posts: 246

PostPosted: Fri Mar 18, 2005 12:33 pm     Reply with quote

welcome to hct Smile

here you'll want to use css
give your table a class, then define that class in css

eg:
Code:

<table class="mytable">

then in the head section, place this:
Code:

<style type="text/css">
mytable{
width:238px;
height:50px;
border-width:1;
border-color:#ADC992;
}
</style>


let me know how that works out
dssamaha1



Joined: 18 Mar 2005
Posts: 3

PostPosted: Fri Mar 18, 2005 12:50 pm     Reply with quote

Hey thanks for the tip. I tried placing the code in the page as instructed but there doesn't seem to be any color for the border. The rest of teh formatting looks ok though. Any suggestions?
dssamaha1



Joined: 18 Mar 2005
Posts: 3

PostPosted: Fri Mar 18, 2005 12:57 pm     Reply with quote

Ok I think I got now. I neglected to include a border-style: solid; for my border. I'm a jerk. Thank you for the helpful tip and speedy reply. I appreciate the help!
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial