Skip to content

Instantly share code, notes, and snippets.

@JayPanoz
JayPanoz / float-and-flood.css
Last active January 15, 2023 00:07
eBook CSS to make the image float and the text flood when the image doesn’t fit
.float-image {
width: 100%;
float: left;
padding: 0;
display: block;
text-align: center;
margin: 0.75em 0;
margin-top: 1vh; /* will collapse if float + margin-top because your entire CSS will be ignored by legacy RMSDK if you’re using margin: 1vh 0; */
margin-bottom: 1vh;
}