-7

I have a small doubt regarding styling of my window, I want these two buttons that are on the screen to appear on the bottom right corner of my window. What are the required stylings that i need to give this tag to make the buttons appear at the bottom. I have attached an image of how the position is needed to be altered:css styling doubt

enter image description here

help will be much appreciated. thanks in advance.

Minal Chauhan
  • 6,025
  • 8
  • 21
  • 41

3 Answers3

1
<button style="position:absolute; bottom:0; right: -290px;">submit</button>

<button style="position:absolute; bottom:0; right: -215px;">cancel</button>

this seemed to sort the probelm i was having about positioning the buttons. thanks for your inputs everyone

Minal Chauhan
  • 6,025
  • 8
  • 21
  • 41
0

Try like this you can achieve what you want.

.wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  background: #ccc;
}
.buttons {
  position: absolute;
  bottom: 0;
  right: 0
}
<div class="wrapper">
 <div class="buttons">
   <button>submit</button>
    <button>reset</button>
 </div>  
</div>
Bharath Kumar
  • 548
  • 1
  • 6
  • 18
0

Put the two buttons inside a div and set the div id="something". Then define the css of the #something.

#something{
   position:fixed;
   bottom:0;
   right:0;
}
Minal Chauhan
  • 6,025
  • 8
  • 21
  • 41
RedWolf
  • 24
  • 3