How to have Banner (using an include) positioned a few pixels from the top. (abs position won't work

D

Dan V.

How can I have a Banner (using an include) positioned a few pixels from the
top of a web page?
I read that you can't use an include if it uses absolute positioning because
the renderer doesn't know how big the include will be within a div. This is
true for my hosting at ipowerweb.

Is there another way to get the banner at the top of the page using an
include? Can I maybe set the body top padding and top margin to 1 px?

Since Includes are the fastest way to load my 12 pages that look similar (I
think).
I plan on using 4 includes. A banner, footer, 2 columns In a table (far
left column, far right column)
Any advice is greatly appreciated.
 
S

Stefan B Rusynko

Has nothing to do (directly) w/ positioning
- don't use it
Set your page margins to 0
Build the include page in a table (cells aligned top)
Insert the include page in a table (again cell aligned top)




| How can I have a Banner (using an include) positioned a few pixels from the
| top of a web page?
| I read that you can't use an include if it uses absolute positioning because
| the renderer doesn't know how big the include will be within a div. This is
| true for my hosting at ipowerweb.
|
| Is there another way to get the banner at the top of the page using an
| include? Can I maybe set the body top padding and top margin to 1 px?
|
| Since Includes are the fastest way to load my 12 pages that look similar (I
| think).
| I plan on using 4 includes. A banner, footer, 2 columns In a table (far
| left column, far right column)
| Any advice is greatly appreciated.
|
|
 
S

Steve Easton

Set the top margin at what you want it. Set the div at a fixed width equal to what is required by
the include.

It has nothing to do with ipowerweb, it's how you set up the page.

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

Dan V.

I will try both suggestions.

Which top margin are you referring to? (<page>)
What properties of a div are you setting? Do you have an example? Looks
like you are saying don't use absolute position or static or relative.
Can't the div be set at 100% or is that a problem?


In css ?:

page {
Margin: 0 0;
}
 
D

Dan V.

Thanks I set the Body properties in CSS and it works great


body {
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;}
}
 

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