6 replies [Last post]
gautamz07
gautamz07's picture
Offline
Enthusiast
Last seen: 5 years 5 weeks ago
Timezone: GMT+5.5
Joined: 2014-04-24
Posts: 265
Points: 403

is this the best way i can have everything on a separate line ... grrrrrrrrrrrrrr Sad :(

            PurpleFront Technologies,
            121 West Parallel Road, Karthik Nagar<br>,
            Doddanakundi, Near Marathahalli,<br> 
            Bangalore 560037<br>

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 6 years 41 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

No, you could use DL lists,

No, you could use DL lists, or spans within a div (two non semantic elements) or use the 'address' element which appears to still survive in the html5 drafts so may make it through to eventual CR in 2030 or whenever they release it formally, but hey we'reall writing docs using html5 and these sorts of elements so that will probably mean they can't remove even if they wanted to Smile
http://html5doctor.com/the-address-element/

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 33 weeks 4 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

Were it me...

I'd use the pre element and set font to :inherit.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

gautamz07
gautamz07's picture
Offline
Enthusiast
Last seen: 5 years 5 weeks ago
Timezone: GMT+5.5
Joined: 2014-04-24
Posts: 265
Points: 403

TY Both

@hugo thanks very much , i will certainly Try ur Example .

@gary , can you give me a tiny small example plsss ! Smile

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 33 weeks 4 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

<p> <pre>PurpleFront

<p>
  <pre>PurpleFront Technologies,
            121 West Parallel Road, Karthik Nagar,
            Doddanakundi, Near Marathahalli,
            Bangalore 560037</pre>
</p>
===============
pre {
  font: inherit;
  }

See also my article on verse and poetry in the html page.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 6 years 41 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

@Gary dragging up old posts!

@Gary dragging up old posts! Smile funny remember that and topic discussion like it were 5 years ago, but must have been at least six.

On a final note we ought not to forget the hcard/vcard microformats approach, doesn't necessarily use a nice markup approach in it's use of spans and classes in most examples but is worth considering.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 33 weeks 4 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

Not six yet

Article doesn't turn six 'til next month.

g

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.