Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Vertical centering
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Wickerman
Novice

United Kingdom
11 Posts

Posted - 14 Sep 2006 :  17:06:23  Show Profile  Visit Wickerman's Homepage  Reply with Quote
Hi all,

I know it's easy to center the site horizontally within the main page settings dialog, but how can we center vertically? Wouldn't it be great if we could do this easily as well? This is most useful for sites with a set height that wouldn't have the need for vertical scrolling.

Any ideas?

T00N
Super User

573 Posts

Posted - 14 Sep 2006 :  17:22:21  Show Profile  Visit T00N's Homepage  Reply with Quote
No idea but I agree that it would be usefull.

Don't know if it is possible in css though.
Go to Top of Page

arov
Super User

Italy
448 Posts

Posted - 15 Sep 2006 :  09:35:42  Show Profile  Visit arov's Homepage  Reply with Quote
I don't know solution but you can use background image for delete vertical scroll to res. 1024x768 or 1280x1024.

View:

www.soundandsoul.it
www.studibibo.it
www.speziallapari.it

My sites...[4 |-|]

::arov::

Edited by - arov on 15 Sep 2006 09:59:20
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 18 Sep 2006 :  10:23:08  Show Profile  Visit s.dav's Homepage  Reply with Quote
There is a method to center web pages vertically but actually it is not fully implemented by new generation browsers so for now I suggest you to avoid center your pages vertically

Regards, Davide
Go to Top of Page

Wickerman
Novice

United Kingdom
11 Posts

Posted - 20 Sep 2006 :  15:19:48  Show Profile  Visit Wickerman's Homepage  Reply with Quote
OK thanks Davide. When will we see the new version of the editor? Looking forward to it.[2 H:)]
Go to Top of Page

T00N
Super User

573 Posts

Posted - 20 Sep 2006 :  16:47:04  Show Profile  Visit T00N's Homepage  Reply with Quote
Why not integrate this method with a footnote that it may not work in all browsers?

Same goes for 100% height, can be very usefull.
Go to Top of Page

petran
Super User

Netherlands
345 Posts

Posted - 18 Dec 2007 :  12:00:41  Show Profile  Visit petran's Homepage  Reply with Quote
This css code does the work:

#container{
position: absolute;
top: 50%;
left: 50%;
height: 300px;
width: 700px;
margin: -150px 0 0 -350px;
border: 1px solid #000;
}

but you need to specify the top en left in % instead of px.

Is this compatible with most browsers?

--------

regards

Petran
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 19 Dec 2007 :  08:54:15  Show Profile  Visit s.dav's Homepage  Reply with Quote
I'll make some tests but the release of the new version of very near so I'll try to exclude some "minor" changes or I'll be never able to release the new version ;-)

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000