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 > ie works, firefox won't, when using a doctype. help.

ie works, firefox won't, when using a doctype. help.
Thread Tools
mdc
Addicted to MacNN
Join Date: Feb 2003
Location: NY²
Status: Offline
Reply With Quote
Sep 15, 2005, 02:00 PM
 
i've been sitting here for the past hour playing around with this page.

i am on windows right now, so i haven't tested it in safari, only firefox. i assume it works in safari, since it does in firefox.

my goal with the page is to have the main image be 100% of the browser, the grey bar to be at the bottom, and then when you scroll down text is right below the grey bar. any overflow of the image should be hidden. (resize the page vertically so see what i mean)

as you are looking at that page it is fine. *but* the page has no !doctype, and thus doesn't validate. i know, not the end of the world, but still.

if i put in a transitional doctype, like on this page it looks exactly the same in internet explorer, but in firefox the image doesn't show up. it does not like the height: 100%; in the css.
if i put the height as the height of the image it shows the overflow below the grey bar.

anyone have any ideas?
fix the css? forget about the doctype?

at the end of the day, i don't care if it doesn't validate, this is partially for general knowledge, and i wouldn't mind finding out why it's not working.

thanks.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Sep 15, 2005, 02:12 PM
 
You have two html tags on your doctyped page, one of which is not terminated.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
mdc  (op)
Addicted to MacNN
Join Date: Feb 2003
Location: NY²
Status: Offline
Reply With Quote
Sep 15, 2005, 02:31 PM
 
oops, that wasn't supposed to be there. sorry.
got rid of that, didn't help.
     
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Oct 14, 2005, 06:22 PM
 
Why don't you try XHTML 1.1 (Strict), and make sure it validates before you test it?
     
Grizzled Veteran
Join Date: Apr 2004
Location: Nagoya, Japan • 日本 名古屋市
Status: Offline
Reply With Quote
Oct 16, 2005, 08:46 AM
 
height: 100% does not make something 100% the height of the browser window, only its container. Firefox is displaying the page correctly, and IE is incorrect.

There are few tutorials online of how to get something 100% of the window's height using valid xhtml and css. A search on Google should dig them up.
     
   
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 07:36 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