Just specify max-width: 100%
alone, that should do it.
More Related Contents:
- How can I make a div not larger than its contents?
- How to make an element width: 100% minus padding?
- How to make a div fill a remaining horizontal space?
- How to make div’s percentage width relative to parent div and not viewport
- Div width 100% minus fixed amount of pixels
- Width 100% with white borders around it. WHy?
- resizes wrong; appears to have unremovable `min-width: min-content`
- How do browsers calculate width when child depends on parent, and parent’s depends on child’s
- Word wrap a link so it doesn’t overflow its parent div width [duplicate]
- Blank Space To Right Of Webpage? (Hidden min-width?) [closed]
- div 100% width with other div fixed
- Trying to work on responsiveness of login form
- One flex/grid item sets the size limit for siblings
- Can ordered list produce result that looks like 1.1, 1.2, 1.3 (instead of just 1, 2, 3, …) with css?
- How do I get this CSS text-decoration override to work?
- Why does position:relative; appear to change the z-index?
- Align an element to bottom with flexbox
- Does opacity:0 have exactly the same effect as visibility:hidden
- Flexbox and Internet Explorer 11 (display:flex in ?)
- Is it possible to style a mouseover on an image map using CSS?
- HTML: Changing colors of specific words in a string of text
- Changing highlight color
- Why doesn’t “display: block” & “width: auto” stretch a button to fill the container? [duplicate]
- How to change content on hover
- Tooltip with HTML content without JavaScript
- Change color of one character in a text box HTML/CSS [duplicate]
- Stretching tag to fill entire
- Blank iFrame in IE
- text-decoration not working for visited state link
- Table with table-layout: fixed; and how to make one column wider