NameSilo

CSS Help - Class

Spaceship Spaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
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
•••
As abdussamad said its:

td.titlebackground{

code

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


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

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

Thanks! :)
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back