menuMDUIDocs
color_lens
The new mdui 2 based on Material Design 3 and Web Components is now available. Check out the mdui 2 documentation.

Media

mdui defines some classes for images and videos that can give them responsive characteristics and some predefined styles.

Image

Responsive

Add class .mdui-img-fluid to the img tag to make the image adapt to the width of its parent element.

Example
<img class="mdui-img-fluid" src="image.png" />

Rounded image

Add class .mdui-img-rounded to the img tag to give the image rounded corners.

Example
<img class="mdui-img-rounded" src="image.png" />

Circular image

Add class .mdui-img-circle to the img tag to make the image circular.

Example
<img class="mdui-img-circle" src="image.png" />

Video

Responsive embedded video

Add class .mdui-video-container to the parent element of an embedded video to make the video adapt to the width of the parent element.

Example
<div class="mdui-video-container">
  <iframe
    height="498"
    width="510"
    src="https://player.youku.com/embed/XNzUwOTk5MzE2"
    frameborder="0"
    allowfullscreen
  ></iframe>
</div>

Responsive HTML5 video

Add class .mdui-video-fluid to the video tag to make the video adapt to the width of its parent element.

Example
<video class="mdui-video-fluid" controls>
  <source src="video.mp4" type="video/mp4" /></video
>

CSS Classes

Class NameDescription
.mdui-img-fluidResponsive image
.mdui-img-roundedRounded image
.mdui-img-circleCircular image
.mdui-video-containerResponsive embedded video
.mdui-video-fluidResponsive HTML5 video