...

View Full Version : HELP. whitespace at top of page



dpefley
11-30-2009, 06:34 PM
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="clsid:D27CDB6E-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!:eek:

Excavator
11-30-2009, 06:41 PM
Hello dpefley,
Add this bit in red to your markup:

<!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.

dpefley
11-30-2009, 06:47 PM
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

Rowsdower!
11-30-2009, 06:53 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum