Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to allow spaces before text in IE AND NS

Status
Not open for further replies.

LEICJDN1

Technical User
Nov 27, 2002
201
GB
Hi there,

Am slowly getting to grips with CSS. On my page I have set two layouts to put a link at the bottom left and bottom right of my main content area, which will be the next and back links. Each fills 50% of the content width, so there is a solid bar of colour at the bottom of the content area which the links sit in.

But, the left link is aligned-left, and the right link to the right, consequently the link words butt right up against the border.

I thought I could just put " back" instead of "back" as the link text, so the space pushes the text in a little, and the background colour block still continues up to the border, and similarly "next " rather than "next" on the right..

It seemed to work in NS 7 but not IE 6.02. Changed the white space variable but cannot get it to work.

Have also tried putting "&#32back" but no joy.

Anyone have any suggestions? What am I missing here?

If seeing my code will help then I can post here (webpage is not uploaded yet)

Thanks!
 
Have you tried putting (ampersand)nbsp; to the outside of the A HREF? That's the HTML code for a space. (Note it kept parsing the ampersand, replace the word with the symbol for Shift-7 on the keyboard and remove the ().
 
Thanks, perfect. Actually, re-reading my post I hadn't noticed it had parsed the ampersand I used, as my line hsould have read - also tried "ampersand#32back" which i thought was html code for space.

Still, i think the key was to put it the other side of the <a> tag, so thanks very much!!
 
BHaines,

To get &amp;nbsp; to show on this forum you need to type &amp;amp;nbsp;

Do not preview the code though, otherwise it looks ok in the preview but messes up when you post it.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top