Jump to content

How to align the texts


Recommended Posts



I have list of fields. I would like to display all the labels and all the field items aligned straight. I like to give good padding between labels (left side) and items (right side). Can you please help?

     <div = "article">
    <div class="field ">
    <div class="field-label">Stock Number: </div>
    <div class="field-items"> 	<div class="field-item even">013892</div></div>

    <div class="field field-name-field-vin ">
   <div class="field-label">VIN: </div>
   <div class="field-items"><div class="field-item even">19VDE1F71DE013892</div></div>

   <div class="field field-name-field-miles">
   <div class="field-label">Miles: </div>
   <div class="field-items"><div class="field-item even">28,000</div></div>

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...