14.9 C
Estepona
jueves, mayo 1, 2025

Button

Buttons

Buttons are a convenient tool when it comes to more traditional actions. To that end, Foundation includes a lot of easy to use button styles that you can customize or override to fit your needs.

Styles, Sizes & Options

Foundation buttons have a number of parameters and styles — you can see a few examples below. The out of the box classes include size, type (color) and style (square, slightly rounded, and completely rounded).

  • Button classes can also be applied to button elements, as well as input type="submit" elements.

    Regular Button »

  •  <!-- Sizes --> <a class="tiny button" href="#">Tiny</a> <a class="small button" href="#">Small</a> <a class="button" href="#">Medium</a> <a class="large button" href="#">Large</a> <!-- Types --> <a class="button" href="#">Normal</a> <a class="secondary button" href="#">Secondary</a> <a class="success button" href="#">Success</a> <a class="alert button" href="#">Alert</a> <!-- Styles --> <a class="button" href="#">Square</a> <a class="radius button" href="#">Radius</a> <a class="round button" href="#">Round</a> <!-- Inputs and Submits --> <button class="button">Form Button</button> <input type="submit" class="button" value="Input Submit Button" /> 

Button Groups

When you need a group of actions, button groups give you some easy-to-use options.
  • Button Group – Radius

    A button group is simply a ul.button-group in which each li contains a button. You can attach a button style, such as radius or rounded, to the entire group, and Foundation will apply the style to the first and last buttons in the group.

    Even Button Groups

    If you want a button group to fill a grid column with evenly sized actions, you can simply add two classes to the group: .even and either .two-up, .three-up, .four-up, or .five-up.

    Button Bars

    A button bar is a group of button groups (I N C E P T I O N), perfect for situations where you want groups of actions that are all related to a similar element or page. Simply wrap two or more button groups in a div.button-bar and Foundation takes care of the rest.

    Buttons within groups or bars can also be individually set to a particular type (color) or size. Obviously if you create a button bar with different sized buttons the visual presentation may suffer a bit, but we wanted these to be very flexible.

  •  <!-- Basic Button Groups --> <ul class="button-group radius">   <li><a href="#" class="button radius">Button 1</a></li>   <li><a href="#" class="button radius">Button 2</a></li>   <li><a href="#" class="button radius">Button 3</a></li> </ul> <!-- Even Button Groups --> <ul class="button-group even three-up">   <li><a href="#" class="button">Button 1</a></li>   <li><a href="#" class="button">Button 2</a></li>   <li><a href="#" class="button">Button 3</a></li> </ul> <!-- Button Bar --> <div class="button-bar">   <ul class="button-group">     <li><a href="#" class="button">Button 1</a></li>     <li><a href="#" class="button">Button 2</a></li>     <li><a href="#" class="button">Button 3</a></li>   </ul>   <ul class="button-group">     <li><a href="#" class="button">Button 1</a></li>     <li><a href="#" class="button">Button 2</a></li>     <li><a href="#" class="button">Button 3</a></li>   </ul> </div> 

Dropdown Buttons

Foundation 3 includes two types of dropdown buttons: buttons which create a dropdown when you click them and buttons which have a dropdown when you click specifically on the down-arrow part of the button (a split button).
  • These are useful when an action has several possible outcomes to select from, or when there are secondary choices you can make in lieu of a primary action. Dropdown buttons use the same classes as any other button, but a different structure. If you need your dropdown to go up, simple add a class of .up to .button.dropdown.

  •  <div href="#" class="large button dropdown">   Dropdown Button   <ul>     <li><a href="#">Dropdown Item</a></li>     <li><a href="#">Another Dropdown Item</a></li>     <li class="divider"></li>     <li><a href="#">Last Item</a></li>   </ul> </div> 

Split Button

