Angular image directive with responsive behavior (so it never becomes larger than their parent element) and special styles.
Examples Responsive imagesImages in CoreUI for Angular are made responsive with fluid
property. This applies max-width: 100%;
and height: auto;
to the image so that it scales with the parent element.
In addition to our border-radius utilities, you can use prop thumbnail
to give an image a rounded 1px border appearance.
Give an image a rounded
border appearance.
Align images with the align
property.
import { ImgModule } from '@coreui/angular';
@NgModule({
imports: [ImgModule,]
})
export class AppModule(){}
cImg
directive
name description type defaultalign
Set the horizontal aligment. ""
| "start"
| "end"
| "center"
""
fluid
Make image responsive. boolean
false rounded
Make image rounded. boolean
false thumbnail
Give an image a rounded 1px border appearance. boolean
false
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4