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

  • SEARCH
  • Home
  • 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 6811623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:21:00+00:00 2026-05-26T20:21:00+00:00

I am developing a mobile site, so I’m using CSS to make things as

  • 0

I am developing a mobile site, so I’m using CSS to make things as liquid as possible.

I’m having an odd difficulty. Within a div container, I have a <p> that is supposed to fill the width of the div. I’ve tried width:auto, width:100%…nothing seems to work on Android Browser. Here are examples:

iOS (Correct):

Correct orientation

Android (Incorrect; not fully spreading; added more text than iOS version so you can see what I’m talking about):

enter image description here

Both screenshots taken from respective emulators.

Here is the odd thing, though… If I give the class applied to these <p>‘s a background color, the Android browser then allows the <p> to fill the full width of its parent div (looks identical to iOS). The really odd part, though, is that if I make the background color transparent (I thought I had it tricked lol), then it goes back to doing as shown in the example.

So, I have a <p> only properly referencing its CSS if it has a background-color applied… am I stupidly overlooking something, or is this some issue with Android Browser? Any ideas how to fix it?

Thanks for your time.

  • 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-05-26T20:21:01+00:00Added an answer on May 26, 2026 at 8:21 pm

    While it may not be the best solution, I finally just made an “invisible” transparent png and set it as the <p>‘s background, and that fixed the issue… if you can call it fixing. 🙂 I have to assume it is some kind of error in Android’s Browser, as I tried this in every browser, desktop and mobile.

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

Sidebar

Related Questions

I'm developing a mobile site using Zend framework, and the site has two possible
I'm developing a mobile site for iPhone using jQuery. I have a hidden div
I'm developing a mobile site using IUI . It's a framework that makes web
I am currently developing a mobile site using jQuery mobile. I have one simple
We're developing a windows mobile 6.1 application and would like to make the user
I am developing a mobile site for iphone, and i want it to be
I'm developing a site for mobile devices (such as iPhones and Androids). And I
I am developing as site for mobile devices which requires the user to select
I'm developing a web site in ASP.NET/C# that is targeted at mobile users. What
I'm developing a mobile site in HTML for use on 2 Blackberry models, one

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.