archana Posted March 8, 2007 Share Posted March 8, 2007 wats the equivalent tag name in css tat can be used for html :link instead of <a:visited >? Link to comment Share on other sites More sharing options...
jlhaslip Posted March 8, 2007 Share Posted March 8, 2007 a { }a:link { }a:visited { }a:hover { }a:active { }In that order, otherwise they cancel the result. Link to comment Share on other sites More sharing options...
archana Posted March 8, 2007 Author Share Posted March 8, 2007 Thank u..but its nt working....i dont hav any tag named <a> in my page..instead i m having the tag named<html:link> ..i wanna kno hw to include styles for the above tag name in css Link to comment Share on other sites More sharing options...
jlhaslip Posted March 8, 2007 Share Posted March 8, 2007 I'm not understanding the problem. Could you please post a link to your page or the code please.. thanks. Link to comment Share on other sites More sharing options...
jesh Posted March 8, 2007 Share Posted March 8, 2007 I think what is confusing here is that you say you are using "<html:link>" which isn't valid HTML. I did a quick Google search and it looks like maybe "<html:link>" is part of Struts? If so, what's probably happening is the server parses through the code, sees "<html:link>" and then converts it to "<a>". You might load up the page in a browser, right click on the window and choose "View Source". Where you see links in that rendered page, you're 99.9% likely to see <a></a> elements. In that case, use what jlhaslip suggested to style those links. Link to comment Share on other sites More sharing options...
S@m Posted March 8, 2007 Share Posted March 8, 2007 Are you working in/with Java?Either way, an anchor tag is an anchor tag.We have similar code, and I use the syntax that jlhaslip has suggested without problems.Just put that code at the top of your css file. That way its a global setting. It should work...*edit*Sorry, jesh asked the same things I did. Sorry for the repeat. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now