drkylec Posted April 28, 2009 Share Posted April 28, 2009 A client wants the top of the page to be fixed relative to the top so when they or a customer scrolls they can see the top at all times with the information continuing underneath if anyone can help me with some code or a link to a page that would be nice thanks ahead of time. Quote Link to comment https://forums.phpfreaks.com/topic/155974-i-need-to-know-how-to-fix-a-table-or-object-to-the-top-of-the-page-please/ Share on other sites More sharing options...
Axeia Posted April 28, 2009 Share Posted April 28, 2009 CSS behaviour "position: static" is what you're after. There are some nice examples out there on the web, no idea how ie7 handles it.. but ie6 doesn't support it and needs a javascript (or .htc I guess) workaround. Quote Link to comment https://forums.phpfreaks.com/topic/155974-i-need-to-know-how-to-fix-a-table-or-object-to-the-top-of-the-page-please/#findComment-821124 Share on other sites More sharing options...
TheFilmGod Posted April 29, 2009 Share Posted April 29, 2009 CSS behaviour "position: static" is what you're after. There are some nice examples out there on the web, no idea how ie7 handles it.. but ie6 doesn't support it and needs a javascript (or .htc I guess) workaround. Position: fixed; is what you're looking for. Edit: position: static; is the default positioning type of divs. We do not want to mimic the default behavior. Quote Link to comment https://forums.phpfreaks.com/topic/155974-i-need-to-know-how-to-fix-a-table-or-object-to-the-top-of-the-page-please/#findComment-821557 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.