- Alternatives for spacing text ?

They have: 15 posts

Joined: Nov 2008

Hello all ....
Is there any way to space text within a div tag without using a billion   tags to do this.
Thanks in advance.

Example of code:(with a billion ;&nbsp)

div align="center"><A HREF="javascript:javascript:history.go(-1)">Previous</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF = "javascript:history.forward()">Next</A>
    </div>

pr0gr4mm3r's picture

He has: 1,502 posts

Joined: Sep 2006

If you want to space something apart, it's better to give it a margin or some padding instead.

If you put the text in pre tags to preserve whitespace.

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

I would do that something like this:

<ul class="pagenav">
  <li class="previous">Previous</li>
  <li class="next">Next</li>
</ul>

With the CSS:

ul.pagenav {
list-style: none;
margin: 0;
padding: 0;
overflow: hidden;
}

.previous {
float: left;
}

.next {
float: right;
}

You're really aligning those to the left/right, not putting space between them.

They have: 15 posts

Joined: Nov 2008

Ah thank you guys ..... Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.