CSS Help - Class

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

Fewski

VIP Member
Impact
64
I'm trying to create some CSS classes.

This is my .CSS file:
Code:
titlebackground { 
  background-image: url(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 :)
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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:

Code:
td.titlebackground
{
background-image:url("whatever") !important;
}
 
0
Close
As abdussamad said its:

td.titlebackground{

code

}
 
1
Close
Not sure what sense you are using the css but if the above does not work try this:


edit never mind
 
0
Close
Thanks for the help all! :)

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

Thanks! :)
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back