Try to use this trick:
.ellipsis {
overflow: hidden;
width: 60px;
direction: rtl;
margin-left: 15px;
white-space: nowrap;
}
.ellipsis:after {
position: absolute;
left: 0px;
content: "...";
}
<p class="ellipsis">ert3452654546</p>
More Related Contents:
- How to draw this chart in html and CSS? [closed]
- Change a HTML5 input’s placeholder color with CSS
- Bootstrap NavBar with left, center or right aligned items
- How do I select an element based on the state of another element in the page with CSS?
- Bootstrap Center Vertical and Horizontal Alignment
- Select arrow style change
- What is the best way to clear the CSS style “float”?
- How to use particular CSS styles based on screen size / device
- How to make the items in the last row consume remaining space in CSS Grid?
- Wait for fonts to load before rendering web page
- Responsive CSS triangle with percents width
- How can I center elements horizontally or vertically with Twitter Bootstrap?
- List of CSS vendor prefixes?
- @font-face works in IE8 but not IE9
- Create webfont with Unicode Supplementary Multilingual Plane symbols
- position: absolute without setting top/left/bottom/right?
- Z-index with before pseudo-element
- Select inputs and text inputs in HTML – Best way to make equal width?
- Animating max-height with CSS transitions
- How can I make a fieldset legend-style “background line” on heading text?
- Float a div above page content
- How to override global CSS in a CSS module file?
- Why does clip-path (and other properties) affect the stacking order (z-index) of elements later in DOM?
- font-face with wrong MIME type in Chrome
- What is the difference between :before and ::before?
- How do I detect the user’s browser and apply a specific CSS file?
- Why box-sizing is not working with width/height attribute on canvas element?
- Center fixed div with dynamic width (CSS)
- How to use images in css with Webpack
- SASS calculate HSL Difference between 2 colours