- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
CSS max-width property
The max-width property is used to set the maximum width that a box can be. The value of the max-width property can be a number, a length, or a percentage.
<html> <head> </head> <body> <p style = "max-width:100px; height:200px; border:1px solid green; padding:5px; margin:10px;"> This paragraph is 200px high and max width is 100px This paragraph is 200px high and max width is 100px </p> <img alt = "logo" src="/css/images/logo.png" width = "100" height = "100" /> </body> </html>
- Related Articles
- The max-width Property in CSS
- Use CSS max-width property for responsive image
- Use CSS max-width property responsive for video player
- Perform Animation on CSS max-width
- CSS width property
- CSS max-height property
- CSS min-width property
- CSS outline-width property
- Animate CSS width property
- Set min-width and max-width of an element using CSS
- The max-height Property in CSS
- Usage of width property with CSS
- Animate CSS border-left-width property
- Animate border-top-width CSS property
- The border-width Property in CSS

Advertisements