Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 10-19-2010, 03:15 AM
destructive_engineer destructive_engineer is offline
Junior Member
 
Join Date: 10-10-10
Posts: 12
iTrader: 0 / 0%
Best way to format the style of a table?

Hi

I would like to have multiple tables on my website all with their own style.

I am using an external CSS for all the styles on my website. How do I create different styles for different tables in the CSS document. and then how do I call the table style i want in the html document.

I think that makes sense!

Thanks
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 10-19-2010, 09:44 AM
HTMLBasicTutor's Avatar
HTMLBasicTutor HTMLBasicTutor is offline
Administrator
 
Join Date: 10-29-07
Location: Canada
Posts: 26,710
iTrader: 5 / 100%
If the table is used once per page you can use id. If used multiple times on a page then you have to use class.

e.g.
HTML Code:
<table id="meaningfulname">
or
HTML Code:
<table class="meaningfulname">
CSS using id
Code:
#meaningfulname { style properties }
CSS using class
Code:
.meaningfulname { style properties }
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Format Table pchieng Web Design Lobby 3 05-11-2009 02:18 AM
Loading data form table to table? rob7676 Coding Forum 1 11-04-2008 12:37 PM
Table based or table-less designing? zeldaze Coding Forum 3 07-03-2008 07:37 AM
Showing data from a table based on infos from another table! anarchoi Coding Forum 0 06-16-2007 04:58 PM
Table format problem RonHollingsworth Web Design Lobby 2 03-09-2004 11:53 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 04:26 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC