Answers for "how to create a button floating left css"

5

floating button html

<button class="floating-right-bottom-btn">Floating Me!</button>
.floating-right-bottom-btn
{
position : absolute;
right : 10px;
botton : 16px;
}
Posted by: Guest on June-23-2021
0

button float right

<div class='container'>
    <button class="button-1">button 1</button>
    <button class="button-2">button 2</button>
</div>

<style>
.container {
  width:200px;
  display:inline-block;
  overflow: auto;
  white-space: nowrap;
  margin:0px auto;
  border:1px red solid;
}
.button-1{
	float-left;
}
.button-2{
	float-right;
}
</style>
Posted by: Guest on January-25-2022

Browse Popular Code Answers by Language