This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > August 2004 > centered FRAME at all times
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
centered FRAME at all times
|
|
| caelvin 2004-08-05, 7:15 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
| |
| Murray *TMM* 2004-08-05, 7:15 pm |
| Bad news -
> 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.
> 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?
> 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/tutoria...menus/index.htm
or
http://www.projectseven.com/tutoria..._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@macromedia.com> wrote in message
news:cetpsh$534$1@forums.macromedia.com...
> 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
>
| |
| caelvin 2004-08-05, 7:15 pm |
| Hi Murray...
Thanks for your response, BUT I'm as smart as I was before.
always be[color=darkred]
> 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.
[color=darkred]
>Never put absolutely positioned page elements directly into a table. Never.
[color=darkred]
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.
| |
| Murray *TMM* 2004-08-05, 7:15 pm |
| > 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>
> 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.
> 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@macromedia.com> wrote in message
news:ceu50k$hqf$1@forums.macromedia.com...
> Hi Murray...
>
> Thanks for your response, BUT I'm as smart as I was before.
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|