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

    how to do this effect by div+css

    I'm involved in a website. Most of it was used div+css, but only one effect that I can not do it by div+css just auto adapt height.

    what means, if I maximize the window, the menu will be on the top and have a space between menu and pictures.

    If I reduce the window or smaller the window, the space will disappear and menu still on the top, the structure is complete anway.

    I did it by table. so I wanna know whether can do it by div+css. Thank you very much.

    Here is website:

    Last edited by dxcqcv; 11-11-2011 at 08:15 AM.

  2. #2
    Senior Coder
    Join Date
    Aug 2010
    High Point, NC
    Thanked 363 Times in 360 Posts
    If I understand you correctly, you can just add a margin-top to your table....

    margin-top: 100px; seems to work fine.

    I would like to point out why tables for layouts are bad. So really you didn't use a div based layout.

    Anyway, hope this helps.


Posting Permissions

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