I am always surprised at the added knowledge i can get from others when i give my opinion on a topic.
I am always surprised at the added knowledge i can get from others when i give my opinion on a topic.
you need to figure out how to break up strings, or apply styles appropriate to how you want to responsively display the data on smaller screens.
I am always surprised at the added knowledge i can get from others when i give my opinion on a topic.
So what do you want to do? What is your plan to fit the 5 kilos of marbles in the 1-kilo bag?
I am always surprised at the added knowledge i can get from others when i give my opinion on a topic.
You want to break the string to adjust to screen width, correct?
If that's the case, why does mobile versus not make one bit of difference?
Should you not just be focusing on the available width rather than the device type?
What are your plans to determine screen width? What's the algorithm you plan to use to determine where to insert breaks?
What are these long unbroken strings in the first place?
I am always surprised at the added knowledge i can get from others when i give my opinion on a topic.
Paul Ngom wrote:
If that's the case, why does mobile versus not make one bit of difference?
I don't really understand what you mean.
I can detect that the page call is coming from a mobile phone. So when this is the case, i calculate the width to feed to the div that will contain the string
What are these long unbroken strings in the first place?
They are reply messages.
Why not just adjust based upon the actual width of the screen, rather than guess?
CSS media queries are your best friend here.
Do these message not have spaces upon which the string will naturally break without all the brouhaha you are planning on going through?
I am always surprised at the added knowledge i can get from others when i give my opinion on a topic.
Paul Ngom wrote:Never heard of css media queries. I will find out and see if they can help.
Do these message not have spaces upon which the string will naturally break without all the brouhaha you are planning on going through?
They do but i am talking about line breaks.
I am always surprised at the added knowledge i can get from others when i give my opinion on a topic.