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 Help - Class

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 05-02-2007, 10:44 AM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: Dec 2004
Location: Florida
Posts: 2,617
Fewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud of
 


Save The Children

CSS Help - Class


I'm trying to create some CSS classes.

This is my .CSS file:
????: NamePros.com http://www.namepros.com/programming/323364-css-help-class.html
Code:
titlebackground { 
  background-image: url(http://cdn.namepros.com/images/titleback.gif);
  font-weight: bold; 
  font-size: 20pt;
  font-family: helvetica; 
}
I'm trying to insert it into a <td> element, like so:
Code:
<tr><td class="titlebackground">
But it doesn't work? I've got the "<link href="title.css" rel="stylesheet" type="text/css" />" in the <head> part.

Any help?

Thanks
Fewski is offline  
Old 05-02-2007, 11:06 AM   #2 (permalink)
NamePros Regular
 
abdussamad's Avatar
Join Date: Jul 2006
Location: Karachi
Posts: 791
abdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of light
 



edit: nevermind. your missing the . infront of titlebackground
Code:
.titlebackground{
blah blah
}
In your css try td.titlebackground instead of just titlebackground. Also try using "!important". For ex:
????: NamePros.com http://www.namepros.com/showthread.php?t=323364

Code:
td.titlebackground
{
background-image:url("whatever") !important;
}
__________________
site unblocker - Computer Hardware
abdussamad is offline  
Old 05-02-2007, 11:09 AM   #3 (permalink)
Senior Member
Join Date: Jan 2007
Posts: 1,260
Skinny is a splendid one to beholdSkinny is a splendid one to beholdSkinny is a splendid one to beholdSkinny is a splendid one to beholdSkinny is a splendid one to beholdSkinny is a splendid one to beholdSkinny is a splendid one to behold
 



As abdussamad said its:

td.titlebackground{

code

}
Skinny is offline  
Old 05-02-2007, 11:20 AM   #4 (permalink)
NamePros Regular
Join Date: Jul 2006
Location: England
Posts: 722
chicker is a name known to allchicker is a name known to allchicker is a name known to allchicker is a name known to allchicker is a name known to allchicker is a name known to allchicker is a name known to allchicker is a name known to all
 


Save The Children
Not sure what sense you are using the css but if the above does not work try this:


edit never mind
chicker is offline  
Old 05-02-2007, 11:57 AM THREAD STARTER               #5 (permalink)
Senior Member
Join Date: Dec 2004
Location: Florida
Posts: 2,617
Fewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud of
 


Save The Children
Thanks for the help all!

Thing is now, the background image works - but the text size and weight doesn't work?

Thanks!
Fewski is offline  
Closed Thread


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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 10:49 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