The SAS Output Delivery System and reporting techniques

CSS for ODS .class and #

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 133
Accepted Solution

CSS for ODS .class and #

Hi Guys,

When I look at CSS files I often see the has #.

I know the . defines the class but how could I match all the css # to ODS styles ?

in other words, how can I get my sashelp.class row (TR) to take on the style # table tr

.table {

    background-color: #dddddd;

    border-spacing: 0;

    border: 1px yellow solid;

}

# table{

    border-collapse:collapse;

    font-size:100%;

}

# table caption{

    background-color:#447495 !important;

    color:#FFFFFF;

    font-family:Georgia,"Times New Roman",Times,serif;

    font-style:italic;

    font-weight:bold;

    margin-bottom:0;

    padding:10px 7px;

}

# table td,

# table th{

    vertical-align:top;

    padding:5px 3px;

    border-right:1px solid #F5F6EA;

}

# table tr{

    border-top:1px solid #F5F6EA;

}

# table thead tr{

    background-color:#FFFFFF;

}

# table tbody tr{

    background-color:#EAECDA;

}

# table tbody tr.odd{

    background-color:#DFE3CB;

}

#.text table p{

    display:static;

    margin:0;

    font-size:100%;

    line-height:normal;

}


Accepted Solutions
Solution
‎01-29-2015 11:49 AM
SAS Super FREQ
Posts: 8,721

Re: CSS for ODS .class and #


Hi:

  Have a look at this paper. I believe you have to use either the ID= values or the CLASS= values that SAS uses by default. http://support.sas.com/resources/papers/proceedings13/365-2013.pdf for more thorough help, you might want to work with Tech Support. You don't show your destination of interest and CSS interpretation might differ based on the destination. There are a couple of different ways to do alternate row coloring and I believe there are Tech Support notes on them, too.

cynthia

View solution in original post


All Replies
Solution
‎01-29-2015 11:49 AM
SAS Super FREQ
Posts: 8,721

Re: CSS for ODS .class and #


Hi:

  Have a look at this paper. I believe you have to use either the ID= values or the CLASS= values that SAS uses by default. http://support.sas.com/resources/papers/proceedings13/365-2013.pdf for more thorough help, you might want to work with Tech Support. You don't show your destination of interest and CSS interpretation might differ based on the destination. There are a couple of different ways to do alternate row coloring and I believe there are Tech Support notes on them, too.

cynthia

Frequent Contributor
Posts: 133

Re: CSS for ODS .class and #

Thanks Cynthia!

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 446 views
  • 1 like
  • 2 in conversation