4
I’m trying to limit the text "in Japanese" that will be displayed in some places on the page, it doesn’t seem that php can handle this type of character well.
Example of php:
echo substr("あ え い う お", 0, 3);
Here shows only "あ" and, should show "あ え い", ie 3 characters.
So I tried with css:
style="overflow: Hidden; width:105px;"
in this case it simply ignores and does not limit anything, where all text with Japanese characters goes to the screen.
nossaaa! was worth a lot! as I searched this and did not find it!! briogadao!
– Roberval Sena 山本
Alias, this thing that put a code together, as an example and working is simply too... people like Noob have a lot of difficulty.... thank you for being clear and objective!
– Roberval Sena 山本
We don’t always get it, but we’re there for it ;)
– Bacco
Continuing with the topic, I would like to know if invez de 105px, I can use a amount of characters, for example 10 characters?
– Roberval Sena 山本
gave sequence to the question here in the following topic: http://answall.com/questions/118183/comor-limitar-display-de-texto-em-uma-div-por-qtd-characters
– Roberval Sena 山本
I think it’s too similar to be a new question. Anyway, you can’t do this with CSS alone. What you can do is a mix of CSS and PHP, to hide a part, but show when clicked. And already have this answered here on the site. http://answall.com/questions/110953/como-mostrar-somente-x-caracteres-em-uma-div/110958?s=3|0.0415#110958
– Bacco