TeddyKiller Posted June 13, 2010 Share Posted June 13, 2010 I have a fixed floating bar at the bottom of the page, and when I click on a tab... I would like it to bring up a div .. so it'd be like a menu, so I can put things in it.. but only not a menu. It contains links instead of other tabs etc inside it sort of thing. how can I do it? - Think about facebooks chat.. click on the users bit.. and it brings up that div Quote Link to comment https://forums.phpfreaks.com/topic/204635-drop-up-menu/ Share on other sites More sharing options...
ignace Posted June 13, 2010 Share Posted June 13, 2010 <div id="bla" style="display: none; z-index: 99;">bla bla</div> <div onclick="show('bla')">clicky</div> Quote Link to comment https://forums.phpfreaks.com/topic/204635-drop-up-menu/#findComment-1071407 Share on other sites More sharing options...
TeddyKiller Posted June 13, 2010 Author Share Posted June 13, 2010 #users { /* this will ba used as a wrapper for the nav_menu so we can center it (nav_menu). especially for IE */ width:150px; /* the code below will PUT the bar at the bottom */ bottom:31px; position:absolute; z-index: 99; float:right; } thats the style for it, but it seems to just stick left...=[ Quote Link to comment https://forums.phpfreaks.com/topic/204635-drop-up-menu/#findComment-1071411 Share on other sites More sharing options...
ignace Posted June 13, 2010 Share Posted June 13, 2010 Remove the line float:right; it has no effect as it's completely ignored by the CSS engine, you can't float an absolute positioned element. If an element’s position property is set to absolute or fixed, it’s absolutely positioned. In this case, float is ignored (the computed value is none). -- http://reference.sitepoint.com/css/displaypositionfloat Quote Link to comment https://forums.phpfreaks.com/topic/204635-drop-up-menu/#findComment-1071450 Share on other sites More sharing options...
TeddyKiller Posted June 13, 2010 Author Share Posted June 13, 2010 Right, well the menu is on the right side of the bottom floating bar... so I need css to put that div.. on the right side... The bottom bar is 90% in width, with a min-width of 900px. Removing the float, keeps it on the right.. obviously, but removing the the position, doesn't make it show up at all Quote Link to comment https://forums.phpfreaks.com/topic/204635-drop-up-menu/#findComment-1071534 Share on other sites More sharing options...
ignace Posted June 13, 2010 Share Posted June 13, 2010 You need to remove the absolute positioning, make it relative (position: relative;) and float: right; Quote Link to comment https://forums.phpfreaks.com/topic/204635-drop-up-menu/#findComment-1071544 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.