Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8841279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:40:32+00:00 2026-06-14T10:40:32+00:00

I have a problem with an existing ASP.Net Mobile Website that current renders correctly

  • 0

I have a problem with an existing ASP.Net Mobile Website that current renders correctly under android phones pre 4, iphones, and blackberries. This question will take a little bit of set up but..

CSS

tr
{
    color: #00ff00;
}

#MasterBackButton
{
    text-decoration: none;
    border-radius: 5px;
    background-color: #2f7ac1;
    padding: 5px;
    cursor: pointer;
    color: #ffffff;
}

Here is the sample page with html being produced by asp.net (NOTE: NO tables tags at all)

<!DOCTYPE html>

<head>
    <title>CSS Problem</title>
    <link id="MainStyleSheet" rel="stylesheet" type="text/css" href="http://10.0.0.108/m/styles/default.css">
</head>
<body id="Body1">
<form method="post" action="/m/" id="MainForm" autocomplete="off">
     <div class="aspNetHidden">
         <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTcwODg1MTE2Ng9kFgJmD2QWAgIBD2QWAgIBDxYCHgZhY3Rpb24FAy9tL2RkHHvpHhoukujQ1p/Rk9kY9OLmIKo=" />
     </div>
     <div style="float: right;">
          <div id="MasterBackButton" onclick="javascript:history.back()">
              Back
          </div>
     </div>
</form>
</body>

Just a page with a rounded button to go back.

Here it is under android 2.3 as expected:

enter image description here

Now here is that same page under 4.03

enter image description here

Suddenly the text is green…. For some reason the tr’s styling is applying to the div even though there is not a single table element on the page.

Now, I hit desktop mode on the browser and:

enter image description here

And it suddenly works. WEIRD. Ok, i use wget and to download the exact html and put that file on the web server:

enter image description here

And it works! So why is the ASP.Net page all messed up? I cannot for the life of me figure out why the tr’s styling is effecting the div. If I change the CSS from tr to table it still changes it. So far any table element I have tried does it. It is almost like in standard more the stock android browser is treating everything like a table element.

I can confirm this all happens on a real Galaxy S 3 and not just the emulator.

This is only a single as simplified as possible example that I can get for a website that has numerous errors. I had a previous question that was ranked down and eventually closed that has full site screen shots that you can see of this happened. And even that is better than some of the pages within the site. https://stackoverflow.com/questions/13368693/mobile-css-broke-android-4 If you want to see those screenshots.

Edit: Picture showing that the asp and html pages have the same identical markup.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:40:34+00:00Added an answer on June 14, 2026 at 10:40 am

    Well I finally figured it out. I have 51degrees installed to auto redirect mobile users. I created a fresh web site and once I added back all my existing references this bug roared its ugly head again. Even if I have no config for 51degrees, nothing in the web.config referring to it just referencing it is enough to cause the problem. We were jsut about to upgrade from the lite to the premium version this week until I was stopped by the design errors. They must some how be interfering with responses to new android browsers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an existing complex website built using ASP.NET MVC, including a database backend,
I am converting an existing ASP.NET website to use jQuery Mobile controls. The first
I have an existing ASP.NET web application that I'm converting to MVC 1.0. The
I have a problem with VS2008: When I create a new ASP.Net website, no
I have written an ASP.NET web page with C# behind that runs an existing
I have some existing (largish) ASP.NET web applications that people are starting to visit
I have an ASP.NET (MVC) website that is serving static content (images) as well
I have a problem adding ADO.Net Entity Data Model to my existing project, or
I have an existing ASP.Net Application, into which I am attempting to introduce MVC2.
Problem I am trying to take an existing ASP.NET web application and manually migrate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.