Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    HELP. whitespace at top of page

    I am doing a blank web page with a title and flash movie.

    here's my code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html40/loose.dtd">
    <html>
    <head>
    <title>From Your Friends at Sher & Blackwell LLP</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="author" content="">
    <meta name="generator" content="SWiSHmax http://www.swishzone.com">
    <meta name="description" content="holiday_card2">
    <meta name="keywords" content="behalf, blackwell, cards, charitable, contribution, holiday, instead, mailing, make, sher, will, your">

    </head>
    <body bgcolor="#FFFFFF">
    <center>
    <object
    classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0"
    id="holiday_card2"
    width="900" height="781"
    >
    <param name="movie" value="holiday_card2.swf">
    <param name="bgcolor" value="#FFFFFF">
    <param name="quality" value="high">
    <param name="allowscriptaccess" value="samedomain">

    <embed
    type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer"
    name="holiday_card2"
    width="900" height="781"
    src="holiday_card2.swf"
    bgcolor="#FFFFFF"
    quality="high"
    swliveconnect="true"
    allowscriptaccess="samedomain"
    >
    <noembed>
    </noembed>
    </embed>
    </object>
    </center>
    </body>
    </html>



    Here is the link: http://www.sherblackwell.com/holiday_card2.html

    I just need to remove as much of the white space as possible at the top of the page.

    Any suggestion on what is going on here?

    THANKS A TON!

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,749
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello dpefley,
    Add this bit in red to your markup:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html40/loose.dtd">
    <html>
      <head>
        <title>From Your Friends at Sher & Blackwell LLP</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <meta name="author" content="">
        <meta name="generator" content="SWiSHmax http://www.swishzone.com">
        <meta name="description" content="holiday_card2">
        <meta name="keywords" content="behalf, blackwell, cards, charitable, contribution, holiday, instead, mailing, make, sher, will, your">
    <style type="text/css">
    * {
    	margin: 0;
    	padding: 0;
    	border: 0;
    }
    </style>
      </head>
      <body bgcolor="#FFFFFF">
        <center>
    That is a CSS reset that zeros out default margin/padding/border which can differ from browser to browser.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks so much, helped a small bit.

    Still has a lot of white space, is that as good as it'll get?

    Here is the link:

    http://www.sherblackwell.com/holiday_card2.html

  • #4
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Yep. The remaining white space is part of the Flash element. You'll notice this if you try to right-click on that white space. It gives you Flash options rather than web page options.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •