Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS: text-align-last doesnt work in chrome?

text-align-last is supposed to work in all modern browsers. Im using Chrome 38 and this css property doesn't seem to work - in Deverloper Tools, it strikes out this line.

Any ideas why it would happen? Maybe a Chrome 38 bug? I've found out that it was some kind of an issue in past version of Chrome.

[October 30, 2016 Edit: I'm pretty late with this, but if anyone still finds this answer, text-align-last is supported since Chrome 47, released in December 2015]

like image 584
David T Avatar asked Nov 06 '14 19:11

David T


People also ask

How do I align text in Chrome?

you can use any 'ctrl' but press 'shift' according to cursor position you need like for right press right shift otherwise press left shift.

How do I fix the alignment in CSS?

To align things in the inline direction, use the properties which begin with justify- . Use justify-content to distribute space between grid tracks, and justify-items or justify-self to align items inside their grid area in the inline direction.

How do I align text to the bottom left in CSS?

Use the text-align property to align the inner content of the block element. Use the bottom and left properties. The bottom property specifies the bottom position of an element along with the position property. The left property specifies the left position of an element along with the position property.


1 Answers

It has not been implemented in Chrome. There is a bug set to RESOLVED FIXED, but there does not seem to be any information about an actual fix having been implemented. MDN info says that there is support from Chrome 35 but links to this bug.

In dev tools in Chrome 38 the declaration is struck-out but a tooltip text says that the property value is invalid. In Chrome 40 this has been fixed: the tooltip says that the property name is invalid (meaning that it is not recognized/supported by the browser). Enabling “Experimental Web Platform Features” does not seem to help. So the property remains unimplemented.

Edit: As noted in the question now, Chrome supports the feature from version 47, and browser support is good (though not perfect) otherwise, too, see http://caniuse.com/#feat=css-text-align-last

like image 76
Jukka K. Korpela Avatar answered Sep 22 '22 19:09

Jukka K. Korpela