How to write paragraph within a limited space

-1

I'm just learning html, I was sent to the university to make an html page which I never had before html so I have no other to learn alone, I searched for as much information as possible but I have to do it fast since I They gave only 7 days (adding that I have other subjects to see), so I ask for patience.

I have a paragraph and I want to place it on the right of the page, up to that point because with <p allign="right"> </p> it is done, but that does not measure up to where the paragraph goes to the left, and that I want to avoid, because I want me to arrive on the left to the middle of the page or as far as I see that I like it, and there I do not see how to do it, and I know that there are experts here who take me out of doubt, because I can not find what I want in Google. That would be a doubt, because I have many, for example, how to make a href is fixed on a part of the page without moving with images that you put, how to create a button that redirects to another html page you have. I would like you to help me how to handle html as if I were writing in Word

    
asked by CHRISTIAN MARCELO HERRERA ROJA 14.12.2018 в 04:08
source

1 answer

0

You can try this:

In your html file

<div class="parrafo-container">
<p class="parrafo">Lorem ipsum dolor sit amet consectetur adipisicing elit. Incidunt 
laborum ut, culpa tempora itaque hic velit dolores, corrupti quod vel nobis possimus 
sapiente praesentium nihil maiores reiciendis blanditiis non quidem!</p>
</div>

In your css file

.parrafo-container {
  display: flex;
  justify-content: flex-end;
}
.parrafo {
  width: 50%;
}
    
answered by 14.12.2018 в 14:56