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:
lhunath
Full Member
***

Avatar
.{ Lord Daisy }.

Posts: 343
40 / Male / –
Joined: May 2004
RE: Center an object in HTML while having it at location '0' from the top...
quote:
Originally posted by fluffy_lobster
<body topmargin="0"><table align="center">...
Ewww!
God's sake.

HTML:
<iframe id="myframewhichiwantcentered" ....></iframe>
CSS:
#myframewhichiwantcentered {
position: absolute;
top: 0px;
width: [framewidth]px;
left: 50%;
margin-left: -[framewidth]px;
}

Don't do it in CSS, then don't do it at all, or perlease keep it XHTML compliant...
or if you can't be bothered to keep the CSS somewhere seperate; do it the lame way:

<iframe style="position: absolute; top: 0px; left: 50%; width: [framewidth]px; margin-left: -[framewidth]px;" .....></iframe>

Btw, Iframes are ghay =)

~lhun
{ -[Image: lhunath.gif]- }
09-10-2004 09:46 PM
Profile E-Mail 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