brown2005 Posted May 1, 2007 Share Posted May 1, 2007 Hi I have a div say <div id='here'> <img> <img> <img> <img> <img> <img> <img> <img> <img> <img> </div> which i want permanetely on the right hand 150px, how can i do this please? Quote Link to comment https://forums.phpfreaks.com/topic/49475-permanent-right-hand-side/ Share on other sites More sharing options...
ToonMariner Posted May 1, 2007 Share Posted May 1, 2007 google 'position fixed' - there are a few fixes for ie6 (unfortunately you will need a bit of javascript to achieve this cross browser) Quote Link to comment https://forums.phpfreaks.com/topic/49475-permanent-right-hand-side/#findComment-242500 Share on other sites More sharing options...
emehrkay Posted May 3, 2007 Share Posted May 3, 2007 or you can use the dreded position: absolute; div{ position:absolute; top:0; right:0; } Quote Link to comment https://forums.phpfreaks.com/topic/49475-permanent-right-hand-side/#findComment-244632 Share on other sites More sharing options...
ToonMariner Posted May 3, 2007 Share Posted May 3, 2007 position:fixed will keep that div exactly where it is on the page even when you scroll the rest of the page. position: absolute could easily be substitued for float: right for screen media. Quote Link to comment https://forums.phpfreaks.com/topic/49475-permanent-right-hand-side/#findComment-244844 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.