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 image at very bottom of page (again!!)

Placing image at very bottom of page (again!!)
Thread Tools
Mac Elite
Join Date: May 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Aug 7, 2003, 10:43 PM
 
Hey guys,

I posted a thread a few weeks ago asking about how to place an image at the very base of a webpage. The site I was doing at the time rendered this fine in Safari, but Internet Explorer muddled it all up.

Well I have a very similar problem now!

I am making a site for a real estate company. At the base of each page, I am placing a graphic that normally sits at the bottom of their letterhead.

I used Synotic's code to do this:

[style type="text/css"]
body { background: #000 url(http://www.domain/images/basepic.jpg) bottom right no-repeat }
[/style]

And it looks great in Safari, Camino and Omniweb. But Mac IE and Windows IE bugger it up!

The very early draft of the page is at:

http://www.kenbucklandrealestate.com.au/draft

The base is supposed to look like this:


(looks like this is Safari, Camino, Omniweb)

However, IE for Mac places it in the middle of the page??:


And Windows IE doesn't place anything there at all!


Why oh why? Any ideas fellas?
     
Senior User
Join Date: May 2001
Location: Nottingham, UK
Status: Offline
Reply With Quote
Aug 8, 2003, 04:22 AM
 
It's because CSS sucks

Why don't you just add another row onto the bottom of your table, and put the graphic as the the cell-background? That will work in 100% of browsers guaranteed (apart from lynx )

Let me know if you want more details.
     
Senior User
Join Date: Mar 2002
Location: Chicago, IL
Status: Offline
Reply With Quote
Aug 8, 2003, 04:01 PM
 
I wouldn't say that CSS sucks; rather, IE's anemic implimentation of it that leaves much to be desired. For the most part, however, it is supported well enough by modern browsers to use, as long as one is careful to avoid certain browser quirks.

You could add another table, as suggested, since you are already using tables for layout, but here is another option:

To fix it using CSS, do this:

Code:
body {background-image: url(images/hills.gif); background-position: bottom right; background-repeat: no-repeat; }
Frequently, IE supports something, but is picky about how you word things.

[edit: This works in IE Win 5, not sure about IE Mac, but I'm pretty sure it will. Can anyone varify this?]
We need less Democrats and Republicans, and more people that think for themselves.

infinite expanse
     
Mac Elite
Join Date: May 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Aug 8, 2003, 07:53 PM
 
Originally posted by york28:
I wouldn't say that CSS sucks; rather, IE's anemic implimentation of it that leaves much to be desired. For the most part, however, it is supported well enough by modern browsers to use, as long as one is careful to avoid certain browser quirks.

You could add another table, as suggested, since you are already using tables for layout, but here is another option:

To fix it using CSS, do this:

Code:
body {background-image: url(images/hills.gif); background-position: bottom right; background-repeat: no-repeat; }
Frequently, IE supports something, but is picky about how you word things.

[edit: This works in IE Win 5, not sure about IE Mac, but I'm pretty sure it will. Can anyone varify this?]
Thanks for the responses. The reason I used CSS over a table cell background was because last time I needed to do something similar, that worked fine in everything except...you guessed it, Internet Explorer! It seemed to *always* place a gap underneath the table image. Always.

So I thought this was a more modern and simpler solution.

Your CSS worked very well thanks! Sily IE. Works perfectly in IE Win, but IE Mac has a slight issue where it will load the image in the bottom of the *window*, not the bottom of the page. So if the user goes to the site and the window shows only half of the contents of the page, the image will be resting at the bottom of that.

But who honestly uses Internet Explorer for Mac anymore? I've always made sure my sites work in all browsers, but I'm tempted to let this one slide. Am I a bad person for not supporting a browser that has been discontinued and basically replaced by Safari? (and wont be bundled with Mac OS anymore either)

Okay not to be too dependant on you guys or anything, but there is one other slight issue:

For the navigation at the top, I have the 4 section links in one cell. The cell background is an image of the same blue colour, with a white stripe across the top.

Safari:


Mac IE:


Windows IE:


It appears that IE completely ignores this image! Does IE only read table background images? (not cell background images?)
(Last edited by thePurpleGiant; Aug 8, 2003 at 08:40 PM. )
     
Senior User
Join Date: May 2001
Location: Nottingham, UK
Status: Offline
Reply With Quote
Aug 11, 2003, 05:19 AM
 
You must make sure the

background="whatever.gif"

is in the [td] tag and not the [tr] tag, otherwise IE will not show it.

Let us know if that works
     
Mac Elite
Join Date: May 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Aug 11, 2003, 10:40 PM
 
Originally posted by derbs:
You must make sure the

background="whatever.gif"

is in the [td] tag and not the [tr] tag, otherwise IE will not show it.

Let us know if that works
Hey! That worked!! Thanks!! I wonder why Dreamweaver would place it in the [tr] tag then? What is the difference between these tags?
     
Senior User
Join Date: Mar 2002
Location: Chicago, IL
Status: Offline
Reply With Quote
Aug 13, 2003, 11:33 AM
 
tr is row; td is cell. Support for background images in table elements varies by browser; some will display the image in any tag, others, as is this case, only certain ones.
We need less Democrats and Republicans, and more people that think for themselves.

infinite expanse
     
   
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:17 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