Jump to content

Recommended Posts

Posted

This really shows my ignorance - but what is the best way to make my text line up properly. I have a simple 'contact us' page with the address to the left in one div floated and the email and website details in another div floated to the right side of the page (well actually I may have them both floated left but with a margin set) Anyway this seems effective except lining up the text correctly with in the divs. Indenting just the 4 lower lines but keeping them nicely lining up with 'name of company' bit above. I'd be grateful for ideas on the best way to do this - I'm sure I shouldn't be using all those spaces which don't work perfectly anyway.

 

 

 

<p><strong>Post: </strong>name of company<br />

        address line 1<br />

        address line 2<br />

        address line 3<br />

        postcode </p>

 

many many thanks

Judy

Posted

Better yet, use unordered list.

 

<p>Name of Company</p>

<ul>

<li>Address Line 1</li>

<li>Address Line 1</li>

<li>Address Line 1</li>

</ul>

 

Use some css to remove the bullets, adjust the paddings/margins, etc.

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...