Answers for "button float css"

CSS
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
0

button float css

.float-left {
  float: left;
}
Posted by: Guest on March-24-2022

Browse Popular Code Answers by Language