There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop mac malware motherboard mouse network networking outlook 2007 power printer problem ram restart router screen slow sound trojan usb virus vista vista 32-bit windows windows xp winxp wireless wmp
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
easy html question


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
fulleffect's Avatar
Junior Member with 21 posts.
 
Join Date: Feb 2004
25-Oct-2004, 02:36 AM #1
easy html question
would anyone here know why my iframe is centered (like it should be) in IE browsers, but not in mozilla or other mac based browsers? am i missing something? anyone know a way around it? anyone? bueler?
Shadow2531's Avatar
Distinguished Member with 2,629 posts.
 
Join Date: Apr 2001
25-Oct-2004, 11:06 AM #2
In each browser put javascript:alert(document.compatMode) in the address bar and press enter. If it's not css1compat, you probably don't have a proper document type specified in your code.

iframes are inline frames, so setting css text-align: center for the element that the iframe is in will center the iframe.

As always, test your page at http://validator.w3.org

example
__________________
10 ? "a line as the unending horizon"
20 ? "a curve as the rolling hillside"
30 ? "a point as a distant bird"
40 ? "a ray as the rising sun"
run

Last edited by Shadow2531 : 25-Oct-2004 11:34 AM.
fulleffect's Avatar
Junior Member with 21 posts.
 
Join Date: Feb 2004
28-Oct-2004, 04:22 AM #3
thanks a lot, that worked perfectly
fulleffect's Avatar
Junior Member with 21 posts.
 
Join Date: Feb 2004
28-Oct-2004, 10:17 PM #4
what if i need to iframes on one page. one right below the other, both centered, but different sizes?
Shadow2531's Avatar
Distinguished Member with 2,629 posts.
 
Join Date: Apr 2001
28-Oct-2004, 10:34 PM #5
Recheck the example linked above.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:36 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.