| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Member | 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 |
| |
| | #2 (permalink) |
| NamePros Member | I would suggest using a class rather than a non-standard tag to apply styles Code: .p1 {
font: 12px verdana;
}
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> |
| |
| | #3 (permalink) |
| NamePros Regular | 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 |
| |
![]() |
| 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 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 |