|
Posted by Jonathan N. Little on 09/07/06 13:05
freesoft_2000 wrote:
> Hi everyone,
>
> Does anyone know the the html tag for spacings via the space
> bar on the keyboard just like the <br></br> is to break a line.
Depends on that you are trying to do, if it is just to separate to
groups of letter just insert whitespace no element:
ABCD EFGH
If you just want to adjust the space around elements, 'padding' and
'margin' properties, for the word ans letters within 'letter-spacing'
and 'word-spacing'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Word Play</title>
<style type="text/css">
..lonely { margin-left: 10em; margin-right: 10em; }
..spacey { word-spacing: 2em }
..stretched { letter-spacing: 2em; }
</style>
</head>
<body>
<p>Here is a single word that is very <span class="lonely">lonely</span>
in its paragraph.</p>
<p class="spacey">Whereas these words do not like their neighbors!</p>
<p class="stretched">And here all have been put through the wringer!</p>
</body>
</html>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|