Jump to content

anandgp

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by anandgp

  1. Hi,

     

    I am not able to understand the difference between a class and an id. Both of them define property and it's value.

     

     

    .container {
    min-width: 900px;
    }
    #top {
    background-color: #84c754;
    color: #ffffff;
    padding: 15px;
    }
    --------------------------------------
    <div class="container">
    <div id="top">
    <h1>Welcome to My Homepage</h1>
    </div>
    </div>

    Regards,

    -Anand

     

     

  2. I could do this -

     

    <h1 style="text-align:center;font-size:160%">MY COMPANY</h1>
    <hr>
    <p>Bill No.:<b>00012</b> <span style="margin-left:180px;">Date:<b>20-Feb-15</b></span></p>
    <p>Customer:<span style="margin-left:25px;"><b>ABC Shipping Co.</b></span></p>
    <p style="margin-left:90px;"><b>Street No. 5,</b></p>
    <p style="margin-left:90px;"><b>IND.</b></p>
    (Ignore item description part).
    Is this right way or there is any better way to do this?
    Regards,
    -Anand
  3. Hi,

     

    How can I put some empty space in between the text while showing the output?

    For example, in the below example I need to show extra space between Bill no and Date.

     

    <p>Bill No.:<b>00012</b> <span>Date:<b>20-Feb-15</b></span></p>

     

    I am expecting output like -

     

    Bill No.: 00012 Date: 20-Feb-15

     

    Now it shows like -

     

    Bill No.: 00012 Date: 20-Feb-15

     

    Thanks,

    -Anand

  4. Hi,

    Can somebody help me with sample code in HTML / CSS for below format. Many thanks.

     

    MY COMPANY

    -----------------------------------------------------------------------------

    Bill No.: 1234 Bill Date: 20-Feb-2015

    Customer: ABC Shipping Co.

    Street No. 5,

    IND.

    -----------------------------------------------------------------------------

    Item Description Qty. Rate Amount

    -----------------------------------------------------------------------------

    Pen 2 15.00 30.00

     

     

    -----------------------------------------------------------------------------

    Total: 30.00

    -----------------------------------------------------------------------------

     

    Assume all above info is a static text. I just need to understand how to format them.

     

    Thanks,

    -Anand

     

     

×
×
  • Create New...