Jump to content

blocks are displaying on different rows


TeddyKiller

Recommended Posts

I have this..

          <a class="menu-root" href="##" style="display:none;">Toggle Menu</a>
      
               <div id="menu">
               <a href="##">Here is a menu item</a>
               <a href="##">Here is a menu item</a>
               <a href="##">Here is a menu item</a>
               <a href="##">Here is a menu item</a>
               <a href="##">Here is a menu item</a>
               <a href="##">Here is a menu item</a>
               </div>
  
          <a class="menu-root" href="/">Login</a> 
          <a class="menu-root" href="?action=register" style="margin-left:10px;">Register</a>

 

With the css of..

.menu-root {
    background-color: #E8E8E8 ;
    border: 1px solid #D0D0D0 ;
    color: #000000 ;
    display: block ;
    height: 22px ;
    line-height: 22px ;
    text-align: center ;
    text-decoration: none ;
    width: 105px ;
}   

 

All the blocks/a links end up underneath each other.

How can this be prevented?

Link to comment
https://forums.phpfreaks.com/topic/193935-blocks-are-displaying-on-different-rows/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.