What is the best (e.q. the simplest) way to put a page in webdesigner so, that it is shown in your browser centred, aswell as horizontal as vertical?
What is the best (e.q. the simplest) way to put a page in webdesigner so, that it is shown in your browser centred, aswell as horizontal as vertical?
There's no easy way to have vertical centering. You'd need a Javascript for it.
John.
Hi John
Could this method be used ?
Code:<style type="text/css"> body { position: relative; top: 50%; margin-top: -240px /* Half height of page */ } </style>
Edit: Pop up photos offset with this method
Last edited by Drwyd; 01 May 2011 at 09:25 PM.
Tutorials: The Basics of Web Design - Tips and Tricks - Creating a Nav Bar - Video Tutorials - Stretchy Buttons - Manual Nav Bars
Well, as I say, it's not that easy.
You can see that this doesn't work well if your page is actually higher tan the browser window. Besides it ruins rollowers, pop-up and other effects.
John.
Bookmarks