Forum Moderators: not2easy

Message Too Old, No Replies

Filling div with link and span inside link..

         

pilophae

12:32 pm on Feb 28, 2004 (gmt 0)



<DIV STYLE="margin: 2px 5px 2px 5px; clear: both">
<A HREF="index.php?page=userinfo.php" STYLE="display: block; float: left; width: 100%">
linktext
<SPAN CLASS="color" STYLE="text-align: right; top: 0px">
another text
</SPAN>
</A>
</DIV>

With this I would like a field to act as a link with just CSS and have two separate texts within, in each end. I made it work with tables and JavaScript, but I found no useful solution in 1.0.

Any suggestions?

BlobFisk

11:38 am on Mar 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, pilophae!

I'm not quite sure what you are trying to achieve here... Do you want both pieces of text to link to the same place?

If so, use float:right instead:


<span class="color" style="float:right">

HTH