August 23, 201214 yr Can somone help me with this wrapper. I cant get it go follow behind the content. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <!-- CSS Styles --> <style type="text/css"> body { background: #eee; font: 13px/18px 'Open Sans', sans-serif; color: #4b4b4b; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.10); -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-font-smoothing: subpixel-antialiased; image-rendering: optimizeQuality; -ms-interpolation-mode: bicubic; } #wrapper { margin: 0 auto; width: 960px; padding: 0 25px; background: #F5F5F5; background: rgba(245, 245, 245, 0.75); border: 1px solid #FFFFFF; -webkit-box-shadow: #444 0px 0px 7px; -moz-box-shadow: #444 0px 0px 7px; box-shadow: #444 0px 0px 7px; } .content { float: left; width:560px; margin-right:40px ; } </style> </head> <body> <!-- Start HTML --> <div id="wrapper"> <div class="content"> <p>Hello WOrld</p> <p>Hello WOrld</p> </div> </div> </body> </html>
August 23, 201214 yr Hi, simply add overflow:auto; within the id wrapper style block. Should fix it. Jim Edited August 23, 201214 yr by jamaks
Create an account or sign in to comment