Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Apr 2011
    Posts
    4
    Member #
    27488
    I would like to achieve this:

    hyperlink text 1 ______|______ hyperlink text 2______|______hyperlink text 3______|______etc

    (please assume the underscores are simply spaces!)
    I've been trying to use the word-spacing tag, but whatever I do, it doesn't seem to work in both IE and FF.

    HTML
    <a href="link1.html">LINK1</a>
    <font class="space"> | </font>
    <a href="link2.html">LINK2</a>
    <font class="space"> | </font>
    <a href="link3.html">LINK3</a>
    <font class="space"> | </font>

    CSS
    font.space { word-spacing:22px }

    The problem is that the first space between the 'font' tags doesn't register. Any ideas on a better way to approach this? Thanks!

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    One thought would be to use &nbsp; ...

    <a href="link1.html">LINK1</a> &nbsp; | &nbsp; <a href="link2.html">LINK2</a>


  4. #3
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    #menu a {margin: 0 5em;}

    This will put 5em of white space on either side of your menu links without the need for the &nbsp; . Now...I applied this to any a tags in the #menu id only because you won't want to apply this to everything. But when used properly, it will work.
    Jazzy78910 likes this.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  5. #4
    Junior Member
    Join Date
    Apr 2011
    Posts
    4
    Member #
    27488
    Thank you, Thank you, Thank you!

    This is one small problem I've been putting aside since the beginning, but the 'em' spacing was recognised by both IE and FF and functions as intended.

    I tried the &nbsp; method earlier, but the initial space before the '|' is not recognised.

    I'm off now to research how 'em' differs from pixels and points

  6. #5
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    em is relative. Pixels and points are absolute.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:06 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com