/    Sign up×
Community /Pin to ProfileBookmark

to the middle of the browser…

how to push this page to the middle of the browser? i try to use alot of code…and it cannot seem to work…pls help me…

[url]http://www.tanfwc.net/index2.html[/url]

to post a comment
HTML

10 Comments(s)

Copy linkTweet thisAlerts:
@SamApr 05.2004 — do you mean how to vertically center it?

if so, check [URL=http://www.wpdfd.com/editorial/thebox/deadcentre3.html]this[/URL] out.
Copy linkTweet thisAlerts:
@tanfwcauthorApr 05.2004 — cannot really get it to center...view the page again...
Copy linkTweet thisAlerts:
@SamApr 05.2004 — why do you have a <tr> in there?

Thats not tabular, and there's not even a <table> or a <td> to accompany it...
Copy linkTweet thisAlerts:
@PeOfEoApr 05.2004 — http://forums.webdeveloper.com/showthread.php?s=&threadid=31841'

I just posted about centering here

http://knights.europe.webmatrixhosting.net/hybrid.html example, this is with a hybrid table/css layout. Here is how one might center just a div http://bluerobot.com/web/css/center1.html exactly the same as what I did with a table though.
Copy linkTweet thisAlerts:
@Ben_RogersApr 06.2004 — [i]Originally posted by PeOfEo [/i]

http://forums.webdeveloper.com/showthread.php?s=&threadid=31841'

I just posted about centering here

http://knights.europe.webmatrixhosting.net/hybrid.html example, this is with a hybrid [b]table[/b]/css [b]layout[/b]. Here is how one might center just a div http://bluerobot.com/web/css/center1.html exactly the same as what I did with a table though.[/QUOTE]


Peo, :mad: don't fail on us now..
Copy linkTweet thisAlerts:
@PeOfEoApr 06.2004 — [i]Originally posted by omega [/i]

[B]Peo, :mad: don't fail on us now.. [/B][/QUOTE]
??? Table Css hybrid layouts are not a bad thing even though I do not prefer to use one myself. If they are done right they will still be accessable and standards complient. Some people *cough* buntine *cough* just do not want to give up their tables though.
Copy linkTweet thisAlerts:
@Ben_RogersApr 06.2004 — Yes. As for table/css hybrids.. I used to think they were OK, but I remember on my first post here a lot of people here trashed them.. and all my "best" layouts are 100% CSS so... (:)
Copy linkTweet thisAlerts:
@tanfwcauthorApr 06.2004 — [i]Originally posted by samij586 [/i]

[B]why do you have a <tr> in there?

Thats not tabular, and there's not even a <table> or a <td> to accompany it... [/B]
[/QUOTE]


still unable to do it...can guide me?
Copy linkTweet thisAlerts:
@Paul_JrApr 06.2004 — Add
<i>
</i>position: absolute;
top: 50%;
left: 50%;
margin-left: -275px;
margin-top: -100px;

To the

[FONT=courier new]#container[/FONT] styles. I roughly guessed on the -100px for the top, since I don't know how tall exactly the <div> is. What that does is position the <div> 50% from the left of the screen and 50% from the top. Then it uses negative left and top margins, which are half of the <div>'s width and height, respectively, to move the <div> so it's exactly centered on the page. Refer to the link Sam posted for more info.
Copy linkTweet thisAlerts:
@shimonApr 06.2004 — [URL=http://www.wpdfd.com/editorial/thebox/deadcentre4.html]Dead Centre[/URL]
×

Success!

Help @tanfwc spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...