473,379 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

@media handheld on Windows Mobile 5/Treo

English Wikipedia allows registered users to define custom styles. I
created a set of styles inside a @media handheld wrapper to see if I
could override the default absolute positionings and floats of the major
page elements in IE on my Sony Treo with Windows Mobile 5.

Without the custom CSS, on both the regular computer and the handheld,
the content's beginning is offset from the top and left, and on the
handheld it only takes up a fraction of the full width of the screen.

When I add my CSS *without* the @media handheld {} wrapper, then the
display looks as I expect on both the computer AND the Treo, with the
content beginning in the upper left-hand corner of the window and taking
the full width of the screen. Also, a pair of navigation links that has
display: none by default in Wikipedia's styles is displayed because I
override that with display: block, and other style overrides of mine appear.

Once I wrap my CSS in @media handheld {}, though, *some* of my styles
continue to take effect on the Treo, but others don't. The navigation
links that I reveal continue to appear, and other text formatting
changes appear as well. But on the Treo the content offset has returned.
I can't figure out why some but not all of the rules would continue to
be effective on the Treo when I use @media handheld.

The CSS is below. Any ideas? I realize I can't give you a Wikipedia page
to look at, since you'd have to be logged in under my account to see all
this anyway. But I wondered whether any of you know more generally about
this inconsistency.

@media handheld {
div#jump-to-nav { display: block; font-style: italic; }

div#topicon { position: static; }

body div#column-content {
display: block;
position: static;
float: none;
clear: both;
margin-left: 0px;
margin-top: 0px;
width: 100%;
padding-left: 0px; }

body div#column-content div#content {
display: block;
position: static;
float: none;
clear: both;
margin-left: 0px;
margin-top: 0px;
width: 100%;
padding-left: 0px; }

div#column-one { position: static; padding-top: 1em; }

#p-logo { position: static; }

.portlet h5 { margin: 0.5em 0; }
.portlet li { white-space: nowrap; }

#p-cactions { position: static; padding-left: 0; white-space: normal; }
#p-cactions h5 { display: block; }
#p-cactions ul { margin: 0; }

#p-personal { position: static; white-space: normal; }
#p-personal h5 { display: block; }
#p-personal ul { text-align: left; padding: 0; }

div#p-logo { display: none; }

#footer { margin: 1em 0; }

}
Oct 7 '07 #1
1 2492
Harlan Messinger wrote:
[snip]

With some fresh resolve, I created my own simple test case and found out
that IE on my handheld will process all the rules meant for @media
handheld if I place each of the rules in its own @media handheld
wrapper! Problem solved, though annoying.
Oct 7 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: mio | last post by:
Hi We have a WEB-based application (developed in Visual Studio 2005) running on handheld devices in Internet Explorer on Windows Mobile 2003. The application needs to print tickets on a...
0
by: Nick White [MSFT] | last post by:
Hello fellow Microsoft Windows Mobile and Embedded enthusiasts: I invite you to peruse the list below of upcoming technical chats and Webcasts offered by the Windows Mobile and Embedded Devices...
1
by: news.xs4all.nl | last post by:
Hello, I'm quite new to this... I can't get my simple Java test program running on a Wireless Handheld with Windows Mobile 5. I have installed Creme and can run simple test program's using a...
4
by: ink | last post by:
Hi All, I am trying to build an image capture user control using DirectShow to be used in an existing C# application. It needs to have a view finder/ preview window and be able to take...
7
Niheel
by: Niheel | last post by:
Apple just threw a massive blow to the world of Windows Mobile or any Mobile Hardware/OS company with the launch of iPhone2.0 and the developer SDK. Apple and Jobs have done what Gates did to the...
1
by: =?Utf-8?B?UmV4RWFzdA==?= | last post by:
Hi, I am making my first Windows Mobile app, a simple countdown timer for my Windows Mobile 6.1 Pocket PC (in C#). The alarm works fine in general. However, if I've let my Pocket PC sit idle for...
2
by: bolineni | last post by:
Hi i developed a windows mobile application in .net cf3.5. when i am trying to deploy this application on palm os device by using "Palm One quick install", it is giving 'Incompatible HandHeld...
0
by: MxMave | last post by:
Hi, I have developed a project for a handheld device. I have added a shortcut to the startup directory, the only problem being is that sometimes the app will load on device boot but subsequently...
3
by: kishorereddyambati | last post by:
How can I stream audio file from server and play in Windows Mobile using windows media player without downloading that file into mobile the mobile device?
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.