user14714966
user14714966

Reputation: 29

How to position an element a little more to the top

I am trying to place the second file upload button exactly next to the first one below the second rectangle but apparently top, padding-top (bottom) and margin-bottom (top) does not seem to work properly! Please help me out!

    .file1 {
      padding-left: 340px;
      padding-top: 20px;
    }
    
    .file2 {
      margin-left: 1010px;
      padding-bottom: 20px;
    }

the output (the second button appears a little down)

Upvotes: 0

Views: 97

Answers (1)

LastryCoding
LastryCoding

Reputation: 126

Try to use a negative margin like: margin-top: -8px;

Upvotes: 1

Related Questions