Ask coding questions

← Back to all posts
[CLOSED] Move a border
RYANTADIPARTHI (6020)

Hi,

i just want to know how to move a border in css. like you would say border: 1px solid grey. But, the position of it isn't right, i want to know how to move it the position of the border around.

Thanks in advance!

Comments
hotnewtop
tussiez (1676)

You cannot move borders. As others have said, use margins/padding/etc

RYANTADIPARTHI (6020)

@tussiez no, i'm good now. InvisibleOne helped me. But i decided not to use it. it did work though a bit.

Coder100 (18903)

borders can't move. Do you mean the position of the element?

Use:

  • margin for the area surrounding the element.
  • padding for the area inside the element.
RYANTADIPARTHI (6020)

@Coder100 no, i'm good now. InvisibleOne helped me. But i decided not to use it.

RYANTADIPARTHI (6020)

@Coder100 hi, can you give me the lock post SVG? You know if a post is locked right? The SVG next to it. Please give me that.

Thanks!

Coder100 (18903)

ok
i'll have to first find one xd @RYANTADIPARTHI

RYANTADIPARTHI (6020)

@Coder100 you can just go to the share top section, and get the lock posts SVG.

InvisibleOne (3211)

How do you mean, not in the right position?

RYANTADIPARTHI (6020)

@InvisibleOne meaning like, i want the position in one part, but it's out. like this.

what happened

|      rkflekf         |
|       rkflekf        |
|      rkflekf         |
|                      |
|                      |
|                      |
|     rkflekf          |
|                      |
|                      |
|                      |

what i want

    |   rkflekf    |
    |   rkflekf    |
    |  rkflekf     |
    |              |
    |              |
    |              |
    | rkflekf      |
    |              |
    |              |
    |              |

like that. i want the border to move.

InvisibleOne (3211)

add a margin to the outside of it @RYANTADIPARTHI

RYANTADIPARTHI (6020)

@InvisibleOne thanks, it kind of works, but i decided I'm not going to use it.