Bootstrap .radio-inline class

BootstrapWeb DevelopmentCSS Framework

Use .radio-inline class to a series of radios for controls to appear on the same line. You can try to run the following code to implement the radio-inline class in Bootstrap −


Live Demo

<!DOCTYPE html>
      <title>Bootstrap Forms</title>
      <meta name = "viewport" content = "width=device-width, initial-scale = 1">
      <link rel = "stylesheet" href = "">
      <script src = ""></script>
      <script src = ""></script>
      <label for = "name">Best Porgraming Language</label>
         <label class = "radio-inline">
            <input type = "radio" name = "optionsRadiosinline" id = "optionsRadios3" value = "option1" checked> Java
         <label class = "radio-inline">
            <input type = "radio" name = "optionsRadiosinline" id = "optionsRadios4" value = "option2"> C
         <label class = "radio-inline">
            <input type = "radio" name = "optionsRadiosinline" id = "optionsRadios4" value = "option3"> C++
Updated on 12-Jun-2020 14:21:57