TeddyKiller Posted March 2, 2010 Share Posted March 2, 2010 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? Quote Link to comment https://forums.phpfreaks.com/topic/193935-blocks-are-displaying-on-different-rows/ Share on other sites More sharing options...
ferdi Posted March 2, 2010 Share Posted March 2, 2010 Well, it might be a width error. I'd try setting a width to the div container, or alternatively you could embed those link in a table. Quote Link to comment https://forums.phpfreaks.com/topic/193935-blocks-are-displaying-on-different-rows/#findComment-1020595 Share on other sites More sharing options...
isedeasy Posted March 2, 2010 Share Posted March 2, 2010 Your best of using an unordered list for your navigation. Lots of examples can be found here. Quote Link to comment https://forums.phpfreaks.com/topic/193935-blocks-are-displaying-on-different-rows/#findComment-1020620 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.