Using CSS, of course…
label { display: block; width: 100px; }
The width
attribute is deprecated, and CSS should always be used to control these kinds of presentational styles.
More Related Contents:
- removing underline of a link [duplicate]
- Center and bottom-align flex items
- Grid of responsive squares
- How to change source of tag on hover?
- Heights rendering differently in Chrome and Firefox [duplicate]
- White space at bottom of anchor tag
- Embed image in a element
- Using CSS :before and :after pseudo-elements with inline CSS?
- Tools to selectively Copy HTML+CSS+JS From A Specific Element of DOM [closed]
- How to apply two CSS classes to a single element
- Why does percentage padding break my flex item?
- What makes the text on a element vertically centered?
- How to hide drop down arrow in IE8 & IE9?
- How to center the contents of a div [duplicate]
- Table tbody scroll in IE8
- difference between width auto and width 100 percent
- How can I prevent the scrollbar overlaying content in IE10?
- Change the color of a bullet in a html list?
- Font awesome is not showing icon
- CSS3 border-radius clipping issues
- CSS wrong appearance of border-radius on a nested div
- How to make a border overlay child div?
- Inverted Scooped corners using CSS
- Why does the ‘title’ attribute cause browsers to ignore my styles?
- CSS transform origin issue on svg sub-element
- transition for background-image in firefox?
- Is there a CSS not equals selector?
- Body height 100% displaying vertical scrollbar
- Scrollbar without fixed height/Dynamic height with scrollbar
- CSS Grid Row Height Safari Bug