1
I suppose when I put the buttons on one form
they look different.
This is what I did:
<div class="btn-group" id="language_selector" role="group" aria-label="...">
<?php
echo("<form action='' method='post'>
<input type='submit' class='btn btn-default' $activeClass name='en' value='EN' />
<input type='submit' class='btn btn-default' $activeClass name='pt' value='PT' />
<input type='submit'class='btn btn-default' $activeClass name='es' value='ES'/>
</form>");
?>
But in the aspect is quite different from the example:
<div class="btn-group" role="group" aria-label="...">
<button type="button" class="btn btn-default">Left</button>
<button type="button" class="btn btn-default">Middle</button>
<button type="button" class="btn btn-default">Right</button>
</div>
I’d like the buttons of the guy Submit become the same as button
.
Have an example in Jsfiddle?
– Giancarlo Abel Giulian
i was using this example which is presented here http://getbootstrap.com/components/
– Amadeu Antunes
Which version of bootstrap you are using. If you look in this fiddle you will see that the look is the same.
– Randrade
I edited https://jsfiddle.net/ecy7neto/3/ this is the aspect
– Amadeu Antunes
The only difference I see is yours
form
. Look this example with the 4 possibilities.– Randrade
Some way to keep the form and have the same format on the buttons?
– Amadeu Antunes
What is that
$activeClass
?– Renan Gomes
only one control variable
– Amadeu Antunes