HighDots Forums  

centered FRAME at all times

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss centered FRAME at all times in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
caelvin
 
Posts: n/a

Default centered FRAME at all times - 08-05-2004 , 01:13 PM






Hi everyone...

I got two little questions, that pretty much solves the same problem. I
created a site with a TABLE as the main part of the site. It has the size of
710x480. In that TABLE I have all my elements as LAYERS more or less. The bg is
a jpg in the table.

Problem # 1: It should have no border of the bg color AND it should always be
centered, no matter how much I stretch the window. Which leads me to problem #
2.

How can I LOCK the layers that I built in the TABLE to the TABLE, that when
I'm able to center the TABLE, the layer stay always in the same position in the
browser. It should all be appliable for Explorer mostly.

You can look at a test site @:

http://ethantom.com/TEST/index.htm

Thanks in advance for quick suggestions and help.

caelvin


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: centered FRAME at all times - 08-05-2004 , 01:25 PM






Bad news -

Quote:
In that TABLE I have all my elements as LAYERS more or less
Never put absolutely positioned page elements directly into a table. Never.

Oh - I see you haven't done this after all - lucky boy.

Quote:
Problem # 1: It should have no border of the bg color AND it should
always be
centered, no matter how much I stretch the window.
What is "it"? The table? The layers? Your nose?

Quote:
How can I LOCK the layers that I built in the TABLE to the TABLE, that
when
I'm able to center the TABLE, the layer stay always in the same position
in the
browser. It should all be appliable for Explorer mostly.
Investigate the SnapLayer extension from PVII for this kind of task, or use
CSS to wrap all of the body content in a centering division.

http://www.projectseven.com/

Then, of course, you'll need to get rid of this -

<!--
function mmLoadMenus() {
if (window.mm_menu_0725161903_0) return;

(please pour gasoline on it and burn it)

and use the methods taught here -

http://www.projectseven.com/tutorials/navigation/snapmenus/index.htm

or

http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm

and here's an example you can analyze -

http://www.projectseven.com/tutorials/autolayers/

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"caelvin" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi everyone...

I got two little questions, that pretty much solves the same problem. I
created a site with a TABLE as the main part of the site. It has the size
of
710x480. In that TABLE I have all my elements as LAYERS more or less. The
bg is
a jpg in the table.

Problem # 1: It should have no border of the bg color AND it should
always be
centered, no matter how much I stretch the window. Which leads me to
problem #
2.

How can I LOCK the layers that I built in the TABLE to the TABLE, that
when
I'm able to center the TABLE, the layer stay always in the same position
in the
browser. It should all be appliable for Explorer mostly.

You can look at a test site @:

http://ethantom.com/TEST/index.htm

Thanks in advance for quick suggestions and help.

caelvin




Reply With Quote
  #3  
Old   
caelvin
 
Posts: n/a

Default Re: centered FRAME at all times - 08-05-2004 , 04:23 PM



Hi Murray...

Thanks for your response, BUT I'm as smart as I was before.

Quote:
Problem # 1: It should have no border of the bg color AND it should
always be
centered, no matter how much I stretch the window.

What is "it"? The table? The layers? Your nose?
IT is what I used in the table, or better said the bg with the arc, and then
the red border of red. The center of the browser window should be the arc and
the buttons in the middle. That's what is IT.

Quote:
In that TABLE I have all my elements as LAYERS more or less

Never put absolutely positioned page elements directly into a table. Never.

Oh - I see you haven't done this after all - lucky boy.
Please tell me why I am a lucky boy?!?

I know there is a better way to do the fly out menues, but that wasn't the
problem I had. The problem was to keep the TABLE/FRAME centered at all times in
the browser window.

Do you have any suggestions for that, now that I hope I was clearer?!?

Thanks again

C.




Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: centered FRAME at all times - 08-05-2004 , 04:43 PM



Quote:
IT is what I used in the table, or better said the bg with the arc, and
then
the red border of red. The center of the browser window should be the arc
and
the buttons in the middle. That's what is IT.
Change this -

<center>
<table width="780" height="460" border="0" align="left" cellpadding="0"
cellspacing="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<tr>
<td height="454"><div align="left"> <strong><img
src="site-design1G.jpg" name="BG" width="780" height="410" id="BG"></strong>
</div></td>
</tr>
</table>
</center>

to this -

<table width="780" height="460" border="0" align="center" cellpadding="0"
cellspacing="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<tr>
<td height="454"><div align="left"> <strong><img
src="site-design1G.jpg" name="BG" width="780" height="410" id="BG"></strong>
</div></td>
</tr>
</table>

Quote:
Please tell me why I am a lucky boy?!?
Because your post implied that you had put the layers INTO the table, but
you did not do that.

Of course, now that you have a centered table, you need to worry about the
position of the AP divisions. You can solve that using the SnapLayer
extension from PVII - http://www.projectseven.com/ - or by wrapping
everything between <body> and </body> in a centering and relatively
positioned division.

Quote:
I know there is a better way to do the fly out menues
You'd better honk, there is! 8)

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"caelvin" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi Murray...

Thanks for your response, BUT I'm as smart as I was before.





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.