|
| |
|
|
Starhugger
Posts: 512 Joined: 4/12/2005 Status: offline
|
Firefox, IE and table borders - 12/20/2006 23:15:38
I have a one-cell table as a sidebar. I'm using one CSS style for the border colours for the table and another style for the cell, giving an alternating colour effect. Here's the CSS: .edtableredgreen { /* CELL STYLE */
border-left: 3px solid #B22222;
border-right: 3px solid #006600;
border-top: 3px solid #B22222;
border-bottom: 3px solid #006600;
}
.edtablegreenred { /* TABLE STYLE */
border-left: 3px solid #006600;
border-right: 3px solid #B22222;
border-top: 3px solid #006600;
border-bottom: 3px solid #B22222;
} Frontpage generates this starter code for the table definition: <table border="0" cellpadding="20" cellspacing="2"
style="border-style:solid; border-width:3px; font-size:95%;
margin-left: 20px; margin-bottom: 10px; margin-top: 5px;
padding-left:6px; padding-right:6px; padding-top:10px; padding-bottom:6px"
width="320" align="right" class="edtablegreenred" bgcolor="#FFFFE3">
<tbody>
<tr>
<td style="border-style:solid; border-width:3px; text-align: center"
valign="top" class="edtableredgreen">
/* ETC... */
In IE7, it shows up as it should, with a double border spaced 2px apart. But in FF1.5.0.9 the double border gapes apart by what looks like about 15px. Huh?? Here's the URL, if it will help: http://www.evolvingdoor.ca/readings/personal_astrology_readings.htm Thanks for the help! Starhugger
|
|
|
|
Kitka
Posts: 2515 Joined: 1/31/2002 From: Australia Status: offline
|
RE: Firefox, IE and table borders - 12/22/2006 3:23:00
I just thought to look at the page you posted, and notice that while you have added the CSS to your external stylesheet, the code for the table hasn't changed. This is the code you have: <table border="0" cellpadding="20" cellspacing="2"
style="border-style:solid; border-width:3px; font-size:95%;
margin-left: 20px; margin-bottom: 10px; margin-top: 5px;
padding-left:6px; padding-right:6px; padding-top:10px; padding-bottom:6px"
width="320" align="right" class="edtablegreenred" bgcolor="#FFFFE3">
<tbody>
<tr>
<td style="border-style:solid; border-width:3px; text-align: center"
valign="top" class="edtableredgreen" And the following is the edited code (from the page I posted above) to replace that entire block, which should work the way you would like it to: <table class="edtablegreenred">
<tbody>
<tr>
<td class="edtableredgreen">
_____________________________
Kitka **It is impossible to make anything foolproof because fools are so ingenious.**
|
|
|
|
rdouglass
Posts: 9227 From: Biddeford, ME USA Status: offline
|
RE: Firefox, IE and table borders - 12/22/2006 9:55:07
Why not place the table inside a div and style the div instead?
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
Kitka
Posts: 2515 Joined: 1/31/2002 From: Australia Status: offline
|
RE: Firefox, IE and table borders - 12/22/2006 16:05:20
quote:
working FINE, thank you. You're very welcome! Glad we got it sorted.
_____________________________
Kitka **It is impossible to make anything foolproof because fools are so ingenious.**
|
|
|
|
Starhugger
Posts: 512 Joined: 4/12/2005 Status: offline
|
RE: Firefox, IE and table borders - 12/22/2006 16:19:01
quote:
ORIGINAL: rdouglass Why not place the table inside a div and style the div instead? Yes, that would prolly do it too. Thanks for the alternative suggestion, RD. quote:
Why do they put braille instructions at drive-thru' s? DO they put braille instructions at drive-thru's???? The mind boggles... SH
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|