Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Placing an image at the *very*bottom of a page

Placing an image at the *very*bottom of a page
Thread Tools
Mac Elite
Join Date: May 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Jul 19, 2003, 01:59 AM
 
Hey all,

Got a site that I'm in the middle of. At the bottom of each page is a graphic in the background of a one cell table, with some text over the top. I have set the page margins to 0 pixels, and tht works for everything. Except this cell at the bottom. It has to be flush with the bottom of the page.

The page is:

http://www.stikaguru.com.au

It looks great in Safari, but not in IE or Camino. It's the blue and green splash at the bottom of all of the pages.

You guys have any (non-CSS!) ideas?? Surely it can't be hard? Thanks very much!
     
Mac Elite
Join Date: May 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Jul 19, 2003, 03:00 AM
 
I should post some pics in case you guys don't have the browsers I am talking about:

Safari:

Looks how it should.


OmniWeb:

Again, looks good.

Internet Explorer Mac:

Gap underneath it.

Camino:

The one-cell table has increased its size from a set number of pixels (same as the graphic) to a size that includes the gap underneath, hence the background image starts to repeat.

     
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Jul 19, 2003, 09:21 AM
 
Originally posted by thePurpleGiant:
You guys have any (non-CSS!) ideas?? Surely it can't be hard? Thanks very much!
Non-css? Why's that exactly?
     
Registered User
Join Date: Jul 2003
Location: San Jose
Status: Offline
Reply With Quote
Jul 19, 2003, 04:14 PM
 
try adding <body bottommargin="0">
     
Registered User
Join Date: Jul 2003
Location: San Jose
Status: Offline
Reply With Quote
Jul 19, 2003, 04:15 PM
 
whoops....

[body bottommargin="0"]
     
Mac Elite
Join Date: May 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Jul 19, 2003, 07:34 PM
 
Originally posted by mzllr:
whoops....

[body bottommargin="0"]
Thanks! Do I include the square brackets, or did you substitute them for >< brackets? Where exactly should I paste that?

I have this already in the head:


body bgcolor="#000000" text="#000000" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"


Should I paste it in there somewhere?
     
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Jul 19, 2003, 10:08 PM
 
yes, just after topmargin

in this board html tags actually produce html so alway replace ][ with ><

--will
     
Mac Elite
Join Date: May 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Jul 20, 2003, 04:08 AM
 
Originally posted by clam2000:
yes, just after topmargin

in this board html tags actually produce html so alway replace ][ with ><

--will
Thanks for the tip...didn't work though =(

I now have this listed:

body bgcolor="#000000" text="#000000" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" topmargin="0" bottommargin="0" marginwidth="0" marginheight="0"

Made no difference at all. Looks fine in Safari, bad in the others. Any other ideas?
     
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Jul 20, 2003, 06:16 AM
 
Originally posted by thePurpleGiant:
Thanks for the tip...didn't work though =(

I now have this listed:

body bgcolor="#000000" text="#000000" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" topmargin="0" bottommargin="0" marginwidth="0" marginheight="0"

Made no difference at all. Looks fine in Safari, bad in the others. Any other ideas?
Well if you're willing to use CSS at some point, in the &lt;head&gt; tag you can just put:

&lt;style type="text/css"&gt;
body { background: #000 url(http://www.stikaguru.com.au/content/base.jpg) bottom right no-repeat }
&lt;/style&gt;

Or even:

&lt;style type="text/css"&gt;
body { background: #000 url(http://www.stikaguru.com.au/content/base.jpg) bottom right no-repeat }; margin: 0
&lt;/style&gt;

If you want to get rid of all those margin attributes in your body tag.

Good luck
     
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Jul 20, 2003, 11:32 AM
 
ok, it wasn't working before on my browser (camino) i played arround an got it working somewhat better.

your problem was that you had your text within a [p] tag, which meant that an extra line was inserted afterwards, resulting in a picture that was too high.

here is what i changed it to:
Code:
[tr] [td valign="bottom" height="58"] [div align="center" height="58"] [br] [font color="#FFCC33" size="-2" face="Arial, Helvetica, sans-serif"][font color="#000000" size="1"]&copy; 2003 Stika Guru • Site Design by [a href="http://www.jbinteractive.net.au"]JB Interactive[/a] • [a href="mailto:webmaster@stikaguru.com.au"]Email Webmaster[/a][/font][/font] [/div][/td] [/tr]
i took out the [p] tags, put a [br] tag instead of the upper [p][/p] and i added some more height attributes


--will
     
Mac Elite
Join Date: May 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Jul 20, 2003, 10:10 PM
 
Thanks so much guys, both solutions worked well!!

Me ->
Mr T ->
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:11 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2