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 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> 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? 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 Link to comment https://forums.phpfreaks.com/topic/202388-menu-box-and-css/#findComment-1061484 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.