Skip to Content
Palm webOS
book

Palm webOS

by Mitch Allen
July 2009
Intermediate to advanced
464 pages
12h 25m
English
O'Reilly Media, Inc.
Content preview from Palm webOS

Scene Basics

Backdrop

global-base.css

Change the background of an individual scene or every scene within the application.

Scene HTML

<div class="my-backdrop"></div>

Base selector

Optional selectors

Required child

my-backdrop
  
body
  

Notes:

  • my-backdrop is a developer-defined selector (you can define any selector name); this technique allows each individual scene to have a unique background.

  • Use the body selector to style the body element; a simple solution to style all of the scenes in your application.

Fixed Header

global-lists.css

Floating header atop your scene; visually identical to the View Menu.

Scene HTML

<div class="palm-header"></div>
<div class="palm-header-spacer"></div>

Base selector

Optional selectors

Required child

.palm-header
.left
.right
 
.palm-header-spacer
  

Page Header

global-lists.css

The topmost element of the scrollable content; commonly used atop preference scenes.

Scene HTML

<div class="palm-page-header multi-line">
     <div class="palm-page-header-wrapper">
        <div class="icon"></div>
        <div class="title">
          My title
        </div>
     </div>
</div>

Base selector

Optional selectors

Required child

.palm-page-header
.multi-line
.icon
.palm-page-header-wrapper
.palm-page-header-wrapper
  
.palm-page-header-wrapper > 
.icon
  
.palm-page-header-wrapper > 
.title
.left
.center
.right
.truncating-text
 

Notes:

  • palm-page-header-wrapper is a child element with a specified margin to compensate for the padding effect of -webkit-border-image.

  • palm-page-header-wrapper > .icon should be a 32 × 32px PNG centered on the div.

Scrim

global.css ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Palm® Pre™ for Dummies®

Palm® Pre™ for Dummies®

Chris Ziegler
My Palm® Pre™

My Palm® Pre™

Craig James Johnston, Joe Hutsko
Open sourcing webOS at LG Electronics

Open sourcing webOS at LG Electronics

Joseph Park, Steve Lemke, Lokesh Kumar Goel

Publisher Resources

ISBN: 9780596802097Errata Page