anandgp Posted February 20, 2015 Share Posted February 20, 2015 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 Link to comment Share on other sites More sharing options...
anandgp Posted February 20, 2015 Author Share Posted February 20, 2015 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 Link to comment Share on other sites More sharing options...
davej Posted February 20, 2015 Share Posted February 20, 2015 You normally don't want to mix the styling into the html. Also what you're creating looks like a table, so you might want to use a table... http://www.w3schools.com/html/html_tables.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now