NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Css rookie-a little help

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-09-2005, 05:58 AM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Jun 2005
Posts: 38
Biggie_mac is an unknown quantity at this point
 



Css rookie-a little help


I've made a mystyle.css file where I enetered :

p1 {font: 12px verdana}

and I would like this setting to apply to a number of words that I have in a table. The thing is ..it doesn't work. So the code in the htm file is like this:
????: NamePros.com http://www.namepros.com/programming/114021-css-rookie-a-little-help.html

<tr>
<td width="100%" height="19">verdana</td>
</tr>
<tr>
<td width="100%" height="19">verdana1</td>
</tr>
<tr>
<td width="100%" height="19">verdana2</td>
</tr>

So I would like that the words verdana, verdana1, and verdana2 to be formatted as written in the mysytyle.css(with verdana font and 12px size). Now how do I do it? puting <p1>verdana</p1> works but not when the word is in the table..if u understand what I'm trying to say. 10x
Biggie_mac is offline  
Old 08-09-2005, 06:15 AM   #2 (permalink)
NamePros Member
 
Icespadez's Avatar
Join Date: Apr 2005
Location: Boston, MA
Posts: 26
Icespadez is an unknown quantity at this point
 



I would suggest using a class rather than a non-standard tag to apply styles

Code:
.p1 {
    font: 12px verdana;
}
Then you could apply that style by adding the class attribute:

HTML Code:
 <tr>
    <td width="100%" height="19" class="p1">verdana</td>
  </tr>
  <tr>
    <td width="100%" height="19" class="p1">verdana1</td>
  </tr>
  <tr>
    <td width="100%" height="19" class="p1">verdana2</td>
  </tr>
Icespadez is offline  
Old 08-20-2005, 04:49 AM   #3 (permalink)
NamePros Regular
 
Zubair1's Avatar
Join Date: Mar 2005
Posts: 912
Zubair1 is just really niceZubair1 is just really niceZubair1 is just really niceZubair1 is just really niceZubair1 is just really nice
 


AIDS/HIV
well if your applying it to the hole table you could assign the table an id the could like this

#id{font: 12px verdana}

but i suggest you go with Icespeadz since the class will allow you to assign it to anything you want my the id method applies it to the whole table.
__________________
Live Support : Zubair11 [at] hotmail.com
Free SEO Directory! || Free Online TV || Tech Blog
Web Design & Web Development Services || Reliable Web Hosting
Zubair1 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a border around css content... matthewsa1 Programming 5 05-06-2005 08:03 PM
CSS Menus.com + CSS Menu.com Unknown Domains For Sale - Auctions 3 02-14-2005 05:41 PM
Mozilla/Firefox (css) width: 100%; issue. FieroGT Web Design Discussion 3 08-07-2004 01:06 AM
CSS: what's the use of it? lucesei Programming 13 04-12-2004 08:21 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 01:41 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger