Forums

Give help. Get help.

  • # June 25, 2013 at 10:07 am

    Hello,

    I am working on a website and am relatively new to CSS, I am wondering if there is an alternative to margin-top when positioning divs.

    Right now I have everything where I want it to be, but if I move a div at the top, the divs below it also jump down or up, since I used margin-top.

    Any thoughts?

    # June 25, 2013 at 10:09 am

    We’d need to see the site.

    Are you adding the margin to a class or an ID?

    If you have “everything where I want it to be”, why are you moving divs?

    # June 25, 2013 at 10:16 am

    That’s WAAAAY too much code.

    Please put a **reduced** case in Codepen.io

    Or provide a link to a live site.

    # June 25, 2013 at 10:32 am

    I can tell you now…this…

    is a bad idea.

    # June 25, 2013 at 10:36 am

    Your menu structure is also wrong

    This

    `

    • Plastic Letters & Logos
    • Injection Molded
    • `

      Now, where are the margins that need changing?

    # June 25, 2013 at 10:59 am

    Whoa…those are some huge margins.

    It makes me think your HTML structure is marginal. You really shouldn’t need to do that.

    I think you need to look at alternative layout methods, specifically “floats”.

    http://learnlayout.com/

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag