What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Center an object in HTML while having it at location '0' from the top...

Center an object in HTML while having it at location '0' from the top...
Author: Message:
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Center an object in HTML while having it at location '0' from the top...
quote:
Originally posted by lhunath
quote:
Originally posted by raceprouk
The easiest way is to use CSS, and use

code:
vertical-align : top;
align : center;


1. Vertical align isn't even supported in many many browsers, such as, Internet Explorer.
2. Align: center won't work on iframes, but it would on a table containing an Iframe, since what it does is align the content of an object, rather than the object itself.
I never specified what element to assign the attributes to, instead leaving that up to whoever uses it. If you use attach those attrs to the <body> element or a <td>, then you'll get the right effect.

Also, I use vertical-align, and it works in both Mozilla and IE.

This post was edited on 09-11-2004 at 02:51 PM by RaceProUK.
[Image: spartaafk.png]
09-11-2004 02:51 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Center an object in HTML while having it at location '0' from the top... - by .blade// on 09-10-2004 at 04:34 PM
RE: Center an object in HTML while having it at location '0' from the top... - by fluffy_lobster on 09-10-2004 at 06:53 PM
RE: Center an object in HTML while having it at location '0' from the top... - by .blade// on 09-10-2004 at 06:59 PM
RE: Center an object in HTML while having it at location '0' from the top... - by fluffy_lobster on 09-10-2004 at 07:07 PM
RE: Center an object in HTML while having it at location '0' from the top... - by .blade// on 09-10-2004 at 07:21 PM
RE: Center an object in HTML while having it at location '0' from the top... - by lhunath on 09-10-2004 at 09:46 PM
RE: Center an object in HTML while having it at location '0' from the top... - by .blade// on 09-10-2004 at 09:55 PM
RE: Center an object in HTML while having it at location '0' from the top... - by k776 on 09-10-2004 at 10:06 PM
RE: Center an object in HTML while having it at location '0' from the top... - by RaceProUK on 09-10-2004 at 10:31 PM
RE: Center an object in HTML while having it at location '0' from the top... - by fluffy_lobster on 09-11-2004 at 11:21 AM
RE: Center an object in HTML while having it at location '0' from the top... - by Banks on 09-11-2004 at 12:34 PM
RE: Center an object in HTML while having it at location '0' from the top... - by lhunath on 09-11-2004 at 01:36 PM
RE: Center an object in HTML while having it at location '0' from the top... - by RaceProUK on 09-11-2004 at 02:51 PM
RE: Center an object in HTML while having it at location '0' from the top... - by lhunath on 09-12-2004 at 09:33 AM
RE: Center an object in HTML while having it at location '0' from the top... - by RaceProUK on 09-12-2004 at 10:40 AM
RE: Center an object in HTML while having it at location '0' from the top... - by lhunath on 09-12-2004 at 10:58 AM
RE: Center an object in HTML while having it at location '0' from the top... - by RaceProUK on 09-12-2004 at 11:03 AM
RE: Center an object in HTML while having it at location '0' from the top... - by BART SIMPSON416 on 09-12-2004 at 11:42 AM
RE: Center an object in HTML while having it at location '0' from the top... - by lhunath on 09-12-2004 at 12:02 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On