April 18, 201214 yr Hi guys, Forgive me if this is really obvious, but I'm at a blank. I have a div that won't position as I think it should (http://www.theowlandthepussycatx.com/wip.html), it's the div that contains "Something". If I add a top border to it, it drags everything down with it. I'll post the code too, though don't mention the fact that all CSS is inline, as it's still just being designed and developed at the minute. <html> <head> <title>The Owl & the Pussycat Piercing</title> <link href='http://fonts.googleapis.com/css?family=League+Script' rel='stylesheet' type='text/css'> <style type="text/css"> a.nav:link {color:#000;font-weight:bold;text-decoration:none;font-size:18pt;} a.nav:visited {color:#000;} a.nav:hover {color:#ee78a7;} </style> </head> <body style="background-image:url('tile.png');background-repeat:repeat;margin:0px;"> <div style="width:100%;"> <div style="height:155px;width:100%;background-color:#fff;-moz-box-shadow: 0 0 10px pink;-webkit-box-shadow: 0 0 10px pink;box-shadow: 0 0 10px pink;opacity:0.7;"> <div style="width:900px;margin:0 auto;"> <div style="float:right;"> <div> <h1 style="line-height:10px;"><img src="navlogo.png"></h1> <p style="line-height:10px;font-style:italic;text-align:right;">Unit 11, The Forum. 127 Devonshire Street, Sheffield, S3 7SB</p> </div> <p style="line-height:10px;text-align:right;"> <a class="nav" href="#">Home</a> <a class="nav" href="#">Info</a> <a class="nav" href="#">Prices</a> <a class="nav" href="#">Gallery</a> <a class="nav" href="#">Contact</a> </p> </div> </div> <div style="width:900px;background-color:#fff;margin:0 auto;"> Something </div> </div> </body> </html> Many thanks, Oliver
April 18, 201214 yr Can you try closing this div for me and see if that solves the problem EDIT: Add clear:both to your div style on line 30 as well please if you don't like for that div to stay on the top which is what I think you wanted. Edited April 18, 201214 yr by rrr
April 18, 201214 yr Author Can you try closing this div for me and see if that solves the problem EDIT: Add clear:both to your div style on line 30 as well please if you don't like for that div to stay on the top which is what I think you wanted. Sincerest *embarrassed* thanks. Never again shall such a grave error be made. I must start indenting my work...
Create an account or sign in to comment