I am trying to add a space to the start of my slim template where I have had to break the text due to a link, I cant for the life of me work this one out
.mdl-cell.mdl-cell--4-col-phone.mdl-cell--8-col-tablet.mdl-cell--12-col-desktop
| Don't have an account?
= link_to 'Create one here.', sign_up_path
found after some deeper research that the slim way is to use >
so the new code is, which forced whitespace at the end of the first line
span> Don't have an account?
= link_to 'Create one here.', sign_up_path
with a simple quote ' the slim add a space
.mdl-cell.mdl-cell--4-col-phone.mdl-cell--8-col-tablet.mdl-cell--12-col-desktop
| Don't have an account?
'
= link_to 'Create one here.', sign_up_path
You can use
to add space between html elements:
.mdl-cell.mdl-cell--4-col-phone.mdl-cell--8-col-tablet.mdl-cell--12-col-desktop
| Don't have an account?
= link_to 'Create one here.', sign_up_path
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With