Centering a layers-built site in a browser

Advertisement

I'm new to Dreamweaver 8 and I began building my site in
layers. My problem is, I can't get the site to remain in the center
of the browser's window. What I want is when the window is
maximized, the page will be centered. ...when the window shifts to
a smaller size, the page will still be centered. The site, however,
will remain the same width. All I'm able to change now is the
coordinates of the layers ... but what I guess I want is for all
the elements to be controlled by a "master" layer?

Advertisement

You are using absolutely positioned div. At least that is
what I assume
since you mentioned changing coordinates. The easiest patch
would be to wrap
everything in a "wrapper" div. Position this wrapper div
relatively, not
absolutely. Give it a defined width and set the margins to 0
for top and
bottom and auto for left and right. Something like this:
#wrapper {
width: 780px;
margins: 0 auto;
If you want to support the centering in IE5 you will need to
text-align the
body center and text-align the wrapper back to left.
#body {
text-align: center;
#wrapper {
width:780px;
margins: 0 auto;
text-align: left; /* Kill centering of text cascade */
Bryan Ashcraft (remove brain to reply)
Web Application Developer
Wright Medical Technologies, Inc.
=============================
Macromedia Certified Dreamweaver Developer
Adobe Community Expert (DW) ::
http://www.adobe.com/communities/experts/
"Montigue" <[email protected]> wrote in
message
news:e6cgfh$25l$[email protected]..
> I'm new to Dreamweaver 8 and I began building my site in
layers. My
> problem is,
> I can't get the site to remain in the center of the
browser's window. What
> I
> want is when the window is maximized, the page will be
centered. ...when
> the
> window shifts to a smaller size, the page will still be
centered. The
> site,
> however, will remain the same width. All I'm able to
change now is the
> coordinates of the layers ... but what I guess I want is
for all the
> elements
> to be controlled by a "master" layer?
>
>
>

November 30, -0001

Centering a layers-built site in a browser

I'm new to Dreamweaver 8 and I began building my site in layers. My problem is, I can't get the site to remain in the center of the browser's window. What I want is when the window is maximized, the page will be centered. ...when the window shifts to

Help! My iweb app has just completely stopped working. It won't allow me to create a new site or open a previously built site. Please help, my deadline is fast approaching.

Help! My iweb app has just completely stopped working. It won't allow me to create a new site or open a previously built site. What should I do? Please help, my deadline is fast approaching.What system and iWeb versions are you running? What happens

How do I execute "wget" to archive whole sites for offline browsing

I ran across this post: <If you find some good online sites, you can use "wget" to archive the whole site to your machine for offline browsing. I use the following: <alias getsite='wget -k -r -N --random-wait -np' I would like to try this

When I try to preview my site in the browser it will only show the tablet version.

Hello, I am having an issue with 'preview in browser'. When I try to view the desktop version of a site in preview it will only bring up the tablet version no matter what design editor I am on. I tested it out on a few designs with tablet versions an

Navbar not visible in published site using Chrome browser

Hi guys, This is my first attempt at using iWeb (or building a website) and I'm stuck with the following problem. I have create a small site and published it to a local folder. Google Chrome is my default browser so when I open the index.html file fo

When i visit sites with live streams sites (justin ustream) browser freezes

Hi I got a huge problem everytime i visit a site like justin.tv veetle ustream freedocast or only a site with a live stream in it my browser freezes and i ned to close it it stops to react sometimes i hear a sound on justin but the picture of the str

IWeb 09 site crashes when browses via Safari

Hi I recently found that when I visit my own iWeb made site via Safari, like a good boy, all Apple Safari suddenly quits on nearly every visit. Any help or advice as to why this is happening, I heard of IE crashing on iWeb made sites, but Safari shou

Templates not containing content in Muse built site

I am currently upgrading a clients website and have recently got into designing using Muse and thought I would try out the BUsiness Catalyst system to host it all etc. I wanted to use muse for the more static opages and the the blog for case studies

Get error message when trying to display page or site in any browser...

Problem signature:   Problem Event Name:    APPCRASH   Application Name:    Muse.exe   Application Version:    2014.3.0.1176   Application Timestamp:    54d3f16d   Fault Module Name:    KERNELBASE.dll   Fault Module Version:    6.3.9600.17278   Fault

How do I make a site with full browser sized images look right on different desktop monitors

If I cannot get an answer to this question, I will have to cancel my subscription. I have contacted support to no avail, and there is no place else to go for help. My vertically scrolling site looks great on my laptop, but when published the layout i

Can I use "In-browser editing" with my site hosted externally?

Hi I have my own reseller account  here in the UK. I designed and created my own CMS, but as I've designed my first site in Muse, I thought I'd give the "In-browser editing" facility a go. Does this still work if my website is hosted externally,

Newly built website not allowing users to open pdfs in browser

We just got a new website. None of us who work here can open pdfs from our site in a browser (at least not automatically), even though we all open other sites' pdfs in a browser automatically. So we're thinking it's something wrong with our site, but

Why do visited sites not show in 'grey' after returning to browse as did in previous versions?

I visit a site from the browse page and if it isn't the site that I wanted, I return to the browse page. The sites visited used to show up in grey colour in previous sites to prevent one revisiting a site that did not meet requirementsCould you check

Positioning of  "overhanging logo"  in centered design

if i have a centered table design (tables/content aligned to center on page and therefore moving with browser resizing) and then want a logo to "overhang" the table. My first thought was to use an AP Div and float the logo over the top edge of t

Safari Apple start page, top sites and history blurry

I was wondering if anyone else is experiencing this? I recently installed a new graphics card HD 6950 and I noticed right away that apple.com on safari as well as top sites and history browser is blurry. It's clear for a split second that slowly beco

Running jave apps in web browser

Hi, I'm (very obviously) new to java. Longer term I'm looking to develop a distributed application using java. I recently saw a java app that ran in a clients web browser. I assumed that the browser was using java applets, it wasn't. The web page I w

Muse site not displaying correctly when 'Published' to BC

Hi all Strange incidents happening with a Muse site I'm designing for a client. When I use the Publish feature (which uploads the site to the default Business Catalyst domain you get with the Muse subscription) it throws  the elements all over the pl

Website site looks fine in Dreamweaver but...

So I am creating my own website for the first time and after a bunch of problems, I've ran into one I am unsure of how to fix. ngkevin-art.com/about.html This is how it looks like in Dreamweaver and how I want it to look: http://i.imgur.com/wlOIR.jpg

Preview Site On iPad / iPhone

I have viewed my site using the browser preview, but is it not possbile to preview on the iOS devices too? Would be easier than then throwing it live and having to see what works. I dont mean setting up the alternative layouts by the way, the site do

How to make tables similar to apple site?

Is anyone aware of any tutorials on how to make tables similar to http://www.apple.com/support/leopard/ Thanks!Look at the code. Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== h