Flush image to browser edge?

G

Guest

I'm trying to get an image to start exactly at the upper left corner of the
browser window, no space between top of image and top of page, no space
between left of image and left of page.

A lot of sites do this, but everything I've tried (tables, setting picture
borders to 0, padding, etc ) has no effect.

What's the secret?

Thanks,
Ed
 
S

Steve Easton

Set topmargin and leftmargin to 0 ( zero ) in page properties, or by using css.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
M

Murray

Link to an external stylesheet, or embed a stylesheet in your code (between
<head> and </head>) with the following style in it (embedded shown for
cut-n-paste convenience) (assuming you want zero margins) -

<style type="text/css">
<!--
body { margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0;
padding:0; }
-->
</style>
(when the value is zero, units are not required)

you could also try

body { margin : 0 0 0 0; padding:0; }

or

body { margin : 0; padding:0; }

as a shorthand method.

This will take care of the margins in IE4+ and NN6. To take care of NN4x,
you will need to use Page Properties... and set the two right hand margin
fields (marginwidth and marginheight) to 0.

Since you are still using inline margin specs in the body tag, this method
won't validate. To get completely valid code that works for all
browsers, change your stylesheet as shown below -

body {
padding: 0;
margin: 0 -10px 0 -10px;
/*/*/margin: 0 0 0 0; /* */
}
 
G

Guest

I put a style for body with the values you all provided in the page and it
works beautifully, thanks! I'll move it to a CSS when I get further along
with the page.

What are the default page borders, anyway? And, is there any way to just
affect the image with the setting without doing the whole page?

Ed
 
G

Guest

One other point and maybe the source of my confustion --

I made the change successfully by adding a style. However, Steve in first
post above says set topmargin to 0 , etc in page properties, which is the
same instruction that FrontPage help gives (yes, I DO read the help file!)

When I go to page properties for any page there is no Margin tab. The only
tabs are for General, Background, Custom, Language, and Workgroup.

I'm using FP2000.
Huh?


Ed
 
T

Thomas A. Rowe

The margin tab is hidden when you apply a theme.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top