By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,767 Members | 1,255 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,767 IT Pros & Developers. It's quick & easy.

Alignment of footer

P: n/a
On my site, I have created a footer that is simply a shaded box with a
  character.

Using Server Side Includes, I use this footer on every page. On some
pages it loads fine, on other pages it is butted up against the left
side of the browser - as though the page margin was set to 0.

I cannot figure out why it is not displaying where it is supposed to
display. It is not contained within another DIV or SPAN element - as
far I can can see. Even if it were, all of the other elements on the
page have the correct margin.

The code for the stylesheet and the footer is pasted below.

Any help would be appreciated.

Thanks,
John S.

#footer {
width: 700px;
height: 25px;
background: #695A1BC;
border: 3px solid black;
border-left: 5px solid black;
}
<DIV id=footer>
&nbsp;
</DIV>
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
jo*********@jstorta.com (J.Storta) wrote:
On my site, I have created a footer that is simply a shaded box with a
&nbsp; character.

Using Server Side Includes, I use this footer on every page. On some
pages it loads fine, on other pages it is butted up against the left
side of the browser - as though the page margin was set to 0.
URL?
I cannot figure out why it is not displaying where it is supposed to
display. It is not contained within another DIV or SPAN element - as
far I can can see. Even if it were, all of the other elements on the
page have the correct margin.
#footer {
width: 700px;
height: 25px;
background: #695A1BC;
border: 3px solid black;
border-left: 5px solid black;
}
<DIV id=footer>
&nbsp;
</DIV>


Well, it will force a scrollbar in any browser window narrower than
700px wide, which isn't good.

In fact I'd guess that the difference between pages that look okay and
those that don't is in the dimensions of the rest of the contents. But
no way to tell without a URL.

Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.