Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

Learn2 problem with image spacing

Started by Norma White 8 years ago · 0 replies · 586 views
8 years ago

I am using Learn 2 for a community project and having some issues with the way Learn2 spaces images.

Firstly it makes a large block of vertical space before and after the image. I cannot find the CSS causing this - is it something to do with the video-container?
With texthere, I expect the top of the image to be at, or within 1 line of the top of texthere. And I expect the text to continue a line after the bottom of the image. This is the behaviour in GRAV with Quark.

I am using the following in custom.css
.floatleft{ float: left; margin-right: 1em;}
.floatright{ float: right; }

and (mystery.jpg?classes=floatleft) (or floatright) in docs.md.

floatright is fine, except for the vertical issue.
floatleft fails to leave any space between the image and the text to the right - I have tried many variations of margin and padding to no avail. Is there something preventing what I am trying to do?

Thanks

Suggested topics

Topic Participants Replies Views Activity
General · by jean-louis67, 3 weeks ago
2 308 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 310 3 weeks ago
General · by Veehem, 4 weeks ago
0 263 4 weeks ago
General · by milkboy, 4 weeks ago
0 264 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago