views:

310

answers:

6
   is ugly, I think.
+5  A: 

Margin and/or Padding. (css properties), like so:

<p style='padding-left : 10px'>Hello</p>

(It's worth noting that it's generally considered bad-practice to put an inline style like that; you typically declare a selector in an external css file and set the class/whatever appropriately.)

Noon Silk
+1  A: 

You should use margin or padding properties with your elements to adjust whitespace.

kgiannakakis
+1  A: 

How about the letter-spacing and/or word-spacing CSS properties?

Pekka
+2  A: 

In CSS try:

white-space:nowrap;
graphicdivine
+1  A: 

In CSS, Add

pre{
  white-space: pre-wrap;
  white-space: -moz-pre-wrap !important;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
}
<pre>
    is not ugly anymore
</pre>
S.Mark
+1  A: 

&#160; is alternative but it's also ugly

Beautiful solution is available in css.

If u need space at start of paragraph the u can use

p {text-indent: 10px; }

If u need spacing between word use like this

H2 { word-spacing: 3pt }

see here for more options http://www.hypergurl.com/csstutorial7.html

You can give these style to html by inline, external and from in-page(<head>....</head>)

metal-gear-solid