Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Learn2 problem with image spacing

Started by Norma White 8 years ago · 0 replies · 683 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 Andy Miller, 7 days ago
0 117 7 days ago
General · by lynbor, 1 month ago
3 445 2 weeks ago
General · by lynbor, 3 weeks ago
7 564 2 weeks ago
General · by Harry, 2 weeks ago
0 164 2 weeks ago
General · by Old Man Umby, 1 month ago
2 310 4 weeks ago