There is a block, and various phrase links should be placed on it. One of them I need to move to the right for a certain number of pixels.

How to do it?

Closed due to the fact that the essence of the question is not clear to the participants by Denis , pavel , user194374, rjhdby , Bald 20 Dec '16 at 3:48 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    Use the margin-left property:

     #link2 { margin-left: 15px; } 
     <div id="links"> <a href="#" id="link1">link1</a> <br> <a href="#" id="link2">link2</a> <br> <a href="#" id="link3">link3</a> <br> <a href="#" id="link4">link4</a> <br> <a href="#" id="link5">link5</a> </div> 

    • and how to make it so that they are all on the same line ??? - Bernard
    • 2
      @Bernard so everyone would be moved? If yes, in css register #links a {margin-left: 15px;} . But in general, I advise you to read a tutorial ... - Semushin Sergey