File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 61095
    
  66

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: 61095
    
  66

Factor the styles out to a stylesheet that you include on every page.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: CSS across entire web app