Results 1 to 5 of 5

Thread: 'space' in javascript menu

  1. #1
    Join Date
    Aug 2005
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default 'space' in javascript menu

    I'm using a javascript menu and don't know how to add a 'space' after the menu title:

    Code:
    Menu1=new Array("Home Page","http://whatever","images/whatever.jpg",0,30,170);
    After the titled "Home Page" (which is the button name) I need to add a space as it's too close to the edge of the button graphic. I've tried &nbsp and %20 as these are the only ones I know. Can anyone tell me how to do this, is there a symbol I can use?

    Thanks
    Last edited by Mozie; 06-25-2007 at 01:13 PM.

  2. #2
    Join Date
    Jan 2007
    Location
    Bournemouth, England
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    erm...

    Code:
     
    Is the only one I know, did you forget the semi-colon?

    The only other way I can think of is a spacer graphic, not the best solution I know but it should work. You can just make a 1x1px transparent graphic and just stretch it (<img src="blah" width="whatever">)

  3. #3
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    Or you could give the button graphic a class and in the css, give that class a left margin of say, 10px or so. Play around with it.
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You could also try:

    \xa0
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Aug 2005
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Thumbs up

    Quote Originally Posted by jscheuer1 View Post
    You could also try:

    \xa0
    Brilliant, \xa0 works Thanks John And everyone else for input

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •