Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Sep 2011
    Posts
    25
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Problem with moved divs

    Hello,

    I had a question about div position. On a testing website i'm trying to create a banner/slideshow that's only visible on the frontpage, where the content is moved down. Now if you press on a different page the content is moving all the way up but it should stay in the wide area. For the website:

    www.rrdesign.nl/testing/

    Hope anyone could help me,
    regards,

    Rein
    Last edited by rrdesign; 04-04-2012 at 03:52 PM. Reason: Solved

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,672
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello rrdesign,
    It's your #banner and it's huge negative top margin that are messing you up.

    It might be easiest to remove <div id="banner"></div> on the pages it's empty.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New Coder
    Join Date
    Sep 2011
    Posts
    25
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Hi Excavator,
    thanks for your reply, but the banner div is not empty. inside there will be a slideshow. I if remove the minus margin the banner div will just be beneath the blue border. And the thing i want is that is overlapping the blue and going into the grey.

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,672
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by rrdesign View Post
    Hi Excavator,
    thanks for your reply, but the banner div is not empty. inside there will be a slideshow. I if remove the minus margin the banner div will just be beneath the blue border. And the thing i want is that is overlapping the blue and going into the grey.
    You would not leave your slideshow in #banner on the pages you are hiding #banner. That would just eat up bandwidth unnecessarily.

    see [dead link].
    Last edited by Excavator; 04-05-2012 at 02:44 AM.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    rrdesign (04-04-2012)

  • #5
    New Coder
    Join Date
    Sep 2011
    Posts
    25
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Thanks, i fixed it. I left the banner div but instead of giving the banner div a negative margin i gave the div that's created inside of it the negative. Thanks for the help!


  •  

    Posting Permissions

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