473,387 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How do I align a link?

I want to align "next" and "prev" links right and left. How do I do
this? Span or what?

Thanks. Soory to be so clueless

Sep 17 '06 #1
5 63123
Baron Samedi wrote:
I want to align "next" and "prev" links right and left.
Stop wanting that.
How do I do this? Span or what?
You would do it using the align="..." attribute or using CSS, but the
details would depend on the context, which you don't reveal at all (hint:
URL). And you should just stop wanting that.

Actually, there is seldom need for a "prev" link at all. Formal symmetry is
just confusing here. If you have (logically) a list of pages that might
typically be read in a particular sequence, "next" and "top" links are
sufficient. (Anyone who starts reading the pages in succession can use the
Back button to get back when needed. Anyone who just stumbles across a
particular page, e.g. via a search engine, will more probably want to see
the "top", i.e. the index or table of content, rather than the previous
page.)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Sep 17 '06 #2
On 2006-09-17, Baron Samedi <Pa************@gmail.comwrote:
I want to align "next" and "prev" links right and left. How do I do
this? Span or what?
You can just float the links:

<a style="float: left" ... >prev</a>
<a style="float: right" ... >next</a>
Sep 17 '06 #3
Ben C wrote:
On 2006-09-17, Baron Samedi <Pa************@gmail.comwrote:
>I want to align "next" and "prev" links right and left. How do I do
this? Span or what?

You can just float the links:

<a style="float: left" ... >prev</a>
<a style="float: right" ... >next</a>
Floating is different from alignment. Casually they might produce the same
visual effect, but generally they don't. Did you even test what happens to
the content after the floated links?

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Sep 17 '06 #4
On 2006-09-17, Jukka K. Korpela <jk******@cs.tut.fiwrote:
Ben C wrote:
>On 2006-09-17, Baron Samedi <Pa************@gmail.comwrote:
>>I want to align "next" and "prev" links right and left. How do I do
this? Span or what?

You can just float the links:

<a style="float: left" ... >prev</a>
<a style="float: right" ... >next</a>

Floating is different from alignment.
Of course, but for aligning "prev" and "next" links I would have thought
floats were probably more useful than text-align.

But I'm interested to see your solution.
Sep 17 '06 #5
Sun, 17 Sep 2006 14:26:30 +0300 from Jukka K. Korpela
<jk******@cs.tut.fi>:
Baron Samedi wrote:
I want to align "next" and "prev" links right and left.

Stop wanting that.
Forevermore, why? It seems a perfectly reasonable request. And it's
easy enough to do in CSS.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Sep 17 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

36
by: Peter Brause | last post by:
Hello, my stylesheet shows different colors for visited, active and hovered links. It works fine in IE 6, but in Opera 7 the color for the active link (red background) is never shown. How to...
8
by: David | last post by:
This is something I had never seen before. On an aspx page, upon pressing a link button for which I have an event handler in the code behind, the screen shows nothing but a line that says "true"...
4
by: Miguel Dias Moura | last post by:
Hello, I created a datalist in an ASP.Net / VB page. I display the image and price of a few products. When a user clicks an image I want to load the page "detail.aspx?number=id" and send the...
4
by: ben.dixon | last post by:
Hi, I'm using links for navigation on a test page, so each link will go to a question in the test e.g. Question 1, Question 2 etc. For each link i am using an Outer Border, Middle border and...
4
by: Paulson | last post by:
Hi all I got some problems with my xml/xsl.I'm working on asp.net(vb) These are my xml files. __________________________________________________________________ <Addresses> ...
3
by: sysguy | last post by:
Hello, I have a table with each <td> has four links in it. There are five cells(i.e <td>) like this and requirement is to align them horizontally on a tabbed panel menu bar. The issue is first...
27
by: GloStix | last post by:
WARNING VIDEO TAKES A WHILE TO LOAD http://screencast.com/t/BWQ6DNtsM I really don't know how to fix this other than putting another div. But I dont' exactly want to do that for every page....
40
by: maya | last post by:
hi, how do I get text to vertical-align inside a div? http://www.mayacove.com/misc/home.html vertical-align should work, according to this:...
3
by: Rana Chakra | last post by:
I am trying to send an automatic mail containing the account activation link to the person who is filling up the registration form after he/she clicks on Create account button. But every time it...
0
by: Sam Barnhart | last post by:
Trying to get in image on the php page to link back to itself with new images. Please Help!!! Im just stuck and going crazy. Here's my problem, keep in mind Im still learning. This is a site Im...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.