Go Back   CodingForums.com > :: Client side development > General web building > Building for mobile devices

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-24-2010, 07:21 PM   PM User | #1
dogherder
New to the CF scene

 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
dogherder is an unknown quantity at this point
Creating an iPhone-like App for mobile website

Hi all. I'm trying to create a mobile website that has the look and feel of a native iPhone app. Below is a mock-up for what I'm trying to go for:



Originally, I started with ul (unordered list) and changed the styling with css to create those iPhone like buttons, but I couldn't figure out how to embed those pictures/icons in there. Anyone have suggestions on how to do that?

Thanks!

dogherder is offline   Reply With Quote
Old 07-24-2010, 09:17 PM   PM User | #2
ahayzen
Regular Coder

 
ahayzen's Avatar
 
Join Date: Jun 2009
Posts: 110
Thanks: 8
Thanked 11 Times in 11 Posts
ahayzen is an unknown quantity at this point
Hi and Welcome to the Coding Forums

To add the images to a li use the code below.

Code:
<html>
<head>
<style type="text/css">
.x {
list-style-image:url('imageforx.gif');
}
.y {
list-style-image:url('imagefory.gif');
}
.z {
list-style-image:url('imageforz.gif');
}
</style>
</head>
<body>
<ul>
<li class="x">x</li>
<li class="y">y</li>
<li class="z">z</li>
</ul>
</body>
</html>
Andy
ahayzen is offline   Reply With Quote
Old 07-24-2010, 11:43 PM   PM User | #3
dogherder
New to the CF scene

 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
dogherder is an unknown quantity at this point
Nice! Thanks, Andy. You are awesome.
dogherder is offline   Reply With Quote
Old 07-25-2010, 11:20 AM   PM User | #4
Apostropartheid
The Apostate


 
Apostropartheid's Avatar
 
Join Date: Oct 2007
Posts: 3,215
Thanks: 16
Thanked 265 Times in 263 Posts
Apostropartheid is on a distinguished road
If you get the iPhone SDK, you will get access to a tool for building iPhone Web apps. Otherwise, there are many frameworks available which are similar (though sometimes not as slick.)
__________________
Blog | Twitter
Useful links: W3C HTML Validator | W3C CSS Validator | HTML 5 Guide
CF: HTML & CSS Resources/Tutorials Thread | HTML & CSS Posting Rules and Guidelines
Remember: no link, no code, no help!
Apostropartheid is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:54 AM.


Advertisement
Log in to turn off these ads.