How to alternate background colour in table rows

Hi,
I have been trying to work out how to alternate the background colour for each row so that it made reading easier for people receiving the documents. Does anyone have any suggestions how this could be done?
Thanks,
Mark

Please use the following code in the beginning of the loop:
<?if@row:position() mod 2=0?>
<xsl:attribute
name="background-color"
xdofo:ctx="incontext">lightgray
</xsl:attribute>
<?end if?>
Thanks
Bharat
[email protected]

Similar Messages

  • How to change Background Colour in IC Web Client !

    Hi,
    How to change Background Colour in IC Web Client ?
    The desired option is to have a choice of colours based on user. Is it possible?
    Regards.

    Hi,
    May I know if this is the right place to post questions on IC Web Client?
    So far I have not succeeded in getting responses to any of my questions.
    Is there any other forum where i can post questions related to this topic.
    Regards.

  • How to find the average of table row values it should display in next row in libwindow/​CVI

    Hi,
    How to find the average of table row values it should display in next row in libwindow/CVI
    Please let me know the solution.

    There isn't a built-in function to perform calculations on thable cells. What you can do is to retrieve thable cells values and calculate the average by yourself.
    To retrieve a bunch of cells in a single instruction you can use GetTableCellRangeVals: prerequisite for this function to work correctly is that cells are all included in a Rect structure (shortly, a rectangle) and are all of the same data type. See the help for the function for some explanations and the link to an example of its usage. In Cell range parameter you can pass VAL_TABLE_ROW_RANGE (row) macro to retrieve an entire row. See here for details.
    Once you have retrieved cell values in an array, you can pass it to Mean function to calculate the average.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to control background color of table cell in an html report?

    I am using Labview 6.1 to generate a report.  In that report there is a table created using the Append Numeric Table to Report VI.  I want to be able to programmatically control the background color of each cell in the table.  Also, how can I programmatically control the background color of the row and header cells of the same table.  I am also generating a second table in the same report using the Append Text Table to Report VI and I would like to programmatically control the background colors of the cells in that table as well.  Thanks.

    Hi epsilon-d...,
    i´m not sure if there is an ready to use function to do what you want, but you can enlarge the available function. Open the "Append Numeric Table to Report.vi" and go to the HTML Case. There you can see another vi which creates the html table. In the VI "HTML Report Table Row" you can add the option: bgcolor="your color" inside of the "TR" tag.
    Hope it helps.
    Mike

  • How put a border round a table row?

    I have a simple table, and want to put a border round each row - for some reason nothing I do works.  I would also like a large space between rows than between the individual cells but again can't work out how to do it.
    Can anyone help?

    Just to close this thread, I'll show how I would do it -
    <style type="text/css">
    table {
         border-collapse:collapse;
    .row td, .row th {
         border:solid #000;
         border-width:1px;
    .row td+td {
         border-right:none;
         border-left:none;
    .row td.last {
         border-right:1px solid #000;
    .row>td {
    border-right:none;
    </style>
    </head>
    <body>
    <table>
         <tr class="row">
              <td>asdfg</td>
              <td>asdfg</td>
           <td>asdfg</td>
              <td class="last">asdfg</td>
         </tr>
    </table>
    </body>
    This is interesting because it illustrates the use of the adjacent siblings selector and the first descendent selector.  What's slick is if you know how many cells there are in the row, you could do it this way and bypass the creation of that extra class selector (td.last) -
    <style type="text/css">
    table {
         border-collapse:collapse;
    .row td, .row th {
         border:solid #000;
         border-width:1px;
    .row td+td {
         border-right:none;
         border-left:none;
    .row td+td+td+td {
         border-right:1px solid #000;
    .row>td {
    border-right:none;
    </style>
    </head>
    <body>
    <table>
         <tr class="row">
              <td>asdfg</td>
              <td>asdfg</td>
           <td>asdfg</td>
              <td class="last">asdfg</td>
         </tr>
    </table>
    </body>

  • How to insert background colour into text?

    Hi,
    I'm relatively new to Dreamweaver so I'm not sure how exactly to phrase this question. Within a div file on my HTML I have created I have a few links taking the user to another page. .
    For the sake of clarity I have inserted an image to express what I am trying to say.
    The background colour for my div is a chocolate brown. I was wondering if there was any way of creating a background for the text for each link within the div? So the text would have a background with a different colour?
    I'm trying to create something that looks like this:
    Does anyone know if this is possible to do? Do I have to create separate Div files within the main div file to do this?
    Apologies for the lack of detail, I just don't know the technical words to show what I'm looking to do! Any tips or links to tutorials would be hugely appreciated.
    Thanks for reading.

    First, we need to examine the HTML code used to construct your menu.  The modern approach is to use an unordered list like this:
    <nav>
         <ul>
              <li><a href="#">Menu Item1</a></li>
              <li><a href="#">Menu Item2 </a></li>
              <li><a href="#">Menu Item3</a></li>
              <li><a href="#">Menu Item4</a></li>
              <li><a href="#">Menu Item5</a></li>
         </ul>
    </nav>
    Then style your navigation with CSS like this:
    <style>
    /**zero out margins & padding on everything**/
    margin:0;
    padding:0;
    /**fix the CSS Box Model on % layouts**/
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    box-sizing:border-box;
    nav {
        width: 100%;  /**adjust width as needed**/
        background-color: #960;
        padding: 30px;
    nav ul {
        margin: 0;
        padding: 0
    nav li {
        width: 20%;
        list-style: none;
        font-size: 14px;
        float: left;
        text-align: center;
    /**menu links**/
    nav li a {
        display: block;
        text-decoration: none;
        margin-right: 6px;   /* space between links */
        width: auto;  /* adjust as needed or use auto */
        padding: 6px;
        font-weight: bold;
        line-height: 2em;
        color: #FFF;
        background: orange;
    /**menu style on mouse over**/
    nav li:hover {
        color: #FFF;
        background: #1e5799;
    /**clear floats after nav element**/
    nav:after {
        clear: both;
        display: block;
        content: ' ' ;
    /**END MENU STYLES**/
    </style>
    Nancy O.

  • How to remove background colours in photoshop?

    Hello everyone....I'm only just learning how to use the content-aware tool in photoshop cs5. This image had a picture of a girl in it, but I think I've been able to erase her using the content-aware tool, though you can still see a slight shadow. There is also a small area of red between the subject's chin and the top of his left arm. Can you please teach me how to erase the shadow as well as the small red area? I tried using the content-aware tool for that, but for some reason it didn't work. Thanks so much

    Hello there..Thanks for your help. I've tried doing it both ways and I've actually managed to do it - shock! - but I think it was a
    fluke because I can't do it again. The obstacle is how to change the background colour. I don't know quite how to do that. Could you please give me a step by step guide on what to do once i've selected the area with the lasoo tool? i know that i have to click on one of those two boxes at the bottom of the tools palette - set background or foreground colour - but i'm lost once the colour palette appears on the screen. thanks again!

  • How replace a background colour in Fireworks ??

    I know how to do this in Photoshop, but I only have Fireworks
    on this laptop
    to work with at the moment. I have an GIF image of a line
    drawing (made
    from a few different shades of grey), but the background is
    white. I want
    to change the background colour to the same colour as my
    webpage background.
    How do I replace the white with another colour?
    Cheers
    ss.

    Synapse Syndrome wrote:
    > I know how to do this in Photoshop, but I only have
    Fireworks on this laptop
    > to work with at the moment. I have an GIF image of a
    line drawing (made
    > from a few different shades of grey), but the background
    is white. I want
    > to change the background colour to the same colour as my
    webpage background.
    > How do I replace the white with another colour?
    Choose Filters (the live ones accessible via the Property
    inspector [+])
    and then Other. Select Convert to Alpha. Change the canvas
    color to
    whichever one you wish.
    Alternatively, select the background with the Magic wand tool
    and delete it.
    Linda Rathgeber [PVII] **Adobe Community Expert**
    http://www.projectseven.com
    Fireworks Newsgroup:
    news://forums.projectseven.com/fireworks/
    CSS Newsgroup: news://forums.projectseven.com/css/
    Design Aid Kits:
    http://www.webdevbiz.com/pwf/index.cfm

  • PSE9, how to change background colour?

    Hi
    I was shown how to change the background colour using....and this is where it all goes wrong!!
    I have taken a photo on a hi key background but there are slight colour variations due to shadow. I was shown how you can change the background colour to a consistent white using tool that allowed you to choose black,grey and white point but at this moment in time maybe a bit of bbq alcohol and age are preventing me from remembering how to do this....any ideas, please?
    Cheers

    Enhance<Adjust Color<Remove Color Cast
    Look at image and try to figure out what should be white, gray,or black. Click that area with the color cast dropper. Below is a video showing how to use the color cast tool.
    http://www.youtube.com/watch?v=Roinm3J3GjI&feature=player_embedded
    I think from your post that it is safe to assume that you used levels. Basically, you first click on something you know is white with the white dropper; then click on something you know is black with the black dropper; finally find something that is gray and click on it with the gray dropper. Note: You may want to go through and set target colors for the levels droppers to customize how they react. See the written tutorial links at the end of this post.
    Levels is covered at about 5:15 of video in video linked below. Note: It's a Photoshop video. It works the same way in Elements.
    http://www.youtube.com/watch?v=LLKc61tM5b4
    The above video gives several methods. It is a Photoshop video but several of these methods can be used in Elements. Elements has a color cast tool that is not included in Photoshop so isn't covered in this. Disregard Match Color method and Curves method as Elements does not include  these commands. (This tutorial also mentions using the fade command. Elements does not include this command. You can reduce the opacity of a duplicate layer on which you apply the variations command and use the layer's opacity to "fade" the result. If you go that route.)
    Several Photoshop Elements videos on the subject are here:
    http://www.youtube.com/results?search_query=color+cast++levels+Photoshop+Elements&aq=f
    Here are a couple of tutorial links if you don't like video:
    http://www.graphicreporter.com/tutorials/elements_levelsadjustment.html
    http://www.photoshopessentials.com/photo-editing/elements/tone-color/

  • How to change background colour?

    Hi
    I have an image with a statue and different background colours. I want to change the complete background colour around the statue in one colour for example white. I tried several times but it doesnt work. Do you have a suggestion?
    Thx
    Dom

    Hi Dom,
    You've asked about a technique that many beginner Photoshop users want to learn. The challenge is that this technique requires learning a few tools and skills before you start. I would recommend the following:
    1. Learn about how to make selections. Here is an image with the blue background selected. Here's a  video about making basic selections.
    2. Learn about layers and masks and how they work. Below is the same image with the blue background hidden. This video teaches the basics about the Layers panel.
    3. Create a new background layer to replace the old one. Below is the image with a new solid white background on the layer below the original statue layer.
    Once you've learned about selections and layers, try following the technique Russell Brown uses in the video below to create a simple selection of the current background and hide it by using a layer mask. Once the old background color is hidden by the layer mask, the layer beneath is revealed and it replaces the old background.
    Good luck with your project! I hope this helps.
    Luanne

  • How to get the index of table row without selection?

    Hi all,
    I have an table designed in XML view.Now i have added an change method for qty cell "valqty". When user inputs the qty in the cell and press enter this method is triggered now I want to know which index of the table is currently edited.Through which i can get the value of other cell in the same row.
    NOTE: The table row doesn't have selection either multiple or single
    I tried the following inside the valqty method but it now working
    this.getValue();
    this.getBindingContext().getProperty('PRD_NUM');
    <Table id="idProductsTable"
    inset="false"
    items="{oModel>/deliverylist}"
    visibleRowCount= "7"
    mode="MultiSelect"
    modeAnimationOn="true">
    <headerToolbar>
    <Toolbar>
    <Label text="Products"></Label>
    </Toolbar>
    </headerToolbar>
    <columns>
    <Column
    minScreenWidth="Tablet"
    demandPopin="true">
    <Text text="Order" />
    </Column>
    <Column
    minScreenWidth="Tablet"
    demandPopin="true">
    <Text text="Quantity" />
    </Column>
    </columns>
    <items>
    <ColumnListItem>
    <cells>
    <Text text="{oModel>PRD_NUM}" />
    <Input value="{oModel>DEL_QUAN}" change="valqty" maxLength="13"  />
    </cells>
    </ColumnListItem>
    </items>
    </Table>
    Thanks

    Thanks Robin,
    But in my case oEvent.getSource() is returning the cell instance and
    oEvent.getSource().getBindingContext() is undefined
    Hence not getting the value
    I also tried the following
    oEvent.getSource().getParent().getParent().indexOfItem()
    But index returned is -1

  • Can please tell me how to implement expand and collapse table row data?

    i am trying implement expand and collapse table row data but i do not get any ideas..can please any one help me its an urgent requirement

    Yes, we can.   
    I think the best place for you to start for this is the NI Developer Zone.  I recommend beginning with these tutorials I found by searching on "data log rio".  There were more than just these few that might be relevant to your project but I'll leave that for you to decide.
    NI Compact RIO Setup and Services ->  http://zone.ni.com/devzone/cda/tut/p/id/11394
    Getting Started with CompactRIO - Logging Data to Disk  ->  http://zone.ni.com/devzone/cda/tut/p/id/11198
    Getting Started with CompactRIO - Performing Basic Control ->  http://zone.ni.com/devzone/cda/tut/p/id/11197
    These will probably give you links to more topics/tutorials/examples that can help you design and implement your target system.
    Jason
    Wire Warrior
    Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!

  • How to Change background colour in the Arrange page

    I find the LPX arrange page is generally rather too dark, is there a way of changing the background colour? I am sure L9 had this facility but cannot find it on LPX.

    No, there (probably) isn't. You can only set the piano roll background lighter, but not the arrange background, unless this is mentioned somewhere in this thread about customizing the LP X color scheme:
    http://www.logicprohelp.com/forum/viewtopic.php?f=1&t=97685&sid=d50fde6f1437869b 65e9c718e5c38f62
    Note that this topic now has 18 pages though...

  • How to Change Background Colour in Q10?

    Is there a way to change background colours for Contacts and Calendar from dark to white in Q10?  Thanks.

    Good day
    Welcome to BB forums
    I don't know what you mean for contact color but here is the info for Calendar info you asked for! 
    Change the color for a calendar
    Each calendar that you add to your device is assigned a color to help you differentiate between events. You can customize the colors of your calendars to suit your taste.
    In the Calendar app, swipe down from the top of the screen.
    Tap  Settings > Calendar Colors.
    Tap a calendar.
    Tap a color.
    Want to contract me? You can follow me on Twitter @RobGambino
    Be sure to click Like! for those who have helped you.
    Click Accept as Solution for posts that have solved your issue(s)!

  • How to edit background colour of Revolution theme

    Would like to change the background colour of this theme. At moment it seems to offer only a dark one. In Inspector, images can be inserted under the background tab but no alternaives available for changing the colour of the area where the title appears. Any thoughts?

    Editing the Background Image in an iDVD Theme Template
    http://help.lafayette.edu/node/489
    Customizing iDVD Themes
    http://www.peachpit.com/articles/article.aspx?p=427227

Maybe you are looking for

  • HR-CRM integration-Downloaded employee is not appearing in CRM

    Hi Friends, I am trying to download HR employee master data from ECC to CRM. I have maintained all settings required for data flow. When I try to download few employee records manually using PFAL transaction (RHALEINI) system shows successful transfe

  • FCC in receiver file adapter

    Hi,    My scenario is proxy to flat file(FCC). The incoming structure has following format: Header1 Item1 Header2 Item1 Item2 Item3 Header3 Item1 Item2 Control Each Header can have multiple item fields. The last line is control record. So the structu

  • Web Gallery Creation - time

    I'm trying to create a web gallery from a small shoot using my Nikon D70s - 6MB NEF files. There are 94 images for my client to make their selections from, I'm only exporting medium quality files. The original estimated time was 27 minutes, but it's

  • Control indicators for controlling area BP01 do not exist

    Dear Experts/Gurus, I am getting the following error message "Control indicators for controlling area BP01 do not exist" while trying to upload employees HR Master data in PA40. Please let me know how to sort out this issue asap. Rgds, Vikrant

  • Wss_http_token_client_policy there isn't in Jdev

    Hi all, I want to set http authentication in Bpel process. How change user and password in weblogic? Thanks for your help. Regards, Dario Edited by: user6720363 on 21-mar-2011 12.33