wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 1393
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: 1393
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
 
Similar Threads
adding spacing between two divs inside a parent div
CSS: is it possible to combine relative and absolute heights?
HTML Manual of Style : DIV positioning
To use Layers or tables ?
100% height does not work