Search
 
SCRIPT & CODE EXAMPLE
 

CSS

contain background image within container

.left{
    width: 65%;
    color: white;
    padding: 20px;
    height: 67vh;
    background-color: hsl(0, 0%, 0%);
    background-image: url("/room-homepage-master/images/desktop-image-hero-1.jpg");
    background-size: contain;    
}
Comment

PREVIOUS NEXT
Code Example
Css :: animation background css 
Css :: Responsive Web Design with HTML5 and CSS 
Css :: how to round input border 
Css :: css clearfix for floats with display table and clear both 
Css :: como diminuir uma imagem em css 
Css :: css waves background 
Css :: css offset border 
Css :: css links 
Css :: control one swiper with other 
Css :: css make hover on parent child move 
Css :: background image syntax in css if it in folder 
Css :: css change image height 
Css :: form css design 
Css :: operador css contain attr 
Css :: create variable in css 
Css :: in 10 seconds fade in a card html css 
Css :: css display inline 
Css :: preserve aspect ratio image css 
Css :: filter css 
Css :: Changing Image depending on Mobile or Desktop HTML & CSS 
Css :: css 100vh minus header 
Css :: google font smooth 
Css :: min width css 
Css :: scss background color 
Css :: css outline shorthand 
Css :: css loop 
Css :: flex-grow css 
Css :: how to render css in flask 
Css :: add logo html css 
Css :: css pseudo elements 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =