<p> incorrect if background color is not used

I am developing a mobile site, so I use CSS to make everything as fluid as possible.

I have a strange difficulty. In the div container, I have <p>one that should fill the width of the div. I tried width:auto, width:100%... nothing works in Android-browser. Here are some examples:

iOS (correct):

Correct orientation

Android (wrong, not fully distributed, more text added than iOS version so you can see what I'm talking about):

enter image description here

Both screenshots are taken from the respective emulators.

, ... , <p> , Android <p> div ( IOS). , ( , LOL), , .

, <p>, CSS, ... - Android-? , ?

.

+5
4

, , , "" png <p>, ... .:) , - Android-, , .

+5

Android. , , .

, , , , .

"" , .

URL- base64:

background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
+2

In the settings of your mobile browser, find something called "Auto Fit Pages" and turn it off. This option (on Android) is enabled by default. Turn it off and your text will flow as it should.

+1
source

could be a div problem or any element above that

.

if you give a fixed width to the p element, does it work well?

0
source

All Articles