[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 08-09-2005, 04:58 AM   #1 (permalink)
NamePros Member
 
Join Date: Jun 2005
Posts: 38
64.00 NP$ (Donate)

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:

<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, 05:15 AM   #2 (permalink)
NamePros Member
 
Icespadez's Avatar
 
Join Date: Apr 2005
Location: Boston, MA
Posts: 26
290.00 NP$ (Donate)

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, 03:49 AM   #3 (permalink)
NamePros Regular
 
Zubair1's Avatar
 
Join Date: Mar 2005
Posts: 874
159.45 NP$ (Donate)

Zubair1 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 Games and Songs || eBloggy.net
Zubair.info || Mixcat Interactive
Zubair1 is offline  
Closed Thread


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

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
Trackbacks are On
Pingbacks are On
Refbacks are On


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 01:00 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85