Clear and Float

Hi,
I am atotally new beginner, I have learned some HTML in My life and did two tutorials on the Adobe website, and actually feel like alot of material has been covered,
Though there are some questions that keep on coming and I can't seem to figure them up.
The tutorial in question is the one called:
Taking a Fireworks comp to a CSS-based layout in Dreamweaver – Part 3: Layout and CSS
and is located in this address: http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt3.html
Questions:
1. why in the Header div (#header) do we need to set up the float to left? obviously without it the background doesn't work well. but we have set the width to be 100% and it's the first component to be shown on stage so why do we need to float it left? and why doesnt it work without it?
2. when setting the properties for the Masthead div (#Masthead) why do we need to do this step? "In the Clear menu, select Both." What's the clear is for? Why background shows with and doesn't show without this step?
3. content-wrapper it says: "From the Float menu, select Left." Why?
4.footer div it says: "From the Clear menu, select Both." Why?
5. The clearfloat class it says:
The clearfloat class rule of the layout is for the br elements you placed in the code before Module 4 and after the closing div for the footer-wrapper and before the closing div for the container. The trick here is to remove anything that causes the break to have dimension:
1. Click the Plus button to create a new CSS rule.
2. Select Class as the selector type.
3. Name the selector .clearfloat (don't forget the period) and click OK.
This is the name you gave the class in the markup when you added the br clearing element.
1. Select Type from the Category list.
2. Set the font size to 1 pixel.
3. Set the Line height to 0.
4. Select Box from the Category list (see Figure 27).
5. Select Both from the Clear pop-up menu.
6. Set the height to 0 and click OK.
I can't seem to understand it and what's the porpuse of this... why did we need to have the BR in the first hand?
I hope those questions make sense
other than that I loved those tutorials and they totally make sense and are so good to help people learn their way into web and dreamweaver
Thanks Ahead!
Shlomimoto

I've just looked at that tutorial and setting float: left; on the 'header' was probably a legitimate way of clearing the floats in the 'header' <div> in 2008. We are now in 2013.
Times move on and the more accepted way now of clearing floats in a wrapper <div>, which the header is,  is using overflow: hidden; ( as blelow):
#header {
    color: #FFFFFF;/
    background: #131313 url(images/header_bg.jpg) repeat-x;
    padding: 15px 0px;
    overflow: hidden;
I can't for the life of me see why you would want to set the header <div> width to 100% though. As far as I know a <div> will stretch to fill up the available space, nothing in my experiences has ever required me to set 100% as a width that I can recall.
shlomimoto wrote:
2. when setting the properties for the Masthead div (#Masthead) why do we need to do this step? "In the Clear menu, select Both." What's the clear is for? Why background shows with and doesn't show without this step?
Oh well there you go this just proves this constructon method is way outdated. If you use the more accepeted method overflow: hidden; on the header <div> to clear the floated elements within it there is no need to set clear: both; on the masthead <div> making life much simpler for you.
Conclusion try and find a more up-to-date tutorial because you're already 5 years behind learning this duff stuff.

Similar Messages

  • How to input char and float

    hello,
    I'm working in Linux platform.I'm new to Java programming ,will u help me to input char and float variables?
    and also will u tell me how to clear the screen(just like we do system("clear"))
    thank you
    anchal...

    hello,
    I'm working in Linux platform.I'm new to Java
    Java programming ,will u help me to input char and
    float variables?If u want to input variables from a properties file look at the class java.util.Properties(http://java.sun.com/j2se/1.4/docs/api/java/util/Properties.html)
    If you want to read user input from the keyboard look at System.in (http://java.sun.com/j2se/1.4/docs/api/java/lang/System.html#in)
    and also will u tell me how to clear the screen(just
    like we do system("clear"))
    thank you
    anchal...
    for( int i = 0; i < 25; i++ )
      System.out.println();

  • How to extract Cleared and Open Items from SAP R/3?

    Hi experts,
    I have a requirement from user to extract cleared and open invoice items from SAP R/3.
    Can someone tell me how to do that?
    Thanks!

    Hi,
    Use the Data source 0FI_AR_4 to Know the status (0FI_DOCSTAT) of payment to be done by customer.
    OR
    Enhance the 2LIS_13_VDITM with VBUP fields which will give the status of Billing.
    With rgds,
    Anil Kumar Sharma .P

  • When I put in my earphones to listen to music the sound isn't clear and I have to push and hold them in it in order for it to be. It's not the earphones because I use them in my laptop and they work fine. Is there a way to fix this problem?

    Whenever I put my earphones into my iPod Touch 2g the music isn't clear and I have to push and hold them in order to hear the song normally. It isn't the earphones because I tried another pair, that worked fine, and there was still no difference. I also use the same pair of earphones in my laptop and it sounds great. Is there a way to fix this problem without having to buy a brand new iPod touch? Do I need to clean it or something? And if so, how would I go about doing that? Thanks!

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    If still problem that indicates you have a bad headphone jack.
    Apple will exchange your iPod for a refurbished one for this price. They do not fix yours. Likely not worth it for your old 2G iPod
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • Development of Report for Cleared and Uncleared Vendor Line Items

    Hi
    we are in the process of developing a customized report, which invloves the details of cleared and un cleared line items for vendors. How can we obtain the details in SAP
    regards
    satyen

    Hello,
    Before consider developing any program development, I would request you look into the options available with various reports in Standard SAP for vendors.
    FBL3N would essentially satisfy all the user needs across various industries.
    Please also go through F.98 for all vendor reports.
    Regards,
    Ravi

  • I HAD MY MACBOOK MEMORY CLEARED AND CANNOT UPLOAD MY IPHOTO ANYMORE

    I recently had my macbook memory cleared and reset to all default settings. I was advised to back up all my personal documents and data as everything will be cleared. However, due to some technical issue (and one of the reason for memory wipe) i had to manually backup important documents, which were my itune, iphoto, and uni assignments.
    After i my macbook had been wiped and returned to default settigns i began to reinstalled the documents i had backed up on my external hard drive. However, when i came to open iphoto it was saying i had to download it from the app store?? when i looked on the app store it was asking for me to buy iphotos for over £10 !! i was not aware i would have to buy this feature as i never originally bought the feature when i first got my macbook. without downloading iphoto i cannot access my photos which was the main thing i wanted to save as these are personal memories of me and my children.
    Can anyone help me with this issue as i do not feel i should buy iphoto just so i can recover my own photographs, i have already paid for the memory wipe as it was strongly advised by the technician, who also helped me back up my documents in the store (which took 4 hours). I am correct in thinking that iphoto originally came as standard on my macbook when i bought it in 2009 or will i be required to purchase this and download it again??

    Your post says you have a late 2009 MacBook with OS X 10.6.8. With the MacBook, you received 2 gray-faced OS X disks, one with the system programs and one with application programs. The application program disk will have iPhoto on it, so you would re-install it from there. See this Apple note on how to reinstall iPhoto.

  • Cleared and uncleared items

    Hi,
    I need to print both the cleared and uncleared items at the footer of the smartform.
    For this I need to pick dmbtr and zterm fields from BSID and BSAD tables.How can I print the cleared and uncleared items by picking the data from both these tables.

    BSIK and BSAK are the tables
    Regards
    Sanil K Bhandari

  • TS3999 In MONTH, (PC) iCal only clearly lists 2 items a day. The 3rd item is "faded" and bottom portion cut off, w/ a "more" triangle in the lower-right corner. How can I expand (vertically) so the 3rd line posts clearly, and ONLY shows "more" if 4+ event

    In MONTH, (PC) iCal only clearly lists 2 items a day. The 3rd item is "faded" and bottom portion cut off, w/ a "more" triangle in the lower-right corner. How can I expand (vertically) so the 3rd line posts clearly, and ONLY shows "more" if 4+ events?
    Better yet... as there's a lot of "wasted" space w/ too large Month title and empty space surrounding the Month title above and too much space surrounding the month/year slider bar below, how can I minimize these to allow me more usable / valuable calendar "contents" so I don't need to waste so much time clicking "more" just to see the bottom of the truncated third event and find out there are no 4+ events posted that date?  i.e. more "user-friendly" presentation?
    Thx!
    [email protected]

    In MONTH, (PC) iCal only clearly lists 2 items a day. The 3rd item is "faded" and bottom portion cut off, w/ a "more" triangle in the lower-right corner. How can I expand (vertically) so the 3rd line posts clearly, and ONLY shows "more" if 4+ events?
    Better yet... as there's a lot of "wasted" space w/ too large Month title and empty space surrounding the Month title above and too much space surrounding the month/year slider bar below, how can I minimize these to allow me more usable / valuable calendar "contents" so I don't need to waste so much time clicking "more" just to see the bottom of the truncated third event and find out there are no 4+ events posted that date?  i.e. more "user-friendly" presentation?
    Thx!
    [email protected]

  • What is the purpose of Clearing and Revenue account in Asset Disposal : F-92?

    Hi All,
    Please clarify my doubt ;
    In Asset Disposal - Sale to Customer : F-92 with customer
    Suppose an asset with historical cost $1000 and accumulated depreciation of $100 is being sold to a customer at $1100, the posting entries will be as follows :
    Dr     Customer Account (A/R)                    1,100
    Dr     Accumulated Depreciation                    100
    Cr     Fixed Asset - Acquisition Cost           1,000-
    Cr     Gain/Loss of Fixed Asset Disposal       200-
    Dr     Clearing Account for Asset Disposal   1,100
    Cr     Revenue for Asset Disposal                1,100-
    I completely understand the first four line items, but don't know the purpose or the 5th and 6th line items.
    Please explain why we need a clearing and revenue account for asset disposal and what would be the impact of these accounts in asset accounting?
    Thanks in advance !!!
    Regards,
    Vicki

    Hi Vicki
    This is just a technical account, which gets Dr and Cr in the same document
    The purpose is just to tell you how much asset sale has happened during the year.. You can get this info by looking at the GL Account
    Since Asset Module is a sub ledger, the asset needs to be retired. At the same time, the FI-GL also should show the needed info from accounting perspective
    While the required GL entry is completed with the 1st 4 line items, the 5th and 6th are just the statistical ones
    Br. Ajay M

  • I have LR from 2 through 4.4,  I am simply trying to adjust CR2s, and convert the them JPEG.  LR says my Perfectly Clear is expired but my update is up to date and all paid for.  What is Perfectly Clear and how do i get this puppy to be part of the team?

    i have LR from 2 through 4.4,  I am simply trying to adjust CR2s, and convert the them JPEG.  LR says my Perfectly Clear is expired but my update is up to date and all paid for.  What is Perfectly Clear and how do i get this puppy to be part of the team?

    Perfectly Clear is a 3rd party commercial plugin for Lightroom.
    http://www.athentech.com/products/plugins/
    Have you ever installed it as a trial in the past?

  • I need to reinstall my original factory disc and reset my computer to the beginning. It currently has lion. Do I need to erase my HD first to clear and make new room for the install disc.

    I need to reinstall my original factory disc and reset my computer to the beginning. It currently has lion. Do I need to erase my HD first to clear and make new room for the install disc.

    Prepare Your Mac for Sale
    Boot from the OS X Installer Disc One that came with the computer.  After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.  After DU loads select the startup volume from the left side list then click on the Erase tab.  Set the format type to Mac OS Extended (Journaled) then click on the Options button.  Select the one pass Zero Data option and click on the OK button.  Then click on the Erase button.
    Note: You can skip the Zero Data option if you are not concerned about removing sensitive personal data from the hard drive.  If you choose to skip this part of the process then it is possible for others to recover data from the hard drive.  The Zero Data procedure will prevent others from getting access to your personal information.
    This process will take 30 minutes to several hours depending upon the size of the hard drive.  After formatting has completed quit DU and return to the installer.  Now complete the OS X installation.  At the completion of the installation do not restart the computer.  Instead just shut it off.  The next user will be presented with the Setup Assistant when they turn on the computer just as it would if new out of the box.

  • My IPad screen is frozen with a message stating that the IPad has not been backed up to the ICloud for 7 weeks, this is not correct.I cannot get the messageto clear and cannot access any of the other icons; is there an emergency reboot process?

    My IPad screen is frozen with a message stating that the IPad has not been backed up to the ICloud for 7 weeks, this is not correct. I cannot get the messageto clear and cannot access any of the other icons; is there an emergency reboot process?

    Have you tried resetting your iPad?
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10-15 seconds).
    No data will be lost.

  • Payment document cleared and invoice document number cleared

    Dear experts,
        Could you please help me to locate (table and field name) what is the payment document number clear and invoice document number cleared ?
        In my point of view, the invoice document number is :
              BSAD-BELNR: Customer Invoice document number cleared
             BSAK-BELNR: Vendor Invoice document number cleared
    Is it right ?
    How about the payment document number cleared ?
    How about the relation between these payment document number clear and invoice document number cleared?
    Thank you in advance

    Hi
    You can  see  data  on  invoices   cleared  using  following tables.
    For  customer -  BSAD
    For Vendor  - BSAK
    For   all  invoices ( open and cleared )   it is   BSID  &  BSIK.
    Thanks
    kamala

  • Pack  and Floating Point Data Type in ABAP

    Dear All,
    I am new to ABAP. Started with data types. Came across pack and floating point.
    Please let me know what PACK  and Floating Point stands for with few examples and the main difference between them.
    Regards
    Arun V

    Hi,
    You'd better ask this question in ABAP forum http://forums.sdn.sap.com/forum.jspa?forumID=50 .
    Best Regards,
    Ada

  • Inline and floating locked in portrait view

    My photo book was rejected today because it's not viewable in portrait format.  My intention was to have the book ONLY be viewable in landscape format and that it's more than obvious that you need to turn the pad to landscape to view it–the thing is primarily composed of landscape-format images!
    I saw in today's "disappearing shapes" thread that you need to edit in portrait and layout in landscape, so I'm trying out that approach.
    In portrait mode, I can't get an image to appear in the text column, only as a thumbnail in the left margin.  Inline and Floating are greyed out, only Anchored is available.
    How can I unlock these?  Will that allow me to place the images in the text as in Landscape format?
    Thanks.

    Never click on anything like that and resubmit.
    Test it on a device first.
    Testing it goes without saying, right?  Seems to work.  You saved me a ton of work redesigning a compromised layout.  If I could give you doube bonus points I would! 
    So by clicking disable portrait view it will force the landscape layout to resize smaller to fit portrait view like a pdf does?
    No idea what that means, sorry. How could something resize from something it doesn't do...
    Where did you learn that iBA's portrait view supports PDFs?
    I was talking about looking at a PDF version of this book in iBooks.  When you rotate the pad the landscape image simply rotates and resizes.  Disabling portrait in .iba just locks the book in landscape no matter how you turn the pad.  Perfect for my needs.
    Thanks for your help.

Maybe you are looking for

  • Can we still have the Store and Library open at the same time in 11?

    Simple question, sorry.  I can find no way to have 2 windows open as we used to do, to be able to browse the iTunes library in 11, at the same time we have our own library open.  I figure this ability must be here, but the right-click option seems to

  • OBIEE Report based on attribute dim or say base attribute value

    Hi, I have OBIEE and Essbase implementation and have set of attribute dimensions. I am trying to understand how can I create reports in OBIEE where I can use the attribute values to filter, group, sum my fact data. For example I have a hierarchy for

  • Lion Server VPN with 2 networks

    I hope someone has come across a similar problem to what I have had. I am having great difficulty trying to configure our OSX Lion Server (7.4) VPN service. The configuration I am trying to reach is one where we have an external IP for the server its

  • Posting of PF related amounts to Accounts

    Dear Consultants, While posting payroll results to accounts, I observed that all PF, Pensions, EDLI related amounts are multiplied by 100000. I know that as thses values are very small, for sake of accuracy, they are multiplied by 100000 during calcu

  • ICloud update messes with Regional Settings on non-English Windows 7

    I have Windows 7 in French. Since the recent update of iCloud (and also iTunes and Quicktime), my other software (Sage 50 Accounting) is dropping the digits entered after the decimal point. Strangely, while I have iCloud installed, when I open Sage 5