html - Display inline content on separate lines -



html - Display inline content on separate lines -

i have simple block content:

<div> <img src="/img/sample.png" alt="sample image"> <span class="colored-text">company name</span> <em>address</em> </div>

i want 'company name' , 'address' on separate lines.

and have several options available:

make additional <div>s, add together <br/> tag between <span> , <em> tags , maybe other solutions. proper way add together such functionality?

you should semantically makes sense. in general, div tags meant represent kind of partition in page. if listing address doesn't create sense this. utilize <br /> @ end of line adds line break without making kind of semantic statement content.

html css

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -