facebook

formatting html in a html container: CLOSED

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #331328 Reply

    walt
    Member

    I am trying to apply css formatting to a table in an html container that is being generated dynamically.

    The container is called: #m1-BIP-html1

    
    <table border="1">
    <tr>
    <th>Header 1</th>
    <th>Header 2</th>
    </tr>
    <tr>
    <td>row 1, cell 1</td>
    <td>row 1, cell 2</td>
    </tr>
    <tr>
    <td>row 2, cell 1</td>
    <td>row 2, cell 2</td>
    </tr>
    </table>
    

    here are my unsuccessful attempts at applying the style with css:

     
    #m1-BIP-html1-table{
         font-size: 16px;
         text-align:center;
         vertical-align:middle;
    } 
    #m1-BIP-html1-td{
         font-size: 16px;
         text-align:center;
         vertical-align:middle;
    } 
    #m1-BIP-html1.table{
         font-size: 16px;
         text-align:center;
         vertical-align:middle;
    } 
    #m1-BIP-html1.td{
         font-size: 16px;
         text-align:center;
         vertical-align:middle;
    }
    

    Obviously I dont have the css sntax right…any suggestions?
    thanks!

    #331353 Reply

    Hi walt,

    At first view I can’t see what is the issue. How are you applying the styles?

    #331378 Reply

    walt
    Member

    octavio thanks for the response.

    I dont do a lot of work with CSS and, for some reason, I was thinking mobione was auto-generating an id for my custom html (like it does for other widgets) which I needed to figure out. After reading your response, I realized I could just add my own ids to the table elements which which to apply the CSS. The CSS formatting is showing up just fine now.

    sorry for the dumb question and thanks for the help

    #331390 Reply

    Hi walt,

    Thanks for inform us that is fixed now.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: formatting html in a html container: CLOSED

You must be logged in to post in the forum log in