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?
Printable View
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.
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
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.