UnknownPlayer Posted December 25, 2010 Share Posted December 25, 2010 How can i make bar at bottom of the browser window on my website, like on http://www.prijevodi-online.org/ where is "Korisničko ime:<input> Lozinka: <input> ..." ? Quote Link to comment https://forums.phpfreaks.com/topic/222611-bar-at-bottom-of-the-browser-window/ Share on other sites More sharing options...
noXstyle Posted December 25, 2010 Share Posted December 25, 2010 well basically thats just a form inside of div. use css to position the div correctly.. you can find nice examples from: http://www.dailycoding.com/Posts/creating_always_visible_div_using_css.aspx Quote Link to comment https://forums.phpfreaks.com/topic/222611-bar-at-bottom-of-the-browser-window/#findComment-1151239 Share on other sites More sharing options...
UnknownPlayer Posted December 25, 2010 Author Share Posted December 25, 2010 Can i align it to center of the page ? Quote Link to comment https://forums.phpfreaks.com/topic/222611-bar-at-bottom-of-the-browser-window/#findComment-1151335 Share on other sites More sharing options...
haku Posted December 25, 2010 Share Posted December 25, 2010 Yes: HTML: <div id="bottom_bar_container"> <div id="bottom_bar">Some text to be on the bottom</div> </div> CSS: #bottom_bar_container { position:absolute; bottom:0; width:100%; } #bottom_bar { width: 300px; margin:0 auto; } Quote Link to comment https://forums.phpfreaks.com/topic/222611-bar-at-bottom-of-the-browser-window/#findComment-1151352 Share on other sites More sharing options...
UnknownPlayer Posted December 25, 2010 Author Share Posted December 25, 2010 It does not work on every page, and its not on bottom of the window :S This code works nice, but i need to align it to bootom-center, can u help me with this code: .visibleDiv, #bar { position: fixed; width: 150px; border: solid 1px #e1e1e1; vertical-align: middle; background: #ffdab9; text-align: center; } #bar { top: 10px; left: 10px; } <div id="bar"> Bar text </div> Quote Link to comment https://forums.phpfreaks.com/topic/222611-bar-at-bottom-of-the-browser-window/#findComment-1151358 Share on other sites More sharing options...
PHPTOM Posted December 25, 2010 Share Posted December 25, 2010 #bar { position: fixed; width: 100%; bottom: 0px; left: 0px; border-top: solid 1px #e1e1e1; background: #ffdab9; text-align: center; } <div id="bar"> Bar text </div> That *should* work Quote Link to comment https://forums.phpfreaks.com/topic/222611-bar-at-bottom-of-the-browser-window/#findComment-1151422 Share on other sites More sharing options...
haku Posted December 26, 2010 Share Posted December 26, 2010 It does not work on every page, and its not on bottom of the window :S This code works nice, but i need to align it to bootom-center, can u help me with this code: .visibleDiv, #bar { position: fixed; width: 150px; border: solid 1px #e1e1e1; vertical-align: middle; background: #ffdab9; text-align: center; } #bar { top: 10px; left: 10px; } <div id="bar"> Bar text </div> I showed you how to do it in the post right before this. I'm not sure why you ignored that. Quote Link to comment https://forums.phpfreaks.com/topic/222611-bar-at-bottom-of-the-browser-window/#findComment-1151467 Share on other sites More sharing options...
UnknownPlayer Posted December 28, 2010 Author Share Posted December 28, 2010 I wrote that it doesn't work, it work on some pages and it is not onbootom window, it was on page bottom. The last one code work, thanks Quote Link to comment https://forums.phpfreaks.com/topic/222611-bar-at-bottom-of-the-browser-window/#findComment-1152194 Share on other sites More sharing options...
UnknownPlayer Posted December 28, 2010 Author Share Posted December 28, 2010 1 more question, when i put width: 550px;, bar is left :S I need to align on center, how to do that? Quote Link to comment https://forums.phpfreaks.com/topic/222611-bar-at-bottom-of-the-browser-window/#findComment-1152198 Share on other sites More sharing options...
haku Posted December 28, 2010 Share Posted December 28, 2010 This will work now. I had the wrong 'position' on it. HTML: <div id="bottom_bar_container"> <div id="bottom_bar">Some text to be on the bottom</div> </div> CSS: #bottom_bar_container { position:fixed; bottom:0; width:100%; } #bottom_bar { width: 550px; margin:0 auto; } Quote Link to comment https://forums.phpfreaks.com/topic/222611-bar-at-bottom-of-the-browser-window/#findComment-1152252 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.