nummer31 Posted May 20, 2010 Share Posted May 20, 2010 so, i want to create a menu box using 3 slices(top, left side and bottom) of image for a website and inside there will be content it's controlled by CSS i did one but the side image shifts as i insert content in another div: http://i49.tinypic.com/2psrlt3.jpg Quote Link to comment https://forums.phpfreaks.com/topic/202388-menu-box-and-css/ Share on other sites More sharing options...
madmenyo Posted May 20, 2010 Share Posted May 20, 2010 I think you need to make that left div to float:left; then another div for the content. and put those divs inside a div that stays below the top div. <div top> </div> < div middle> <div left> <--- float this to left </div <div content> <---- you can float this left too. </div> </div> <bottem> </div> Quote Link to comment https://forums.phpfreaks.com/topic/202388-menu-box-and-css/#findComment-1061176 Share on other sites More sharing options...
xcoderx Posted May 20, 2010 Share Posted May 20, 2010 so, i want to create a menu box using 3 slices(top, left side and bottom) of image for a website and inside there will be content it's controlled by CSS i did one but the side image shifts as i insert content in another div: http://i49.tinypic.com/2psrlt3.jpg use div inside div? Quote Link to comment https://forums.phpfreaks.com/topic/202388-menu-box-and-css/#findComment-1061296 Share on other sites More sharing options...
nummer31 Posted May 21, 2010 Author Share Posted May 21, 2010 I think you need to make that left div to float:left; then another div for the content. and put those divs inside a div that stays below the top div. <div top> </div> < div middle> <div left> <--- float this to left </div <div content> <---- you can float this left too. </div> </div> <bottem> </div> i did the same thing but didn't include float in the CSS will see the output and reply thank u for ur reply Quote Link to comment https://forums.phpfreaks.com/topic/202388-menu-box-and-css/#findComment-1061484 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.