Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

making it clear...

Featured Replies

hi - could someone explain to me why my wrapper isn't clearing my central columns?

any help greatly appreciated - all the best, eighty0ne

 

LINK

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?

  • 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

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

  • Author

thanks Anth but this didn't seem to do the trick...

could anyone else advise? cheers, eighty0ne

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! :)

  • 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

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.

 

:)

  • Author

hi tobo - thanks for your support...

i have added the .clearThis class but a little confused about where/how to implement it...?

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??

 

:)

  • 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?

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>

  • Author

hey, thanks Anth - that seems to have done the trick! take a look...

 

any thoughts on the dreamweaver errors?

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.