[SOLVED] <a> links on same line with 'floating' (not &nbsp; ) space between ?
akm Offline
Member
***
Posts: 115
Joined: Nov 2011
Post: #1
Question [SOLVED] <a> links on same line with 'floating' (not &nbsp; ) space between ?
Trying to put a couple text/object links on page at opposite sides of the page and on the same line (per code below).

&nbsp; sort-of works, but wraps text/objects prematurely when page window is made smaller.

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<div>  
<style="float: left; text-align: left;">
<a href="{$mybb->settings['bburl']}/search.php">
<img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="">
{$lang->toplinks_search}
</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;
&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;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<style="float: right; text-align: left;">
<a href="http://www.forum.info/index.htm"> 
<font size="4;" color="#0066CC"> Go to Location (click here)</font>
</a>
</div>



Tried looking at places like http://www.w3schools.com/tags/ etc, but seems like there is not a good spacer tag that does what need.

Suggestions on place/s to look ?

Also, any other comments on way trying (ie code crudeness) to do it would be appreciated.

Ps: Sorry for all the beginner mod questions. If not wanted, please let know better place to post.


Thanks again for your help !
(This post was last modified: 03-28-2012 06:16 AM by akm.)
02-20-2012 11:12 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
[SOLVED] <a> links on same line with 'floating' (not &nbsp; ) space between ? - akm - 02-20-2012 11:12 AM

 Standard Tools
Forum Jump: