![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I'm trying to use a table and format it with CSS, but I cant get it to render with a border. I know this is really easy, but I can't see what I have wrong and when I search for tables and CSS I just get lots of stuff about using tables for layout etc. |
|
What I have is: table {border: 2px; |
|
font-size: 16pt; |
#2
| |||
| |||
|
|
There's nothing special about tables when it comes to borders in CSS. |
#3
| |||
| |||
|
|
Michael wrote: I'm trying to use a table and format it with CSS, but I cant get it to render with a border. I know this is really easy, but I can't see what I have wrong and when I search for tables and CSS I just get lots of stuff about using tables for layout etc. There's nothing special about tables when it comes to borders in CSS. What I have is: table {border: 2px; So, that would be: border-width: 2px; border-style: none; then? (and don't forget the border-color). font-size: 16pt; Point units considered harmful on screen: http://css-discuss.incutio.com/?page=UsingPoints -- David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/ Home is where the ~/.bashrc is |
#4
| |||
| |||
|
|
"David Dorward" <dorward (AT) yahoo (DOT) com> wrote in message news:egafbj$ggk$1$8302bc10 (AT) news (DOT) demon.co.uk... Michael wrote: I'm trying to use a table and format it with CSS, but I cant get it to render with a border. I know this is really easy, but I can't see what I have wrong and when I search for tables and CSS I just get lots of stuff about using tables for layout etc. There's nothing special about tables when it comes to borders in CSS. What I have is: table {border: 2px; So, that would be: border-width: 2px; border-style: none; then? (and don't forget the border-color). font-size: 16pt; Point units considered harmful on screen: http://css-discuss.incutio.com/?page=UsingPoints -- David Dorward <http://blog.dorward.me.uk/ http://dorward.me.uk/ Home is where the ~/.bashrc is ahhhhhh! I knew it was something stupid. Thanks for that Michael |
#5
| |||
| |||
|
|
"Michael" <michael5139 (AT) yahoo (DOT) com> wrote in message news:452b13a6$0$1467$5a62ac22 (AT) per-qv1-newsreader-01 (DOT) iinet.net.au... "David Dorward" <dorward (AT) yahoo (DOT) com> wrote in message news:egafbj$ggk$1$8302bc10 (AT) news (DOT) demon.co.uk... Michael wrote: I'm trying to use a table and format it with CSS, but I cant get it to render with a border. I know this is really easy, but I can't see what I have wrong and when I search for tables and CSS I just get lots of stuff about using tables for layout etc. There's nothing special about tables when it comes to borders in CSS. What I have is: table {border: 2px; So, that would be: border-width: 2px; border-style: none; then? (and don't forget the border-color). font-size: 16pt; Point units considered harmful on screen: http://css-discuss.incutio.com/?page=UsingPoints -- David Dorward <http://blog.dorward.me.uk/ http://dorward.me.uk/ Home is where the ~/.bashrc is ahhhhhh! I knew it was something stupid. Thanks for that Michael Hmmmm..... Now I have: table {position: absolute; top: 150px; left: 150px; border-width: 2px; border-style: none; font-size: 16pt; } I know the page is using the stylesheet because if I change the font-size it changes, but I still have no border........ |
#6
| |||
| |||
|
|
So, that would be: border-width: 2px; border-style: none; then? border-style: none; |
|
(and don't forget the border-color). |
|
Point units considered harmful on screen: http://css-discuss.incutio.com/?page=UsingPoints font-size: 16pt; |
![]() |
| Thread Tools | |
| Display Modes | |
| |