• Resolved zep101

    (@zep101)


    I want to make a link align right, this is the link:

    <a href="#"> Back to top </a>

    I can do it by doing:

    <p style="text-align: right;"><a href="#"> Back to top </a></p>

    The issue I have is that when it has <p> </p> it puts an added space in the text that I don’t want. Is there another way to do this?

Viewing 4 replies - 16 through 19 (of 19 total)
  • Hi guys,
    Not sure on this …. but I am afraid that there were a missunderstanding, from what I understand zep101 is tring to modiffy the text in the post editor (html) and not a php file he said he is adding the text in Dashboard/all pages/page/edit page so what he is doing is saved in the_content() variable inside the loop so he doesn’t need to use a child theme from my point of view you can edint in line the html code and all you have to do is to try another html tag that won’t occupy the hole row you can try or <span></span>
    Keep in mind this only holds if I understand your needs correct!

    Thread Starter zep101

    (@zep101)

    Yes I am doing all this in the post,or in my case page editor. not sure how that translates to a php file. I am probably over complicating, and I am a rookie and learning just enough now to be dangerous.

    In my first original post here I was asking if there was another way to do: <p style="text-align: right;"><a href="#"> Back to top </a></p> because it was adding an additional line space. If not I can live with this.

    I guess that now my over riding question is, is this an acceptable way of doing what I am doing. I not afraid to edit if I have to with php files but would prefer not to since I don’t know much about it. I am just starting to wrap my brain around html.

    So, how am I doing?

    So you can use the code you have now without any trouble another ideea is to learn about the <div> tag
    you can start here: https://www.w3schools.com/tags/tag_div.asp
    Regards

    Thread Starter zep101

    (@zep101)

    I will check it out.

    Thanks guy’s for all your help I have been learning a lot, I am going to mark this thread as resolved.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Align right’ is closed to new replies.