- Alternatives for spacing text ?
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 ; )
div align="center"><A HREF="javascript:javascript:history.go(-1)">Previous</A> <A HREF = "javascript:history.forward()">Next</A>
</div>
pr0gr4mm3r posted this at 20:54 — 12th November 2008.
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 posted this at 21:23 — 12th November 2008.
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.
Megan
Connect with us on Facebook!
Kim01 posted this at 22:24 — 12th November 2008.
They have: 15 posts
Joined: Nov 2008
Ah thank you guys .....
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.