|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am trying to make a nice thin border around a table and all the table cells. It need to work on both windows and macs...
If I add this to my table tag [ style="border-collapse: collapse" bordercolor="#808080" ] it give me a nice border in IE, but not so great on a mac (big and thick). I also want to be able to add it into a style sheet and just add the style tag to the table, but I can't seem to get any of it to work. Anyone have any examples or advice? Thanks! |
|
#2
|
||||
|
||||
|
put the table inside of a div and give the div a border...
<div style="border: 1px solid #808080" > <table> </table> </div> OR, you can add that classification to your stylesheet.... .bordered_something {border: 1px solid #808080} then the code changes a tiny bit... from what I originally showed you above... <div class='bordered_something'> <table> </table> </div>
__________________
The Standards! CSS 2 - CSS 3 - w3c CSS Validator - XHTML 1.1 - HTML 4.01 - w3c (X)HTML Validator - ActionScript Reference Links! Bert's Door and Lock Service | Brandon Erik Bertelsen | TextPattern |
|
#3
|
||||
|
||||
|
Secondly, a word of advice... and moving into the furure with your design, it's not suggested to use tables unless you are actually trying to display tabular data, otherwise you should be using css positioning for your major page elements...
But that's just a suggestion... |
|
#4
|
||||
|
||||
|
use css all the way, there is no such things as bordercolor="#808080" ,
Code:
css:
table {
border:1px solid #808080;
border-collapse:collapse;
}
table td {
border:1px solid #808080;
}
|
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS and Table Borders.... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|