Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: css for a component

  1. #1

    Default css for a component

    Hi
    I need to apply css code to a button component.

    button {
    width: 200px;
    height: 40px;
    color: #CCC;
    background-color: #CCC;
    }

    width and height works but not the colors, why?
    Is it possible to assing an id or a class to a component?
    I can refer to it with the name but exist some problems (http://stackoverflow.com/questions/5...n-element-name)

  2. #2
    Join Date
    Nov 2011
    Posts
    1,229

    Default

    you can assign a css class to the div containing the component. then you can use css rules like

    .<name of div class> button {

    }

    meaning all buttons inside elements with that class name. Not sure about the colors - use firebug or development tools to check what rules are really being applied to your element.
    Pedro Vale
    --
    CTools Product Development
    http://www.webdetails.pt

  3. #3

    Default

    Thanks =)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.