More languages
More actions
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
height:300px; | height:300px; | ||
margin-right:25px; | margin-right:25px; | ||
margin-top:10px; | |||
overflow:hidden; | overflow:hidden; | ||
display: flex; | display: flex; |
Revision as of 16:38, 16 September 2023
.essay-flex{
display:flex;
flex-direction:row;
justify-content:flex-start;
align-items:flex-start;
}
.essay-picture{
width:25%;
border-radius:5px;
height:300px;
margin-right:25px;
margin-top:10px;
overflow:hidden;
display: flex;
align-items: center;
justify-content: center;
}
.essay-picture img{
object-fit:cover;
height:inherit;
transform:scale(1);
transition:transform 0.4s;
}
.essay-picture img:hover{
transform:scale(1.1);
transition:transform 0.4s;
}
.essay-content{
width:75%;
}
.essay-small{
font-size:0.8em;
}
.essay-big{
font-size:1.2em;
}
.essay-offset{
margin-left:15px;
}
/* mobile view */
@media screen and (max-width: 768px) {
.essay-flex{
display:flex;
flex-direction:row;
flex-wrap:wrap;
justify-content:center;
}
.essay-picture{
width:80%;
height:240px; /*80% of 300 which is the height for desktop view*/
margin:0 auto;
}
.essay-content{
width:100%;
}
}