Skip to content
Loading
  • Ananth G
    +1
    Use this format
    1. <div class="container-fluid">  
    2.   <h1>Hello World!h1>  
    3.   <p>Resize the browser window to see the effect.p>  
    4.   <div class="row">  
    5.         <div class="col-sm-3" >  
    6.             <div class="col-sm-6" >  
    7.                 <label for="usr">Name:label>  
    8.             div>  
    9.             <div class="col-sm-6" >  
    10.                 <input type="text" class="form-control" id="usr">  
    11.             div>  
    12.         div>  
    13.         <div class="col-sm-3" >  
    14.             <div class="col-sm-6" >  
    15.                 <label for="usr">Name:label>  
    16.             div>  
    17.             <div class="col-sm-6" >  
    18.                 <input type="text" class="form-control" id="usr">  
    19.             div>  
    20.         div>  
    21.         <div class="col-sm-3" >  
    22.             <div class="col-sm-6" >  
    23.                 <label for="usr">Name:label>  
    24.             div>  
    25.             <div class="col-sm-6" >  
    26.                 <input type="text" class="form-control" id="usr">  
    27.             div>  
    28.         div>  
    29.         <div class="col-sm-3" >  
    30.             <button type="button" class="btn btn-primary">Primarybutton>  
    31.         div>  
    32.   div>  
    33. div>  
     
    +1
  • +1
    yes ananth i am understanding it. But don't know why the textbox is getting small and the output is not as expected. Kindly, let me know once you get the result ans i will update once i get any changes.Thanks in advance...
    +1
  • Khaja Moizuddin
    0
    http://getbootstrap.com/getting-started/ You can read this documentation
    0
  • Ananth G
    0
    add this code in head page
     
     
    0
  • 0
    thank you so much ananth. But it is giving lot of space between the label and textbox. Please help
    0
  • Ananth G
    0
    can you share screen st
    0
  • Ananth G
    0
    if you send scrn sht i will give solution
    0
  • Ananth G
    0
    if you update ur html code  , it help to give a solution
    0
  • 0
    hi ananth i have attached the screenshot. Please have this as your reference and kindly help. Thank you so much.
    0
  • 0
    hi ananth, but the textbox size is same for all the fields. It is not as expected. Am working on it. Need your help too please...
    0
  • Ananth G
    0
    i will explain bootstrap grid system  
    1. <div class="col-sm-3" >
    this above  col-sm-3 class have mutiple div 
    but  total must 12(col-sm-4+col-sm-8)
     
     Example : col-sm-3 
     
    contain
    div tag that class total must 12
    Example2 
     
    contain  
     
    div tag that class total must 12
     
    Example2
    contain
    div tag that class total must 12
    0