473,698 Members | 2,426 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

@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 2512
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
1407
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 Bluetooth printer, which is accomplished by preparing a RTF-file on the server and then downloading this file to the handheld device. We use a third-party application (PrintPocketCE from FieldSoftware) for the actual printing of the downloaded file....
0
2216
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 Group. For the full list of upcoming Windows Mobile and Embedded chats, to review archived chat sessions, or to request a reminder for a chat, visit http://msdn.microsoft.com/embedded/community/community/chats/. Also, the Windows Mobile and...
1
6521
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 .lnk file. Now I have created this .lnk file: 255#"\windows\CrEme\bin\CrEme.exe" -Of -verbose -classpath '\Application\;\Application\' -jar \Application\JavaTest3.jar
4
26283
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 still images.
7
15489
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 world of PCs. Back in the 90s when the desktop OS wars were going on, Microsoft was more open to third-party developers than they have been with their Mobile OS. This is the exact tactic Apple and Steve Jobs have used for ensuring the success of the...
1
2342
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 more than 1 minute and the display turns off, then the alarm will not sound until I press the "power" button to wake it back up. This makes the timer pretty much useless: for example, what if I want to be woken up after a 30-minute nap? When I...
2
2276
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 Device file" error. can i install windows mobile apllication on palm os device or not. If not possible is there any ways to deploy on palm os devices. Pls Help me ASAP.
0
1045
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 "dissapear" behind the OS desktop as other programs are loaded. Ive been trying to find a workaround for this issue. How might i be able to tell when the application is "not on-top"? Ive had a look into setting the focus of the app and...
3
3076
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
8678
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9166
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9030
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7737
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.