View Single Post
Old 05-23-2014, 07:16 AM   #14
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Abekonge View Post
You can put css like this on the element.

Code:
margin-top:80%;
for example.
But you should know that % in vertical margins are defined with respect to the width of the container, not the height (even if the height is fixed somehow).

So, for a 800x600 portrait screen, ignoring page margins, "margin: 80%" means 600*80/100 = 480 pixels, and in landscape orientation it means 800*80/100 = 640 pixels, which is more than the screen height, not a good idea if you ask me.
Jellby is offline   Reply With Quote