Jump to content

Problem with stylesheet


eddy556

Recommended Posts

This is the code from my stylesheet:

 

a.textsmall {color: white; text-decoration:none; font-size:smaller; font-family:Verdana, Arial, Helvetica, sans-serif}

 

and this is the part of my HTML which uses it

 

<a class="textsmall" href="index.php" onClick="return targetopener(this,true,true)">close<img src="close.gif" border="0"></a>

 

however it doesn't work can you see any problems?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/65617-problem-with-stylesheet/
Share on other sites

Well, you close the code with [/url] instead of </a>, which if it is in the actual code will cause problems. Failing at that,  have you checked the case of both the CSS and the HTML? That makes a difference. Also, try setting an actual font size insteal of just smaller; maybe that will help.

ok I see, typing

 

</a>

 

in a post on this forum will produce [/url] unless you mark it as code.

 

- Use a proper DOCTYPE - http://www.w3.org/QA/2002/04/valid-dtd-list.html

- Close the img element properly - <img src="" alt="" />

- Make sure that there isn't any css with higher specificity that is overriding your a.textsmall class

- Get your javascript out of your markup

 

If you're still having problems once you've checked and fixed these issues then make sure to post all your CSS and (X)HMTL, and clearly describe your problem, so that people can actually help.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.