@spencersRus donât even sweat it. There was a time when even the Glide Devs didnât know how to do HTML. We all need pointers to get us going. This is an easy one. Ready?
Wrap those image tags in div tags like so:
<div><img src="[your 1st image url]"></div>
<div><img src="[your 2nd image url]"></div>
Take a look at that in your app. My guess is now youâre going to have the opposite problem. The images will have no space between them. Okay, so letâs use some simple CSS to give them some breathing room.
In the first div tag for the first image add a style attribute like so:
<div style="margin-bottom:10px;"><img src="[your 1st image url]"></div>
<div"><img src="[your 2nd image url]"></div>
Now that top image has 10 pixels of space between itâs bottom edge and the image below it.
You could get the same effect by instead adding the style attribute to the div tag of the second image and putting the 10px of space for its top margin, like so:
<div><img src="[your 1st image url]"></div>
<div style="margin-top:10px;"><img src="[your 2nd image url]"></div>
or you can use style attribute on both and give each of them 5px on top and bottom which would together equal 10px:
<div style="margin-top:5px;margin-bottom:5px"><img src="[your 1st image url]"></div>
<div style="margin-top:5px;margin-bottom:5px"><img src="[your 1st image url]"></div>
You can also use "margin:5px 0 5px 0;â to do that, which is a quicker way of doing margins around the entire element. With the first of those 4 numbers being top margin, the second being the right margin, third being bottom margin and 4th being left margin.
This is basic stuff, but once you start getting the gist of using style attributes in
Youâll be using it all over your app. Just google what CSS style youâre trying to do: âCSS align my textâ or âCSS add space around imageâ
Pretty much any style you can think of has been figured out by folks using CSS, and google is filled with solutions.
Good luck!