Forum Moderators: open

Message Too Old, No Replies

How can i center a frame from all directions (top,bottom, left ,right)

         

IT_Master

1:19 pm on May 13, 2004 (gmt 0)

10+ Year Member



How can i center a frame from all directions (top,bottom, left ,right)? Thank you in advance for your help

photon

1:32 pm on May 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Dead centre [wpdfd.com]

IT_Master

2:00 pm on May 13, 2004 (gmt 0)

10+ Year Member



This is so confusing :-)...i do not know if it is because of the flue and the massive headache i have but i dont seem to get it....i tried o right click on it and see the source code. It is a CSS. Thank you for the time you took to answer this.

photon

3:13 pm on May 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry, yes it is a CSS. Are you looking for a non-CSS solution?

IT_Master

4:01 pm on May 13, 2004 (gmt 0)

10+ Year Member



i tried to modify it and the whole hell broke loose...i guess that i am looking for a non-CSS solution although i know CSS is the way foraward

tedster

4:45 pm on May 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You asked about centering for a FRAME. Have you tried the conventional approach of nesting two framesets, one for the cols and one for the rows?

For example, if you wanted to center a frame that is 600x400, use an "empty" frame document that fills in the "padding" with your background of choice. It looks something like this:

<frameset cols="*,600,*">
<frame src="empty.html">

<frameset rows="*,400,*>
<frame src="empty.html">
<frame src="centered-content.html">
<frame src="empty.html">
</frameset>

<frame src="empty.html">
</frameset>