Home › Forums › Design › CSS alignment of image and text › Reply To: CSS alignment of image and text
November 29, 2016 at 11:15 am
#248457
Shikkediel
Participant
This looks to be working alright:
.testimonial-content {
float: right;
max-width: calc(100% - 300px);
}
On larger screens in any case, it might be a good idea to put it inside a media query for the switching point. Trial and error tells me this is at 770px 768px.
@media screen and (min-width: 768px) {
.testimonial-content {
float: right;
max-width: calc(100% - 300px);
}
}