Jump to content

webdevpro

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Posts posted by webdevpro

  1. Hey, just tested out the code I presented in Firefox 4.  Didn't quite work. Required setting margin and padding to 0 for both left and right class as below.  Seems to work.

     

     

     

     

     

     

     

    .left {
    margin: 0;
    padding: 0;
    float: left;
    width: 50%;
    text-align: left;
    font-family:Arial, Helvetica, sans-serif;
    font-size:16px;
    font-weight:bold;
    color:#2858A6;
    padding-bottom:5px;
    border-bottom:1px dotted #DDDDDD;
    }
    .right
    {
    margin: 0;
    padding: 0;
    float: right;
    width: 50%;
    text-align: right;
    font-family:Arial, Helvetica, sans-serif;
    font-size:16px;
    font-weight:bold;
    color:red;
    padding-bottom:5px;
    border-bottom:1px dotted #DDDDDD;
    }
    
    //////then your html
    
    <h2 class="left">text on the left</h2>
    <h2 class="right">text on the right</h2>
    
    

     

  2.  

     

     

     

     

    .left {
    float: left;
    width: 50%;
    text-align: left;
    font-family:Arial, Helvetica, sans-serif;
    font-size:16px;
    font-weight:bold;
    color:#2858A6;
    padding-bottom:5px;
    border-bottom:1px dotted #DDDDDD;
    }
    .right
    {
    float: right;
    width: 50%;
    text-align: right;
    font-family:Arial, Helvetica, sans-serif;
    font-size:16px;
    font-weight:bold;
    color:red;
    padding-bottom:5px;
    border-bottom:1px dotted #DDDDDD;
    }
    
    //////then your html
    
    <h2 class="left">text on the left</h2>
    <h2 class="right">text on the right</h2>
    
    

     

    Maybe the code above would work for you.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.