Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Applying multiple classes for CSS

fac586Sep 30 2005 — edited Oct 1 2005
Is there a way I can get HTML DB to assign multiple classes to elements? My application has multiple report regions that have to be colour coded according to category of data and I'd like to minimise the number of templates and style rules required. Assigning multiple classes in mark-up allows the use of a small number of generic CSS selectors.

I'd like to define a single report template, say with <table class="stats"> and apply the same basic styling to all reports:

table.stats { border-collapse: collapse; }

table.stats th, table.stats td { border: 1px solid #999; }

And have generic class rules for each category of data to provide consistent color schemes:

.orthodontic { background: #cfc; }
.general { background: #cff; }
.overall { background: #fc9; }

Then apply the additional classes for each category through the region/report definition so that the markup is generated as:

<table class="stats orthodontic">
.
.
.
<table class="stats general">
.
.
.
<table class="stats overall">

And both the basic styling and the category colour schemes are applied.

I've got used to working with cascaded and inherited CSS properties rather than having to apply classes to every element...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 29 2005
Added on Sep 30 2005
1 comment
882 views