Glenskie Posted August 22, 2013 Share Posted August 22, 2013 hi i would like to have my css test box attached to the side of the box like it is on the second picture ... any way to do it ? #socialbox { background-color: #FFF; padding: 7px; height:200px; width:35px; border: 1px solid #DBDBDB; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; -webkit-box-shadow: #E4E4E4 0px 0px 5px; -moz-box-shadow: #E4E4E4 0px 0px 5px; box-shadow:#E4E4E4 0px 0px 5px; margin-bottom: 5px; /* max-width:50px; max-height:100px; */ float:right; margin-right:180px; } Quote Link to comment https://forums.phpfreaks.com/topic/281447-css-attach-to-side-of-box-no-matter-what-size/ Share on other sites More sharing options...
Solution kicken Posted August 22, 2013 Solution Share Posted August 22, 2013 (edited) Have both the image and the social box float: left; See: http://cssdesk.com/ywJGT Edited August 22, 2013 by kicken Quote Link to comment https://forums.phpfreaks.com/topic/281447-css-attach-to-side-of-box-no-matter-what-size/#findComment-1446213 Share on other sites More sharing options...
Glenskie Posted August 22, 2013 Author Share Posted August 22, 2013 THANK YOU !!!! Quote Link to comment https://forums.phpfreaks.com/topic/281447-css-attach-to-side-of-box-no-matter-what-size/#findComment-1446215 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.