wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes CSS across entire web app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "CSS across entire web app" Watch "CSS across entire web app" New topic
Author

CSS across entire web app

Anirban Das
Ranch Hand

Joined: Nov 22, 2003
Posts: 63
Iam new to CSS. Actualy I need to create a css file with the following


<style>
A:unknown {
COLOR: blue
}
A:visited {
COLOR: blue
}
A:hover {
COLOR: green
}
</style>


How do I create one so that the I can refer this properties for all my hyperlink in the web application

Thanks for your help in advance.

Cheers
[ October 21, 2007: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60732
    
  65

Please be sure to take the time to compose descriptive subjects for your posts; read this for more information. A subject of just "CSS" is not very descriptive.

I have adjusted the subject of this post for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60732
    
  65

Factor the styles out to a stylesheet that you include on every page.
 
 
subject: CSS across entire web app
 
Similar Threads
ul + new web design = no bullets?
Css External Style Sheets Location
a href = ... class=...
How do they do that?
Controlling DIV and/or TR height