Search
 
SCRIPT & CODE EXAMPLE
 

HTML

button float right

<!--Please give a thumbs up if this was helpfull-->

<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>
Comment

button float css

.float-left {
  float: left;
}
Comment

button float right

<!--Please give a thumbs up if this was helpfull-->

<!--This is a Flexbox solution-->

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

<style>
  .container {
    width:200px;
    display:flex;
    flex-direction:row;
    justify-content:space-between;
    overflow: auto;
    white-space: nowrap;
    border:1px red solid;
  }       
</style>
Comment

PREVIOUS NEXT
Code Example
Html :: how to make new line in html paragraph 
Html :: vertical tab bootstrap 
Html :: css change color on hover 
Html :: html to hml 
Html :: Description For Page html 
Html :: html remove space after paragraph 
Html :: vimeo sdk 
Html :: what is iframe html 
Html :: block elements 
Html :: tailwind css navbar 
Html :: javascript on focus lost 
Html :: How to edit an HTML file 
Html :: add favorite icon to website html 
Html :: bulma css buttons 
Html :: embed recaptcha in html 
Html :: how to insert a dollar sign in html 
Html :: clear input file html react 
Html :: html ul types 
Html :: refused to connect iframe php 
Html :: jquery demo 
Html :: html scrollable table vertical 
Html :: tailwind css carousel 
Html :: angular add html attribute on condition 
Html :: image preview for website 
Html :: how to break the line in html 
Html :: html position div inside div 
Html :: bootstrap gutter 
Html :: how to use different font size in same line in html 
Html :: html code for writing text 
Html :: radio checked on start 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =