Focal Point
[SOLVED] Use of multiple Classess of CSS in a single element

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/674109935

October 04, 2010, 11:36 AM
LavanyaGuthi
[SOLVED] Use of multiple Classess of CSS in a single element
Hi All,
Can we use multiple classess of CSS in a single element? For example:

below are the 2 classess of my CSS.
table.striped .alt td, th {
	background-color:#EEEEEE;
	border-bottom:#999999;
	border-top:#999999;
}

.table .tableborder{
	border:1px solid #999999;
}


Now I am using the above 2 classes in a table tag.
<table class="striped tableborder">

Will the above tag have any effect? This tag is supposed to give alternate row color. But I am not getting alternate row color. Can anyone please help me in this regard?

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6 , Windows XP
Excel, PDF,HTML
October 04, 2010, 04:06 PM
<JG>
Trying to be too smart.

Just use the standard WebFOCUS stylesheet to set the alternate colour.

Edit.

Please use code tags when posting code.

You can probabley see what it's done to this post.
October 05, 2010, 03:53 AM
Wep5622
You seem to have left out the tag in question, but yes, you can use multiple CSS classes on a tag. In HTML you would specify those as
<table class="striped tableborder">


In a WebFOCUS stylesheet you can use for example
TYPE=DATA, CLASS=striped tableborder, $

Note that those are currently limited to 23 characters (so you're cutting it close with those class names). We have an open case on that.

This message has been edited. Last edited by: Wep5622,


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
October 06, 2010, 04:59 AM
LavanyaGuthi
JG and Wep5622, Thanks a lot for your replies. Smiler In fact this was my first post in the forum. Going forward I will use the code tags when posting code.


WebFOCUS 7.6 , Windows XP
Excel, PDF,HTML