Thread View: adobe.golive.windows
5 messages
5 total messages
Started by joan_oakland
Wed, 04 Mar 2009 03:57
Centering pages built with layers
Author: joan_oakland
Date: Wed, 04 Mar 2009 03:57
Date: Wed, 04 Mar 2009 03:57
1 lines
718 bytes
718 bytes
I've built a website using layers (not tables) in GoLive (Windows). How do I center it in the browser window? (Because my layers overlap, I can't put them into a table.) Is it possible?
Re: Centering pages built with layers
Author: Murray
Date: Wed, 04 Mar 2009 12:20
Date: Wed, 04 Mar 2009 12:20
54 lines
2098 bytes
2098 bytes
> Is it possible?
Certainly, although when you finish you will still have a sow's ear of
problems with content in your absolutely positioned containers ('layers').
Do you know about those? The most troublesome one is the one that occurs
when you browse to the page and increase the browser's text size display.
The problem is caused by the inherent nature of absolute positioned
elements - they expand vertically (or even overflow if a height has been
specified for them) without regard for any other content on the page.
At any rate here's how to center -
It depends on whether you are using absolute positioning on the page, as to
which method might be best, but in either event, this will work -
Change this -
</head>
to this -
<style type="text/css">
#wrapper { width:760px; margin:0 auto;position:relative; }
/* 760px will display on an 800px screen maximized browser window without */
/* horizontal scrollbars. */
</style>
</head>
change this -
<body ...>
(the ellipsis represents any other attributes that might be mentioned in the
body tag, and SHOULD NOT BE INCLUDED EXPLICITLY!)
to this -
<body ...>
<div id="wrapper">
and this -
</body>
to this -
<!-- /wrapper -->
</div>
</body>
and see if that helps.
--
Murray
Re: Centering pages built with layers
Author: Nate_Baldwin
Date: Wed, 04 Mar 2009 15:40
Date: Wed, 04 Mar 2009 15:40
2 lines
699 bytes
699 bytes
Here's a GoLive-y tutorial on that: <http://mindpalette.com/tutorials/center_layers/>
Re: Centering pages built with layers
Author: joan_oakland
Date: Sun, 08 Mar 2009 04:54
Date: Sun, 08 Mar 2009 04:54
1 lines
624 bytes
624 bytes
Thanks. The tutorial was very illuminating!
Re: Centering pages built with layers
Author: joan_oakland
Date: Sun, 08 Mar 2009 04:55
Date: Sun, 08 Mar 2009 04:55
1 lines
712 bytes
712 bytes
thanks, very helpful!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads