Try this:
div {
border: 1px solid black;
width: 70px;
overflow: hidden;
white-space: nowrap;
}
More Related Contents:
- Can't remove text decoration
- How to make double border on left only with thick outside and thin inside [duplicate]
- Why my HTML input field is ‘readonly’ by default [closed]
- Bootstrap height
- Centering in CSS Grid
- What are the implications of using “!important” in CSS? [duplicate]
- How to style the parent element when hovering a child element?
- How to make this arrow in CSS only?
- How to save CSS changes of Styles panel of Chrome Developer Tools?
- Bootstrap 3 two columns full height
- Why does IE9 switch to compatibility mode on my website?
- Why is vertical-align: middle not working on my span or div?
- Maintain image aspect ratio when changing height
- How to change the length/position of text-decoration:underline?
- IE6 + IE7 CSS problem with overflow: hidden; – position: relative; combo
- White space showing up on right side of page when background image should extend full length of page [closed]
- How can I truncate table cells, but fit as much as content possible?
- Make a nav bar stick
- How to show multiline text in a table cell
- How to prevent Chrome from changing font when autofilling username/password?
- Label text is wrapped but not indent second line
- Line height issue with inline-block elements
- HTML5 Required input styling
- display background color for the page & align texts at center
- how to make responsive website for all devices [closed]
- Does the id attribute of an HTML element have to be unique in the whole page?
- Why does CSS Grid layout add extra gaps between cells?
- how to remove the dotted line around the clicked a element in html
- Is it possible to achieve a -like effect without using the tag?
- Table vertical header?