Widget:Carousel: Difference between revisions
From Jcastle.info
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<style> | |||
.item img { | |||
width: 100%; | |||
height: auto | |||
} | |||
.carousel { | |||
position: relative; | |||
width: 500px; | |||
height: 200px; | |||
} | |||
ol.carousel-indicators { | |||
position: absolute; | |||
bottom: 0; | |||
margin: 0; | |||
left: 0; | |||
right: 0; | |||
width: auto; | |||
} | |||
ol.carousel-indicators li, | |||
ol.carousel-indicators li.active { | |||
float: left; | |||
width: 33%; | |||
height: 10px; | |||
margin: 0; | |||
border-radius: 0; | |||
border: 0; | |||
background: transparent; | |||
} | |||
ol.carousel-indicators li.active { | |||
background: yellow; | |||
} | |||
</style> | |||
<div id="carousel" class="carousel slide" data-ride="carousel"> | <div id="carousel" class="carousel slide" data-ride="carousel"> |
Revision as of 23:26, 24 July 2017
<style> .item img {
width: 100%; height: auto
}
.carousel {
position: relative; width: 500px; height: 200px;
}
ol.carousel-indicators {
position: absolute; bottom: 0; margin: 0; left: 0; right: 0; width: auto;
}
ol.carousel-indicators li, ol.carousel-indicators li.active {
float: left; width: 33%; height: 10px; margin: 0; border-radius: 0; border: 0; background: transparent;
}
ol.carousel-indicators li.active {
background: yellow;
} </style>