aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 1390
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: 1390
Eric Pascarello wrote:That is what a class is for.

Eric


Thanks
 
 
subject: How do I use different Style Sheets on different DIV Tags
 
Similar Threads
CSS: is it possible to combine relative and absolute heights?
100% height does not work
To use Layers or tables ?
HTML Manual of Style : DIV positioning
adding spacing between two divs inside a parent div