SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2004
    Location
    UK
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    With Javascript disabled large gap appears in my navigation?

    Hi

    I have three JS dependent features on my site. To make these accessible to those viewing with JS disabled I have included alternative links via noscript tags. However when I view the site in Firefox with JS disabled there's a large, ugly gap between the last noscript tag and the images that follow.
    Can you please advise how to correct this?

    Also although Site works fine it is throwing up a JS(?) error on every page in IE "Oject Expected" relating to this:-
    showJumpMenu();
    Again any advice to correct please?

    Many thanks in anticipation.
    Andrew
    Last edited by Andre_Sam; Jul 6, 2006 at 13:45.

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Did you try setting the bottom padding and margin on your noscript block in the CSS.

    noscript {margin-bottom:0; padding-bottom:0;}
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2004
    Location
    UK
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi
    I tried your suggestion locally (@ work & can't access the online link until later) and unfortunately it doesn't work and large gap still exists :-(

    Also JS(?) error on every page in IE "Object Expected" as above.

  4. #4
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use Firefox's DOM Inspector to see what is causing the gap. Once you clicked on the element, you can easily see what css values it has and what is causing it.

    About the showJumpMenu error, I assume you mean that you get this error when you have JS enabled. Does the method exist? Try debugging it with Microsofts Script Debugger


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
  •