eddy556 Posted August 18, 2007 Share Posted August 18, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/65617-problem-with-stylesheet/ Share on other sites More sharing options...
moberemk Posted August 18, 2007 Share Posted August 18, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/65617-problem-with-stylesheet/#findComment-327686 Share on other sites More sharing options...
ToonMariner Posted August 18, 2007 Share Posted August 18, 2007 what exactly doesn't work? what is it supposed to do? Quote Link to comment https://forums.phpfreaks.com/topic/65617-problem-with-stylesheet/#findComment-327814 Share on other sites More sharing options...
dbrimlow Posted August 19, 2007 Share Posted August 19, 2007 close your "a" tag. Quote Link to comment https://forums.phpfreaks.com/topic/65617-problem-with-stylesheet/#findComment-327876 Share on other sites More sharing options...
bronzemonkey Posted August 19, 2007 Share Posted August 19, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/65617-problem-with-stylesheet/#findComment-328000 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.