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
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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.