Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Learn2 problem with image spacing

Started by Norma White 8 years ago · 0 replies · 629 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 jeremycherfas, 1 week ago
4 181 2 days ago
General · by lynbor, 6 days ago
2 122 3 days ago
General · by Old Man Umby, 1 week ago
1 100 1 week ago
General · by Sebastian, 1 week ago
1 124 1 week ago
General · by Andy Miller, 3 weeks ago
0 248 3 weeks ago