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

    Knight of the Square Cubicle

  • Moderators
  • 8,073 posts
  • LocationJuneau AK

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
 

"There are 3 types of people: Those who can count and those who cannot."

 


#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

    Knight of the Square Cubicle

  • Moderators
  • 8,073 posts
  • LocationJuneau AK

Posted 23 November 2016 - 12:22 PM

Cheers!


  • 0

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

"There are 3 types of people: Those who can count and those who cannot."

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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