Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Top margain / footer css advice

  1. #1
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default Top margain / footer css advice

    Each page on my site has the same layout look in respect to top of the page / footer page and then there is the content in between.
    My home page on the other hand has a different setup & i would like to edit/alter something so when flicking from page to page there is no jumping on the home page.

    Go to this page http://www.theremotedoctor.co.uk/karaudi.html#topnav then whilst on the page select HOME PAGE,you will see that the Home page nudged up.

    This is the same for each page visited then selecting the Home page.
    I am not sure how to go about correcting this.

    I would also like to bring the bottom up a touch on the Home page to align like the pages.
    I am not sure how to tackle this either but if the body section needs to be made a little shallower to achieve this then that is not a problem.

    If you could advise how to go about this & where i need to make the edits then that will be great.
    Maybe a minor/trivial request but i would like it to all be uniform.

    Thanks again.
    Last edited by theremotedr; 05-04-2015 at 09:22 AM.

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Every page chosen by the visitor as a starting point for taking a walk on your site has one and the same issue: there's a slight scrolldown at the beginning. This a probably caused by some line in your js, but it might be a css-thing.
    So I would advise you to check all your js- and css-lines to see if there's any line causing the scroll.

  3. #3
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    For a quick fix, put this at the very end of your page(s):
    Code:
    <script>
    $('*').scrollTop(0);
    </script>

  4. #4
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Hi
    Would this need to just go on the home page ?

  5. #5
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    That depends on how your site is organized, codewise speaking. Put it on one or two pages first, and see what happens.

  6. The Following User Says Thank You to molendijk For This Useful Post:

    theremotedr (05-20-2015)

  7. #6
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Ok
    Do I then alter the (0) value to get the desired scroll to place, I mean I can alter this so the top of the page then is in a similar position to my other pages ?

  8. #7
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

  9. The Following User Says Thank You to molendijk For This Useful Post:

    theremotedr (05-20-2015)

  10. #8
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Hi,
    That made no change at all.

  11. #9
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    I looked at the sources of your pages, and the script isn't there. So it can't work. Where did you put it?

  12. #10
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    I put the script at the bottom of the basic page http://www.theremotedoctor.co.uk/basic.html
    As it did not work i took it off.

    I have now put it on again so you can check it etc.

Similar Threads

  1. Need some advice or help.
    By VsUK in forum JavaScript
    Replies: 1
    Last Post: 06-05-2010, 05:17 PM
  2. I need an advice
    By Beesquetike in forum ASP
    Replies: 0
    Last Post: 04-02-2009, 10:24 PM
  3. i need some serious advice!
    By stoneymontana in forum ASP
    Replies: 1
    Last Post: 04-01-2008, 04:13 AM
  4. advice please
    By Foundas in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 11-30-2007, 08:01 AM
  5. Need an advice!
    By biochimistu in forum JavaScript
    Replies: 1
    Last Post: 05-22-2007, 08:39 PM

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
  •