How to give line-break from css, without using

Tags: html,css,css3

Problem :


How are you


<p>hello <br /> How are you </p>

How to achieve same output without <br />?

Solution :

Impossible with the same HTML structure, you must have something to distinguish between Hello and How are you.

I suggest using spans that you will then display as blocks (just like a <div> actually).


<p><span>hello</span><span>How are you</span></p>


p span 
    display: block;

    CSS Howto..

    How to avoid WebKit contentEditable copy-paste resulting in unwanted CSS?

    Attempting to show logo using 'content' from CSS

    How to convert this CSS animation to use GPU level, instead of updating layer tree

    How to increase the width of my template? [closed]

    How to fix transparent div child in parent?

    How can I give each
  • its own bullet image?
  • How to adjust responsive behaviour of menu bar's elements

    How to remove empty space in thumbnail grid

    How to properly display content when I resize the window?

    How to Detect css by iPhone/iPad

    How to display inline with rails?

    css - How to remove padding next to adjacent links?

    how to combine the css selector using “:not”

    HTML/CSS: how to expand a table row i only one direction?

    How to use getElementId on and ID's Element

    CSS- How'd they do that without Absolute Positioning and Z-index?

    how to diplay two html elements seemlessly

    fa-star () is always yellow, how to make it white?

    How to select the by CSS?

    How to make an element stretch to the same height as its container?

    How to make submenus drop down below parent menu, instead of flying out?

    how to align first li left and second li center in the ul element

    How to fill the anchor element's height to 100% in html?

    How can i get List items to stay together using CSS?

    Show/Hide tr elements based on multiple CSS classes and input from multiple checkboxes

    How to override height

    How to change asp:DropDownList extended background color ? CSS class

    How can I add a consistent left margin to a checkbox label?

    CSS, how to size an img back to its width attribute

    Background hover showing in CSS