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 How do I use different Style Sheets on different DIV Tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How do I use different Style Sheets on different DIV Tags" Watch "How do I use different Style Sheets on different DIV Tags" New topic
Author

How do I use different Style Sheets on different DIV Tags

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1466
    
    1
I have a page with four DIVs. Each has a table in them. I want to have one of the tables in one of the DIV to be a smaller font. So I created two css files calling one out in the three JSPs that load in the DIVs and another to control the fourth JSP and DIV.

What happens is the fourth one changes all fonts to its settings.

How do I either get this to work or have one css to control two tables differently?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
That is what a class is for.

Eric
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1466
    
    1
Eric Pascarello wrote:That is what a class is for.

Eric


Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I use different Style Sheets on different DIV Tags