Skip to content
Loading
Creation of Buttons with different alignments





  •  
  • +1
  • Sachin Singh
    test another one the one with css  from my code, it may solve your Issue.
    use margin and padding as per your need, how could i help in paddings when i don't know how your layout looks like? 
    +1
  • Actually I tried with Bootstrap code and three buttons are displaying in a single row but all of them are alinged to left with little space in between like below. Do I need to change anything else?
     
     
    Button1        Button2         Button3  
    +1
  • Sachin Singh
    it is already in that order, please test by copy pasting.
    +1
  • Thanks Sachin for your response. How to align first button to the left, Second button to center and middle button to the right? Kindly suggest.
     
    Many Thanks
    +1
  • Sachin Singh
    This is if you use bootstrap
    1. class=row>    
    2. class="col-md-4">    
    3. class="btn btn-primary">click me
        
  • class="col-md-4">    
  • class="btn btn-primary">click me
  •     
  • class="col-md-4">    
  • class="btn btn-primary">click me
  •     
  •    
  •  This is if you dont't use bootstrap
    1.   
    2.   
    3.   
    4.   
    5.   
    6. Button Group

        
    7.   
    8. class="btn-group">  
    9.     
    10.     
    11.     
      
  •   
  •   
  •  
  •  
    +1