Split buttons in turn use similar classes, and a different structure than regular or dropdown buttons. They require an affordance for the clickable area that engages the dropdown and for the normal button action. We use a <span> for this affordance.

  •  <div href="#" class="large alert button split dropdown">   <a href="#">Split Button</a>     <span></span>   <ul>     <li><a href="#">Dropdown Item</a></li>     <li><a href="#">Another Dropdown Item</a></li>     <li class="divider"></li>     <li><a href="#">Last Item</a></li>   </ul> </div> <!--   Notice that in a split button, the <span> is the dropdown   affordance and the main anchor is the primary button action. --> 

Get your Forms in Formation

Forms can be a pain in the ass to build, but they dont have to be. Using our grid, you can build really complex form layouts in no time at all!

Learn about our forms »

Últimas noticias

Temukan slot gacor hari ini di Slot88! Nikmati situs slot gacor 4D dengan peluang maxwin terbesar, link slot terbaru dan RTP tinggi.

Slot777 menghadirkan pengalaman Slot Thailand asli dengan tingkat kemenangan tinggi. Temukan situs slot Thailand resmi, super gacor, dan mudah diakses kapan saja.

169cuan menghadirkan apk slot Dana gacor mulai dari 5000 yang praktis dan bisa langsung dimainkan. Cocok untuk pecinta game slot Dana yang cari situs resmi dan aplikasi terpercaya.

Sbobet88 menyediakan layanan judi bola online terpercaya dengan sistem parlay modern. Agen judi bola resmi yang dilengkapi link judi bola aman dan peluang menang tinggi.

slot gacor adu keberuntungan mahjong ways akun vip wild bounty showdown banjir cuan sweet bonanza banjir scatter hitam bahjong ways pilihan bukan sekedar game biasa bukti nyata permainan starlight princess scatter hitam kakek zeus fitur kemenangan mahjong sweet bonanza fortune ox bagi bagi scatter cara cerdas menang mahjong wins fenomena perkalian mahjong ways bikin heboh gates of olympus masih jadi favorit teknik gila gates of olympus algoritma jalur spin mahjong ways 2 bantuan ai menangkan gates of olympus mahjong ways 2 lebih mudah dimenangkan mahjong wins 3 lagi hot mahjong ways kembali viral perbincangan komunitas mahjong ways rahasia hindari boncos di mahjong wins strategi bermain mahjong ways 5 pilar mahjong ways 2 cara ai susun rumus mahjong ways 3 langkah demi langkah raih keuntungan mahjong ways perbincangan komunitas mahjong ways mengejar kemenangan habanero jump sangat gampang bongkar pecah jackpot wild bandito kejutan menang tersembunyi dalam putaran perjuangan mendapatkan jajan harian dengan putaran fruit party pecah black scatter mahjong wins 3 demo mahjong ways 3 berujung menjadi cuan harian slot gacor pola scatter mahjong scatter hitam mahjong rtp live mahjong mahjong ways hasil jackpot mahjong perkalian mahjong wins cara main mahjong trik dapetin perkalian mahjong deretan bonus sugar rush simbol mahjong wins berbicara simbol gates of olympus penuh pesan simbol mahjong ways itu punya nyawa simbol mahjong ways punya cerita simbol starlight princess punya jiwa simbol wild bounty penuh petualangan simbol sweet bonanza irama bahagia simbol sweet bonanza christmaspenuh keajaiban simbol lucky neko punya keberuntungan sendiri simbol gatot kaca pelindung dalam putaran simbol wild bandito punya irama simbol-treasures of aztec punya rahasia pantang menyerah akhirnya maxwin zeus efek psikologis irama visual kisah nyata pemain yang tak menyangka impian yang terwujud berkat keberuntungan salah masuk berujung kenikmatan main receh scatter gates of olympus panen cuan spin kecil bikin hari berubah di mahjong ways panduan safety main mahjong champion ways iseng main mahjong wins malah dapet jackpot mana lebih bagus spin manual atau auto cara atasi fomo mahjong wins 3