Why does my footer background colour change when adding a float to a DIV element?

Bear with me as I am a student learning dreamweaver....
I am trying to insert a series of 4 DIVs into a footer area with a black background. WHen I insert a float to constrain them to a horizontal position, the black background disappears and the body background shows through. A strip of the footer displays on top of the area where the DIVs are placed. The float works but the problem is with the background colour. It's almost as if the divs have been pushed down below the footer area. I have tried placing my cursor in several locations before inserting the float but it doesn't change anything.
Can anyone help?

It all depends on the code you're working with.   In the following example, I applied overflow:hidden to the <footer> element. 
Copy & paste this code into a new, blank HTML page to see how it works.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>HTML5 Layout</title>
<style type="text/css">
body {
    font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
    background-color: #CCC;
    padding: 0;
    color: #000;
    width: 1000px;
    margin: 45px auto;
header {width: 100%; display:block; background: #A5C9C9; min-height: 100px}
section {width: 100%; display:block; background:#FFF; min-height: 300px}
footer {width: 100%; display:block; background: #FF9; overflow:hidden;}
aside {width: 22%; float:left; display:block; margin-right: 4%; background:#D8E9B6; min-height: 200px;}
aside:last-child {margin-right:0}
</style>
</head>
</body>
<header>
<h1>Content for header goes here</h1>
</header>
<section>Content for section goes here</section>
<footer>
    <aside>aside 1</aside>
    <aside>aside 2</aside>
    <aside>aside 3</aside>
    <aside>aside 4</aside>
</footer>
</body>
</html>
Nancy O.

Similar Messages

  • Why does the Date Created metadata change when images are exported?How do I stop it from changing?

    why does the Date Created metadata change when images are exported?  How do I stop it from changing? I must have a prefernce set up wrong.

    I don't know what OS you are using, or what application you are using to view the data about your exported files, but on Windows and using Windows Explorer the "Date Created" field relates only to the date that the exported file was created, i.e. if viewed immediately after export it will show the date created as being the same date. In order to view "Capture Date" in something like Explorer, you first have to ensure you have included the Metadata as Conrad outlined above, then you have to adjust the display properties of Explorer to show the "Date Taken" field. Here is an example, part of a folder I exported back on March 3rd, note the difference between that last two dates:

  • Why does not my iCloud emailaddress change when I changed my Apple ID mail address?

    I got a new mail aqddress and changed my Apple ID. My ICloud emailadress did not change so nowe I cannot log in to iCloud, and I cannot find a way to update my iCloud address.

    You have to sign out in System Preferences (or Settings)>iCloud on all your devices On a Mac, click the 'Sign out' button; on an iOS device, click the stupidly labelled 'Delete account' - this will not delete your account from the server, only from the device.
    Then sign back in again with the new ID. Your iCloud data will disappear from your Mac/Device but will reappear when you sign back in.

  • Why does my icloud email not change when i update my appleID? and how can I change it??..so frustrating

    I updated my email because I changed my name, and now i cant sign into icloud and it still wants the password for my old email. any ideas?

    Also, it's important to follow the steps in Change your Apple ID  when changing your ID. You're supposed to sign out of all of your accounts then change the name of the Apple ID then sign in using the email address. Because find my iPhone is a thief's worst nightmare the password will only be accepted for iCloud if the account is still called that current name. So if you changed the name of the account without changing the Apple iD you'll need to change the name back (on Appleid.apple.com) then sign out in Settings>iCloud, then change the name back using the desired email (on applied.apple.com) then sign in using the preferred email in Settings>iCloud.
    Cheers

  • Why do colours change when converting from Word to PDF

    I am converting word files to pdf, however the header and footer background colours change once converted. How can I stop this happening?

    Depends on how you are creating the PDF. If you are using PDF Maker (the create PDF button), then check the preferences in that menu. There is an entry for the settings file selected. If you are printing to the Adobe PDF printer, the settings file is listed under the settings tab of the properties menu.

  • Why does my iphone 3gs shut down when battery gets to 80%?  have installed new battery and nothing changes?

    Why does my iphone 3gs shut down when battery shows 80%.  a couple of months ago is shut down at 60% but has continually gotten worse.  this was before 5.0.  i took it to a repair man and he tried a used battery, a new battery, and the original battery.  nothing helped.  5.01 didnt help either.  What is my problem?

    Fully discharge the battery (till it shuts down and won't turn on) and then fully recharge it (100%).  This will recalibrate the battery meter.  You may need to do this a few times.

  • Why does the page not move smothe when i scroll?

    Why does the page not move smothe when i scroll?
    Sometimes it even move slower then i Scroll?
    I use a Mac and i have tried to reinstall the program.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    In Firefox 4 [http://kb.mozillazine.org/Safe_mode Safe mode] disables extensions and disables hardware acceleration.
    * Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    See:
    * [[Troubleshooting extensions and themes]]

  • Why does the "Computer Name" sometimes change?

                    Not a big deal, just curious, why does the "computer name" sometimes change?
                     The name will be the same, but it will add a number....2,3,4...I always change it back so it doesn't have a numeric value next to it, but just wondering why it happens.
                                            Thanks.

    Can also occur after your computer is put to sleep and then wakes back up or after your computer is force quit and immediately restarted. Sometimes the router 'believes' the computer is still connected when it actually isn't. When that computer re-establishes a connection the router 'tells' the computer that a computer with that name already exists so it has to change its name. By default a computer running MacOS adds a number (or increments its number) when this happens.

  • Why does FF save files to desktop, when I have "downloads" checked in options? This is a new issue with the latest version 3.6.3 Windows XP Thanks.

    Why does FF save files to desktop, when I have "downloads" checked in options? This is a new issue with the latest version 3.6.3 . Using Windows XP Driving me nuttier! Thanks.
    (Is is that MicroNetFrame Asst thing?)
    == This happened ==
    Every time Firefox opened
    == When I installed latest version

    Thanks for your reply. I appreciate your help.
    It was just a hunch that MircoNetFrame was causing the problem. I disabled it as you suggested, and I still have the problem.
    I just changed under Tools>Options> General - had checked "ask me every time" under downloads, so instead of asking me, FF saved the download to I know not where. It no longer saves it to the desktop, leaving a duplicate in "my documents".
    In windows, I have found unless one knows the entire name of the document, one can never find anything. It isn't listed under recent ''''''__. I can't recall the nomenclature, but the
    capability is ridiculous. So, I don't know where that file I just downloaded is!
    I downloaded a PDF file, but this happens with all DL's. It was so easy to have them all stacked in one place and I could recall
    what I had and when I downloaded it easily.
    Do you have any other suggestions other that going back to the old version of FF, which I would rather not do?
    Thanks again for your time, it is very considerate to help a complete stranger, I must say. Sounds like something I might do! Cheers!

  • Why does my RAW image look grainy when I export it in to Photoshop CC from Lightroom for editing?

    Why does my RAW image look grainy when I export it in to Photoshop CC from Lightroom for editing?
    Checked LR's setting for Ps export and they haven't changed since it was OK a few days ago? It is OK if you zoom in but in 'fit page' it looks terrible!

    I have exactly the same problem and it has got worse today as the photos also now open in smaller windows for some reason

  • Why does the screen turn back on when the brightness is turned down?

    Hi,
    I bought a macbook pro (Mac OS X 10.6.8), and just recently last week when i turn the brightness down to black, after a couple minutes later the screen turns back on. Then when i touch the trackpad then it goes back to black. Is there any way where i can change this setting??? because this didn't happen before and now it just constantly occurs.

    michael Kirwan wrote:
    Why does my mac mini automatically restart when I shut down?
    Seems that some process is calling it back.
    If I shut down via the log in screen it turn's off. What gives?
    Probably a process in your account and not systemwide.
    Go to System Preferences >> Accounts >> Login Items, and remove them. BShutdown and test. If not go to ~(yourHome)/Library/Contextual Menu Items and move whatever is there to the desktop. Test.
    EDIT: Also, unmount & disconnect all peripherals except Apple keyboard & mouse.
    -mj
    Message was edited by: macjack

  • Why does the Yosemite Finder become unresponsive when moving a file within my USB Flash stick?

    Why does the Yosemite Finder become unresponsive when moving a file within my USB Flash stick? I have to Relaunch the Finder to get it working again.
    Background / other symptoms:
    The Flash drive in question has been formatted HFS.
    I get no error messages, including on the Console, and no sound indicators.
    I can copy files, using the Finder, from a hard-drive to the usb flash drive with no problem.
    Finder copying on this stick works just fine on my other Mac.
    I can move files within another (FAT32-formatted) USB flash drive.
    The quirky USB HFS Flash drive works fine on my other Mac.
    Outside of the Finder, I can use mv just fine to move the files on the HFS flash drive.
    If the HFS-formatted Flash drive were faulty, I would at least expect some sort of error in the Console app, but perhaps not from the Finder.

    Why does the Yosemite Finder become unresponsive when moving a file within my USB Flash stick? I have to Relaunch the Finder to get it working again.
    Background / other symptoms:
    The Flash drive in question has been formatted HFS.
    I get no error messages, including on the Console, and no sound indicators.
    I can copy files, using the Finder, from a hard-drive to the usb flash drive with no problem.
    Finder copying on this stick works just fine on my other Mac.
    I can move files within another (FAT32-formatted) USB flash drive.
    The quirky USB HFS Flash drive works fine on my other Mac.
    Outside of the Finder, I can use mv just fine to move the files on the HFS flash drive.
    If the HFS-formatted Flash drive were faulty, I would at least expect some sort of error in the Console app, but perhaps not from the Finder.

  • Why does my bookmarks disappear so fast when I try to find one I want to use

    Question
    Why does my bookmarks disappear so fast when I try to find one I want to use

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Why does my mac air always restart when I open it in our university?

    Why does my mac air always restart when I open it in our university?
    This has been always bothering me for some time already. Whenever I open my macbook air in our university it always warns me to restart my device. When I do the same thing happens over and over again until it reached 27 reports.

    I'd make a sound too if i was put into a bag haha.
    Only thing i could think of it it has a mind of its own or your putting your computer to sleep. Try shutting down your mac before placing in your bag and see if that changes things.

  • Why does SMS tell me "not allowed" when I try to add an existing contact to one of my SMS Groups?

    Why does SMS tell me "not allowed" when I try to add an existing contact? 

    If you are running Tiger, you don't have time machine. 
    You need to get something like SuperDuper! or Carbon Copy Cloner (sorry, I don't have a handy link for CCC but you can Google it to get their site) to make a clone of your drive on the external and then do incremental backups.  The free versions do a lot and you can upgrade to the full-service versions for small change if you need more.  The one time I used SuperDuper! for cloning a volume it worked just fine. 
    (My backup application is the last PPC capable version of Retrospect, which does a credible job, or has over the past ten-twelve years.)

Maybe you are looking for

  • Input Sources Crashes System Preferences

    I have two issues: 1) When trying to open Input Sources through 'System Preferences >> Keyboard >> Input Sources' I get a pop-up window saying 'System Preferences quit unexpectedly'... 2) Also - and I suspect this is a related issue - my menu bar kee

  • Bursting Excel file

    Hi guys here is my problem, i have a report that produces xml result which calls the bursting engine to send it out. My report and also bursting program works perfectly however when i change the output-type in the bursting control file from pdf to ex

  • OCM: basic dates

    Hello, my customer wants the ability to track changes done in the production orders after their creation such as : - Changes in the basic dates - Changes in the order quantity And so on... We're planning MTS, no interactions with S.O.. In order to tr

  • Comment and Markup Toolbar in Full Screen Mode

    I am not able to open comment and markup toolbar when I am reading a PDF in full screen mode. Can anybody help me in resolving this issue? I want that toolbar should be visible. I do not want to use keyboard shortcut. It works fine when the PDF is in

  • Tu go and IOS 9 beta

    Indeed you don't, but I do know Tugo struggles with iOS 8 so 9 is stretching it a bit far