views:

105

answers:

2

I've seen this page here and I really like the breadcrumbs at the bottom. How do I achieve this behavior ? The breadcrumbs at the bottom stays at the bottom and nomatter if you're scrolling down, it is still there.

http://developer.apple.com/iphone/library/navigation/index.html?section=Resource+Types&topic=Getting+Started

Please someone help me with some good code. Because I have no clue.

+3  A: 
#breadcrumbs {    
    position: fixed;
    bottom: 0px;
    width: 100%;

    /* Set your desired height
     * and other factors like you would
     * any other div.
     */
}

position: fixed fixes your element to an edge of the viewer, in this case, to the bottom. If you want to fix the element to the top, you would go top:0px, or left side 30px from the bottom, you'd go left:0px;bottom:30px. I use this a lot for my CMS admin pages (I put nav bars and logout at the top). It's a great tool, but bear in mind that the iPhone does not support native CSS :fixed, nor does older IE.

dclowd9901
A: 

Did you look into using javascript or a jQuery plugin to make the breadcrumb for you? Then you can use dclowd9901's answer to position it

fudgey
With it built right into CSS, that's a bit like taking a chainsaw to a fruitfly. `Fixed` should work just fine.
dclowd9901
@dclowd9901: what if it was a really big fruitfly? hehe
fudgey
Lol, well played.
dclowd9901