Jump to content


Photo

Spaces On A Text Line


  • Please log in to reply
3 replies to this topic

#1 daddyalfie

daddyalfie

    Advanced Member

  • Member
  • PipPipPipPip
  • 241 posts
  • LocationNorth Carolina

Posted 21 November 2016 - 02:04 AM

Long time no see!

 

I have an easy one, (I think!)

 

In this little poem (prayer) I want to have the words "Childrens Prayer" to appear on the same line as the bottom line but with considerable space added.

 

<p>Thank you Lord for the world so sweet,<br>
Thank you for the food we eat.<br>
Thank you for the birds that sing,<br>
Thank you, God, for everything.</p>                         Children’s Prayer

 

Any suggestions?

 

Alfie

 

 


  • 0

#2 LSW

LSW

    Cybersecurity Advocate

  • Moderators
  • 8,114 posts
  • LocationAlaska

Posted 22 November 2016 - 12:02 PM

You could do it dirty and use a lot of blank spaces using ASCii code.

 

But the best way would be wrap the "children's Parayer" in a Span tag, and give the span tag a left margin, that should do it.

<p>Thank you Lord for the world so sweet,<br>
Thank you for the food we eat.<br>
Thank you for the birds that sing,<br>
Thank you, God, for everything.<span margin-left: 20em>Children’s Prayer</span></p> 

You just need to figure out what distance and what form it takes, em, % pixels, inches. I think I got the coding right but it has been a long time, so if it does not work just look up the correct format for inline margins, but I think that is right.


  • 0
Thank You, Migwetth, Gunalche’esh, Ha’w'aa, Danke

“In the 19th Century there was only Army and Navy.
In the 20th Century we got air power as the third dimension of war.
In the 21st Century, Cyber is the 4th dimension of war.
It is another form of weapon and for unlimited range in a very high speed with a very low signature.”
-- Maj. Gen. Amos Yadkin, Commander of Israeli Defense Intelligence, 2006 - 2010

#3 daddyalfie

daddyalfie

    Advanced Member

  • Member
  • PipPipPipPip
  • 241 posts
  • LocationNorth Carolina

Posted 23 November 2016 - 03:24 AM

Brilliant!

 

Thanks,  Alfie


  • 0

#4 LSW

LSW

    Cybersecurity Advocate

  • Moderators
  • 8,114 posts
  • LocationAlaska

Posted 23 November 2016 - 12:22 PM

Cheers!


  • 0
Thank You, Migwetth, Gunalche’esh, Ha’w'aa, Danke

“In the 19th Century there was only Army and Navy.
In the 20th Century we got air power as the third dimension of war.
In the 21st Century, Cyber is the 4th dimension of war.
It is another form of weapon and for unlimited range in a very high speed with a very low signature.”
-- Maj. Gen. Amos Yadkin, Commander of Israeli Defense Intelligence, 2006 - 2010




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

★★★★★ 5 Star Rated Web Developer Course - check it out now!