July 17, 200917 yr hi - could someone explain to me why my wrapper isn't clearing my central columns? any help greatly appreciated - all the best, eighty0ne LINK
July 17, 200917 yr Can you explain more? Whats it meant to look like? From what i see your black background is expanding down. Is this meant to be like this?
July 17, 200917 yr Author sorry fella, I meant to do an update before posting that - should make more sense now - I had forced the transparent black background to expand down by including the footer in the wrapper - not really what I want though! I have made some of the adjustments you suggested in previous thread and left the clearing issue for you to see - what I'd like is for the wrapper div to extend down in relation to the content of all three internal divs - and for there to be a gap (like there is between the header and wrapper) between the bottom of the wrapper and the footer. hope that's clearer?! cheers again, eighty0ne
July 17, 200917 yr i remember having a similar issue where the wrapper didnt go down the page with the content. i got round it i think by using the "float" command in CSS try creating a duplicate wrapper within your current wrapper and just have it float left? Im thinking there might be an easier way but i found this to work when i cam across this issue
July 18, 200917 yr Author thanks Anth but this didn't seem to do the trick... could anyone else advise? cheers, eighty0ne
July 18, 200917 yr Have you tried this? Css: .clearthis { clear:both;} Html: <div> text text text etc <br class=clearthis/> <div> might help? Not sure if I get what your tring to do but thought I would try to help you never know!
July 18, 200917 yr Author hey tobo - thanks for the suggestion I have changed the content of the page slightly so you can see what I am trying to create. basically, the #wrapper div needs to extend with the central column (#mainContent) as more content is added - if I add any more content at the moment, it breaks out of the #wrapper div at the bottom - I am sure this is to do with how each element is set to 'clear' but I can't remember how! agh yours hopefully, eighty0ne
July 18, 200917 yr At the moment I can't see any clearing set on the divs try the css class I suggested before I'm pretty sure it should do the trick.
July 18, 200917 yr Author hi tobo - thanks for your support... i have added the .clearThis class but a little confused about where/how to implement it...?
July 18, 200917 yr Put it at the end of the content of the div that you want the wrapper to clear ie the #maincontent I think it was??
July 18, 200917 yr Author no joy with that I'm afraid... ran it through Dreamweaver error checker and found 3 issues - not sure I quite understand them but they could hold the key to the problem? 1. When anonymous line boxes (boxes that contain inline content) are adjacent to a float, a 3px gap appears between the line box and the edge of the float. This gap disappears when the content clears the float, causing the content to "jog" three pixels in the direction of the float. Note that the gap may be difficult to see when left-aligned text is adjacent to a right float, but it does exist -- and it can lead to "float drop" in tight layouts. 2. When a margin is applied to a floated box on the same side as the direction of the float, the margin is doubled. This bug only affects the first float in a row of one or more floats. 3. If a non-floated element with a specified width directly follows a left-floated element with a specified width, the non-floated container will appear to the right of the floated element instead of allowing the floated element to overlap it. Do these make any sense to you?
July 18, 200917 yr did you try this. #wrapper { margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; width: 970px; } #wrappertwo { width: 950px; float: left; background-image: url(../images/PNG/background_cube_trans.png); background-repeat: repeat; padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 20px; font-family: Tahoma, Geneva, sans-serif; font-size: 14px; color: #FFF; } then your html will be <div id="wrapper"> <div id="wrappertwo"> <div class="pageHeading" id="sectionName"><a href="#">Section Name</a></div> and then end the new div... <p> </p> <p> </p> </div> </div> </div>
July 18, 200917 yr Author hey, thanks Anth - that seems to have done the trick! take a look... any thoughts on the dreamweaver errors?
July 18, 200917 yr i assume the dreamweaver errors are html errors... you can get a clear explanation of the errors here: http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fbrightonscience.com%2F2010%2F
July 18, 200917 yr thats odd, it thinks theres no <ul> tag, but there cleary is.... no idea only thing i can see wrong, which im sure is not causing that problem is a random ";" in your css #navcontainer ul li a { text-decoration: none; float: right; color: #FFF; font-family: Tahoma, Geneva, sans-serif; height: 80px; padding-right: 1em; padding-left: 1em; ; border-left-width: 1px; border-left-style: solid; border-left-color: #FFF; } EDIT just found this in your HTML also. under you UL and LIs </div> </ul> </div>
Create an account or sign in to comment