css apply to table

  • roos
  • Born
  • Born
  • roos
  • Posts: 1

Post 3+ Months Ago

Hello everyone,

I am new here but I hope to receive some help. I am having a table and in my cs I have the following code;

Code: [ Select ]
table.unique_table_styleinput,select,textarea,file{border:1px solid #D6D4CF;color:#999186;font-family:Arial,Helvetica,sans-serif;}
height: 100px;
width: 250px;}
  1. .asterix{color:#f90102;}.underline{text-decoration:underline;}.cursor{cursor:pointer;}strong{font-weight:bold;}
  2. table.unique_table_styleinput,select,textarea,file{border:1px solid #D6D4CF;color:#999186;font-family:Arial,Helvetica,sans-serif;}
  3. textarea{
  4. height: 100px;
  5. width: 250px;}

Currently it applies to my whole page, however, I want this code to apply to my table only. Can someone give me the help I need?

Thanks a lot!!
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3423
  • Loc: Richland, WA

Post 3+ Months Ago

Well there are a view ways to do this. You can add a table tag in front of all the styles and it will only apply to tables.

CSS Code: [ Select ]

Or if you want ti to apply to a single table on your page you can use an ID.

CSS Code: [ Select ]
#myTable .asterix{color:#f90102;}

HTML Code: [ Select ]
<table id="myTable"></table>

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 23 guests
  • 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

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.