Welcome visitor
* Login
* Register
It is currently March 26th, 2019, 6:29 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  CSS for a table, row and cell (table, tr, td)
PostPosted: December 26th, 2009, 6:22 pm 

Posts: 23
when writing the CSS for a table, should I also specify that it will be used by the cells?
table,tr,td{}

or should I just write
table{}
:?:


Top
 Profile  
 
  Re: CSS for a table, row and cell (table, tr, td)
PostPosted: December 26th, 2009, 8:49 pm 

Posts: 65
It depends. If you write:
table, tr, td{width: 300px}

and if you have 3 cells on the row, the width of the table will not be 300px but 900px!

If you want to apply some color to all the text inside a table you can do it with table alone:
table{color: #fff}

so, it depends.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


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 post attachments in this forum

Search for:
Jump to:  
cron