Re: CSS bottom

64 views
Skip to first unread message

Remi Grumeau

unread,
Nov 1, 2012, 6:17:54 PM11/1/12
to iphone...@googlegroups.com
Well, i'm really not sure about bottom: 0px. Perhaps it exists but i've never seen it.
Bottom alignment is a common issue in CSS.
There is two different way to do this:
CSS only: position: fixed; top: 100%; height: 100px; margin-top: -100px;
But well... there is a hell of a lot to say about fixed positioning with mobile browsers

Other solution if you know a bit of Javascript, you can use a fixed layout and put your contents inside an iScroll view.
But then, detecting "real" available viewport height is even worse to deal with.

Sorry, i don't really have one single bullet-proof solution for this...


Remi


On Thu, Nov 1, 2012 at 8:35 PM, Kimmax <kim.nue...@hotmail.de> wrote:
Hey, I just started using Google Adsense and I want to show my Ads on the bottom of screen.
Normaly I just would use CSS and the "bottom: 0px" rule, but anyway it isn't working. I also tried to use margin-bottom and I set the position to relative too.
Here is an example what I get with the following CSS:

<div style="position: relative; display: inline; height: 50px; background-color: transparent; bottom: 0px;">


Thank you for help,

Kim

 

--
You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group.
To post to this group, send email to iphone...@googlegroups.com.
To unsubscribe from this group, send email to iphonewebdev...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
 
 

Kimmax

unread,
Nov 2, 2012, 10:37:58 AM11/2/12
to iphone...@googlegroups.com
yes, thank you again. Your CSS code works perfectly!
Thank you,
Kim
Reply all
Reply to author
Forward
0 new messages