[resolved] Problem with widget in sidebar (2 posts)

  1. zzuum
    Posted 1 year ago #

    I create my wordpress theme. I add one sidebar with widgets with

    <?php dynamic_sidebar( 'footer-5' );?> ..

    But when i 2 widget in it they are one over another.. and i want that they be one below the other.

    I have class for that widget. I think that can be fixed in css, but i need help. Can you tell me some idea how to do that.
    That is my class.
    If I change position they will be next to each other and i don't wnat that.

    .sidebarwdg {
          position: absolute;
          margin-left: 7%;
          width: 200px;

    Thank you.

  2. Roxee Cruz
    Posted 1 year ago #

    Without viewing your website, its kind of hard to tell what is causing the problem, but I think it might be the position: absolute line.

    Position absolute takes the element out of the normal flow of the page layout. Try removing it or using position: relative instead.

Topic Closed

This topic has been closed to new replies.

About this Topic