I have been searching for an answer and trying different things without success. Could someone kindly let me know how to put spaces between two objects by using PHP code? (Please note: I use WordPress, in case that makes a difference.)
I know how to do so vertically with </br>
, but what is the horizontal equivalent to that?
Please note that I don't know a whole lot about code, so any detailed information you are able to provide is very much appreciated in advance - thank-you very much!
To create extra spaces before, after, or in-between your text, use the (non-breaking space) extended HTML character.
To insert blank spaces in text in HTML, type for each space to add. For example, to create five blank spaces between two words, type the entity five times between the words. You do not need to type any spaces between the entities.
I guess what you want is:
But this is usually not a nice way to align some content. You better put your different content in
<div>
tags and then use css for proper alignment.
You can also check out this post with useful extra info:
You should put a padding in each object. For example, you want a space between images, you can use the following:
img{ padding: 5px; }
That means 5px paddin for ALL sides. Read more at http://www.w3schools.com/css/css_padding.asp. By the way, studying a lot before attempting to program will make things easier for you (and for us).
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