An open API service indexing awesome lists of open source software.

https://github.com/mdbootstrap/bootstrap-max-width

Responsive Max Width built with Bootstrap 5. Learn how to make a container or an element max width within its parent.
https://github.com/mdbootstrap/bootstrap-max-width

bootstrap bootstrap5 bootstrap5-template respon responsive responsive-design size sizing

Last synced: 9 months ago
JSON representation

Responsive Max Width built with Bootstrap 5. Learn how to make a container or an element max width within its parent.

Awesome Lists containing this project

README

          

Responsive Max Width built with Bootstrap 5. Learn how to make a container or an element max width within its parent.

Check out [Bootstrap Max Width Documentation](https://mdbootstrap.com/docs/standard/extended/max-width/) for detailed instructions & even more examples.

## Examples

Width utilities are generated from the utility API in `_utilities.scss`. Predefined classes support `25%`, `50%`, `75%`, `100%`, and `auto` by default. In order to make an element take the entire width of its parent add a `.w-100` class to it.

![Bootstrap Dark Mode](https://mdbootstrap.com/img/Marketing/github/max-width/basic.png)

```html

Width 25%

Width 50%

Width 75%

Width 100%

Width auto

```

You can also use `max-width: 100%;` utilities as needed.

```html
wild landscape
```

## Max width relative to viewport

You can also use utilities to set the width and height relative to the viewport with the `vw` (viewport width) values.

```html

Min-width 100vw

Width 100vw

```

## How to use?

1. Download MDB 5 - free UI KIT

2. Choose your favourite customized component and click on the image

3. Copy & paste the code into your MDB project

[▶️ Subscribe to YouTube channel for web development tutorials & resources](https://www.youtube.com/MDBootstrap?sub_confirmation=1)

___

## More extended Bootstrap documentation