HighDots Forums  

how to define properties of table border with css?

alt.html alt.html


Discuss how to define properties of table border with css? in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bernd Meier
 
Posts: n/a

Default how to define properties of table border with css? - 01-13-2008 , 11:27 AM






I defined table.propertiesfortables {color:green; background-color:#FFFF00;
border="5" solid blue} as CSS.
I start my table with the tag: <table class=propertiesfortables>

Font is green and background yellow but I didn't get border lines.
But if I use table.propertiesfortables {color:green;
background-color:#FFFF00}
as CSS and then begin table tag with <table class=propertiesfortables
border="5" solid blue>
I get blue border line.

Why don't I get blue border lines for my table with first example with CSS
and what have
I to change to get them with CSS?


Reply With Quote
  #2  
Old   
Jeff
 
Posts: n/a

Default Re: how to define properties of table border with css? - 01-13-2008 , 11:40 AM






Bernd Meier wrote:
Quote:
I defined table.propertiesfortables {color:green;
background-color:#FFFF00; border="5" solid blue} as CSS.
for one thing that isn't correct CSS.

try: border: solid blue 5px

for another, do you want a border around the table or the cells?:

table.propertiesfortables td{border: solid blue 5px;}

Also look up border-collapse: collapse

Styling tables with CSS is a different animal than you think.

I'm sure there must be a tutorial around somewhere on this.



Quote:
I start my table with the tag: <table class=propertiesfortables

Font is green and background yellow but I didn't get border lines.
But if I use table.propertiesfortables {color:green;
background-color:#FFFF00}
as CSS and then begin table tag with <table class=propertiesfortables
border="5" solid blue
Good html procedure is to use quotes
<table class="propertiesfortables"

Jeff



Quote:
I get blue border line.

Why don't I get blue border lines for my table with first example with
CSS and what have
I to change to get them with CSS?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.