Avatar of nsitedesigns
nsitedesignsFlag for United States of America

asked on 

image on right floats over footer address bar

How do I make it so that the footer always goes below the long image on the right.  I thought the <br class="clearfloat" /> would fix it but it isn't.

.clearfloat {
      clear:both;
      height:0;
      font-size: 1px;
      line-height: 0px;
}

http://nsitedesigns.com/nsitedesigns/lakeshore/freestanding.html
CSSHTMLWeb Development

Avatar of undefined
Last Comment
nsitedesigns
Avatar of Mandeep Khalsa
Mandeep Khalsa

One way would be to use the minimum height for your content div.

.content
{
min-height:100px;
}
Avatar of J N
J N

do you want the footer to stretch across the entire screen ??

im not quite sure what you mean it loUser generated imageoks like this to me
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

The footer goes OVER the display on the right.  I would like footer to be situated LOWER than the display so that they do not touch.
Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

i'll be dipped!  worked like a charm.  Thanks Cathal!
Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

While it worked I now need to move display away from right margin a tad. I can't add padding or margin on  the right to a right floated image.  The sidebar is floated to the right too.  If I change the container, it will mess up the site.  What do you suggest I do?  Ideally, I would like to add 30px right margin or padding to the display.
Avatar of Gary
Gary
Flag of Ireland image

Add padding-right: 30px; to .sidebar1{} or .display {}
Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

I thought you should NEVER add padding OR margin to something that is floated in the same direction.  Both of these divs are floated right.....
Avatar of Gary
Gary
Flag of Ireland image

Says who?
Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

I am not sure where I heard this (and it was years ago) but it was a very strict rule that you were to never ever break.  I did add a margin to the float and it took so I guess that was maybe an old rule.
Avatar of Gary
Gary
Flag of Ireland image

Ahh rules are there for breaking!
Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

I feel so naughty!  LOL
Web Development
Web Development

Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.

77K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo