1652945520
In this post, you'll learn What is Deribit Exchange - Crypto Options and Futures Exchange
Deribit is a cryptocurrency exchange offering options, futures, and other derivates trading for Bitcoin and Ethereum only. This exchange is based in Panama and is not available in the U.S. or Japan, but it supports most other countries around the world. Designed for users who want to trade crypto derivatives with leverage, Deribit offers advanced order types, trading reports, and ultra-fast trade execution. It's a great platform for advanced traders, but it's not well-suited for beginners.
Traders often play with a lot of leverage, meaning they borrow money to increase the size of potential profits while risking greater losses. Like other cryptocurrency exchanges, Deribit operates 24 hours a day, 7 days a week.
Deribit is a crypto-native exchange, meaning it doesn’t allow deposits of fiat currencies, like the US dollar, euro, or rupee. It says it will add these when it’s allowed, although this is unlikely to be any time soon; regulators have cracked down on unregistered derivatives exchanges or banned them outright, judging them as illegal.
Deribit says it keeps more than 99% of its customer deposits in cold storage, stored in vaults with multiple bank safes. Cold storage refers to offline cryptocurrency wallets; often no larger than a USB drive, these wallets can’t be hacked by conventional means because all the operations that require private keys, the equivalent of a wallet’s passwords, are kept offline.
Deribit uses a software solution from blockchain analytics and investigation firm Chainalysis to monitor for money laundering and sanctioned addresses. It also screens customers against a global database of sanctions and watchlists.
Pros
Cons
What are Bitcoin options and Bitcoin futures?
Options and futures are types of derivatives contracts, and the most popular type of derivatives on offer in the cryptocurrency market. Derivatives, as previously mentioned, are investment vehicles that trade on some underlying asset. Both of these contracts represent promises to fulfil orders for Bitcoin at some time in the future.
Bitcoin futures let you buy some Bitcoin today with the view to receive it at some predetermined point in the future. The idea is that you agree the price today and then receive that Bitcoin in the future, no matter the price of the Bitcoin when the contract expires. Futures contract prices are a little bit different from the price of Bitcoin, because they represent an expectation of how much Bitcoin will be worth at a certain point in the future, rather than how much it is worth today (which does take into account its future potential but more accurately reflects how much it is worth today).
There are two common reasons why you would buy futures.
The first is as a hedge. Outside of crypto, hedges are popular among crop farmers, who use futures contracts to guarantee a price for their crop that withstands market fluctuations caused by, say, overproduction. Bitcoin futures are used as a hedge by those who need to, for instance, repay loans in Bitcoin and want to ensure they can receive that Bitcoin at today’s price.
The other reason is pure speculation—this is one reason the derivatives market is often likened to gambling. If the price of Bitcoin rises above the price of the futures contract (and any fees therein), you’ll have made a profit by, essentially, buying discounted Bitcoin. Since Bitcoin futures are inherently leveraged trades—you don’t need to put up an awful lot of capital to buy a futures contract, they can be immensely lucrative (or ruinous if the market moves against you).
Bitcoin options are Bitcoin futures with a get-out clause. Just like futures, you can use them for hedging or for speculation. But with Bitcoin futures, you have to buy that Bitcoin when the contract expires (or matures—ends, essentially), whether it’s a good deal or not. Options, by contrast, give you the right, but not the obligation, to buy Bitcoin when the contract expires. They are slightly less risky because you don’t actually have to buy the Bitcoin; you only risk the price you paid to buy the contract, known as the “premium.”
Options on Deribit are “European” or “Vanilla” style, which means you can only exercise them at the expiration date of the options contract, just like futures. This is in contrast to “American” style options, which allow you to exercise your right to buy or sell at any time before the expiration date. The minimum order size for an options contract on Deribit is 0.1 Bitcoin or 1 Ethereum.
Deribit offers a third kind of futures product, known as “perpetual” futures. Other exchanges, most prominently Binance and BitMex, also offer these contracts. These are futures contracts with no expiration date, and can thus be held indefinitely without having to extend the length of the contract. They fulfil the same purpose as another type of derivatives contract, contracts for difference (CFDs), which also let traders indefinitely hold a derivatives contract.
Perpetual futures contracts were proposed by economist Robert Shiller in 1992 but only became a thing in crypto, which found in perpetual futures a way to jumpstart derivatives contracts in a market full of unregulated (and thus potentially untrustworthy) counterparties. In 2016, BitMEX became the first exchange to offer them.
How do you trade Bitcoin derivatives on Deribit?
To trade Bitcoin derivatives contracts on Deribit, you first need to set up an account. To do this as a retail trader, you’ll have to submit a form of ID and proof of residence. Canadians in Ontario aren’t allowed to apply, nor are citizens from the United States, Japan, and a handful of other countries.
Once you’ve created an account, you’ll need to fund it with Bitcoin. You can do this by buying Bitcoin at a cryptocurrency exchange and sending the money to your Deribit address.
To buy futures contracts, you can click on a perpetual future, which has no expiration date, or pick a futures contract that ends at some predetermined point in the future, such as next week, at the end of the year or next year. You can trade with up to 100x leverage, which means that you can play with 100x as much money you have. This is very risky. Although profits can be 100x as big, you are also 100x more sensitive to losses and your position could be closed at any point unless you post a lot of money. If that happens, you could lose a lot.
To buy Bitcoin options, you click on an option in the BTC options page—any price in the table that strikes your fancy—and you can add your order. “Call“ options give you the right to buy the Bitcoin and ”put“ options give you the right to sell it. On Deribit, Bitcoin options are exercised automatically if they expire “in the money”—in other words, if you stand to make a profit when the contract expires, Deribit will automatically buy that Bitcoin on your behalf. All settlements are paid in Bitcoin. The same rules apply for Ethereum.
Deribit offers enterprise-grade trading tools, including multiple order types, advanced charting, a drag-and-drop user dashboard, live order books, leveraged trading, and access to an abundance of crypto market data. This exchange is designed for advanced crypto traders, and beginners will likely be overwhelmed with the platform and user interface.
Deribit offers four types of derivatives:
Deribit also supports several order types, including market orders, limit orders, and stop orders. Additionally, orders can be set to stay open until they are filled, to fill immediately or cancel, or to fill what is immediately available (even if only a partial fill) or cancel.
Customers can also tie in third-party trading tools via the Deribit APIs, allowing users to connect trading bots or other trading tools to the system for executing trades.
Fees
Deribit users can expect relatively low fees for trading crypto as well as different fee schedules for options and futures trading. This exchange charges 0.05% per trade (or less) for most futures trades, and 0.03% for options trades, though smaller trades may incur up to a 12.5% fee. Its fees are lower than most other exchanges, though smaller options trades could be expensive.
There are also fees for contract settlements (at expiry), and for liquidations as well.
Deribit Trading Fees
Deribit charges trading fees based on a maker-taker fee model, with different fees based on the type of trade placed. There are also separate fee schedules for delivery (settlement) and liquidations, detailed below.
In general, a “taker” is someone who places an order that gets filled immediately, while a “maker” places an order that gets placed in an order book (until a match is found). Transaction fees differ based on whether you are considered a maker or a taker in the trade execution (as shown in the table below).
Here is a breakdown of the Deribit fee structure:
Contracts | Maker Fee | Taker Fee |
---|---|---|
BTC Weekly Futures | -0.01% (rebate) | 0.05% |
BTC Futures/Perpetual | 0.00% | 0.05% |
ETH Futures/Perpetual | 0.00% | 0.05% |
BTC/ETH Options | 0.03% of the underlying or 0.0003 BTC/ETH per options contract | 0.03% of the underlying or 0.0003 BTC/ETH per options contract |
While there is a 0.003 BTC/ETH minimum fee for options, fees will never be higher than 12.5% of the options price.
Delivery Fees (Settlement at Expiry) | |
---|---|
BTC Weekly Futures | 0% |
Futures | 0.025% |
Daily options | 0% |
Options | 0.015% - this fee can never be higher than 12.5% of the option's value. |
Liquidation Fees | |
---|---|
BTC Perpetual & Futures | 0.75%, (0.75% for maker orders and 0.70% for taker orders will be added to the insurance fund) |
ETH Perpetual & Futures | 0.9%, (0.9% for maker orders and 0.85% for taker orders will be added to the insurance fund) |
Options | 0.19% of the underlying asset or 0.0019 BTC per options contract, 0.16% of the underlying asset, or 0.0016 BTC per contract is added to the insurance fund. |
Security
Deribit offers several security features to help protect user accounts, including two-factor authentication (2FA) and cold storage of most crypto assets.
Here are a few of the unique security features offered by Deribit:
Deribit offers two types of accounts: Individual and Corporate.
Individuals can sign up using a standard ID verification process that takes only a few minutes to complete and provides full access to the trading platform’s products and features.
Corporate account holders are required to undergo a more detailed KYC procedure to comply with the exchange’s AML/KYC rules.
First, you need to go to: https://www.deribit.com
Deribit has a straightforward signup process that’s similar to signing up for an online brokerage account.
To create an account on Deribit, you’ll need to provide your email address, username, password, and country of residence. Once you confirm your email address, you can access the trading dashboard.
To start trading, you’ll need to complete identity verification by sharing your name, birth date, home address, country of residence, proof of address, and government-issued ID. Deribit will also require that you confirm your identity using your device’s camera, and its software will compare your image to the photo on your government-issued ID.
Once you have completed the ID verification process and your account has been verified, you can place your first order.
To open a corporate account on Deribit, the onboarding process is more complicated and involves declaring who the ultimate beneficial owners (“UBOs”) and controlling individuals (e.g. directors) are.
As mentioned, Deribit is not available to customers in the U.S. at this time.
Deribit API Credentials
A unique exchange API key and secret are required for connecting to Deribit via the TT platform. Users need to log in to their account at deribit.com to select their account name, and navigate to Account & Security | Account & Preference | API keys to create and provide you with these credentials.
To create Deribit API credentials:
Note: Do not create multiple Deribit exchange API keys for one Deribit exchange user.
Deribit Setup Requirements
Note: When setting up a Deribit user, account, and connection on TT, you must adhere to the following requirements in order to connect to the exchange correctly:
Deribit users can trade using the exchange’s web-based platform or via the mobile application (available for Android and iOS).
Supported Deribit Functionality
TT supports:
Limit - Post only orders
Deribit auto liquidate
Unsupported Deribit Functionality
The "Reduce only" order types are not supported on TT.
Deribit rate limits support on TT
Deribit rate limits allow 2 order requests per second (or a burst of 20 orders per 10 seconds). The exchange also has a limit of 50 orders per instrument.
If your order rate exceeds the 2 requests/second maximum, the exchange will reject your orders. TT will block order rates over 50 requests/second unless you request a setting of greater than 50 from the exchange and configure the new value for the user or connection.
To increase the rate limit at the exchange, contact: support@deribit.com
Increasing the Deribit rate limit on TT
After contacting the exchange and receiving an increase in rate limits, you can configure the new order rate per user. Increasing the rate per connection may impact other users on the connection.
Deribit Cancel on Disconnect
If a user enables Deribit's Cancel on Disconnect (COD) functionality, then their orders submitted via TT will get canceled when they experience an exchange disconnect. Individual users can choose to enable this functionality on the exchange's website.
Top exchanges for token-coin trading. Follow instructions and make unlimited money
☞ Binance ☞ FTX ☞ Poloniex ☞ Bitfinex ☞ Huobi ☞ MXC ☞ ByBit ☞ Gate.io ☞ Coinbase
Conclusion
Options and futures contracts are incredibly risky and complicated, and usually reserved for experienced financiers.
I hope this post will help you. Don't forget to leave a like, comment and sharing it with others. Thank you!
#blockchain #cryptocurrency #exchange #bitcoin
1655726968
В этом руководстве вы узнаете, как создавать потрясающие настраиваемые радиокнопки, используя только HTML и CSS. Чтобы создать удивительные пользовательские радиокнопки, используя только HTML и CSS. Во-первых, вам нужно создать два файла: один файл HTML, а другой — файл CSS.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Custom Radio Buttons | Codequs</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wrapper">
<div class="title">Select your option</div>
<div class="box">
<input type="radio" name="select" id="option-1">
<input type="radio" name="select" id="option-2">
<input type="radio" name="select" id="option-3">
<input type="radio" name="select" id="option-4">
<label for="option-1" class="option-1">
<div class="dot"></div>
<div class="text">Gamer</div>
</label>
<label for="option-2" class="option-2">
<div class="dot"></div>
<div class="text">YouTuber</div>
</label>
<label for="option-3" class="option-3">
<div class="dot"></div>
<div class="text">Student</div>
</label>
<label for="option-4" class="option-4">
<div class="dot"></div>
<div class="text">Developer</div>
</label>
</div>
</div>
</body>
</html>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
html,body{
display: grid;
height: 100%;
place-items: center;
}
.wrapper{
width: 350px;
background: #fff;
border-radius: 10px;
box-shadow: 5px 5px 30px rgba(0,0,0,0.2);
}
.wrapper .title{
color: #fff;
line-height: 65px;
text-align: center;
background: #333;
font-size: 25px;
font-weight: 500;
border-radius: 10px 10px 0 0;
}
.wrapper .box{
padding: 20px 30px;
background: #fff;
border-radius: 10px;
}
.wrapper .box label{
display: flex;
height: 53px;
width: 100%;
align-items: center;
border: 1px solid lightgrey;
border-radius: 50px;
margin: 10px 0;
padding-left: 20px;
cursor: default;
transition: all 0.3s ease;
}
#option-1:checked ~ .option-1,
#option-2:checked ~ .option-2,
#option-3:checked ~ .option-3,
#option-4:checked ~ .option-4{
background: #333;
border-color: #333;
}
.wrapper .box label .dot{
height: 20px;
width: 20px;
background: #d9d9d9;
border-radius: 50%;
position: relative;
transition: all 0.3s ease;
}
#option-1:checked ~ .option-1 .dot,
#option-2:checked ~ .option-2 .dot,
#option-3:checked ~ .option-3 .dot,
#option-4:checked ~ .option-4 .dot{
background: #fff;
}
.box label .dot::before{
position: absolute;
content: "";
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(2);
width: 9px;
height: 9px;
border-radius: 50%;
transition: all 0.3s ease;
}
#option-1:checked ~ .option-1 .dot::before,
#option-2:checked ~ .option-2 .dot::before,
#option-3:checked ~ .option-3 .dot::before,
#option-4:checked ~ .option-4 .dot::before{
background: #333;
transform: translate(-50%, -50%) scale(1);
}
.wrapper .box label .text{
color: #333;
font-size: 18px;
font-weight: 400;
padding-left: 10px;
transition: color 0.3s ease;
}
#option-1:checked ~ .option-1 .text,
#option-2:checked ~ .option-2 .text,
#option-3:checked ~ .option-3 .text,
#option-4:checked ~ .option-4 .text{
color: #fff;
}
.wrapper .box input[type="radio"]{
display: none;
}
Теперь вы успешно создали потрясающие настраиваемые радиокнопки, используя только HTML и CSS.
1655734395
Trong hướng dẫn này, bạn sẽ học cách tạo các Nút radio tùy chỉnh tuyệt vời chỉ bằng HTML và CSS. Để tạo các Nút radio tùy chỉnh tuyệt vời chỉ bằng HTML và CSS. Đầu tiên, bạn cần tạo hai Tệp, một Tệp HTML và một tệp khác là Tệp CSS.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Custom Radio Buttons | Codequs</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wrapper">
<div class="title">Select your option</div>
<div class="box">
<input type="radio" name="select" id="option-1">
<input type="radio" name="select" id="option-2">
<input type="radio" name="select" id="option-3">
<input type="radio" name="select" id="option-4">
<label for="option-1" class="option-1">
<div class="dot"></div>
<div class="text">Gamer</div>
</label>
<label for="option-2" class="option-2">
<div class="dot"></div>
<div class="text">YouTuber</div>
</label>
<label for="option-3" class="option-3">
<div class="dot"></div>
<div class="text">Student</div>
</label>
<label for="option-4" class="option-4">
<div class="dot"></div>
<div class="text">Developer</div>
</label>
</div>
</div>
</body>
</html>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
html,body{
display: grid;
height: 100%;
place-items: center;
}
.wrapper{
width: 350px;
background: #fff;
border-radius: 10px;
box-shadow: 5px 5px 30px rgba(0,0,0,0.2);
}
.wrapper .title{
color: #fff;
line-height: 65px;
text-align: center;
background: #333;
font-size: 25px;
font-weight: 500;
border-radius: 10px 10px 0 0;
}
.wrapper .box{
padding: 20px 30px;
background: #fff;
border-radius: 10px;
}
.wrapper .box label{
display: flex;
height: 53px;
width: 100%;
align-items: center;
border: 1px solid lightgrey;
border-radius: 50px;
margin: 10px 0;
padding-left: 20px;
cursor: default;
transition: all 0.3s ease;
}
#option-1:checked ~ .option-1,
#option-2:checked ~ .option-2,
#option-3:checked ~ .option-3,
#option-4:checked ~ .option-4{
background: #333;
border-color: #333;
}
.wrapper .box label .dot{
height: 20px;
width: 20px;
background: #d9d9d9;
border-radius: 50%;
position: relative;
transition: all 0.3s ease;
}
#option-1:checked ~ .option-1 .dot,
#option-2:checked ~ .option-2 .dot,
#option-3:checked ~ .option-3 .dot,
#option-4:checked ~ .option-4 .dot{
background: #fff;
}
.box label .dot::before{
position: absolute;
content: "";
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(2);
width: 9px;
height: 9px;
border-radius: 50%;
transition: all 0.3s ease;
}
#option-1:checked ~ .option-1 .dot::before,
#option-2:checked ~ .option-2 .dot::before,
#option-3:checked ~ .option-3 .dot::before,
#option-4:checked ~ .option-4 .dot::before{
background: #333;
transform: translate(-50%, -50%) scale(1);
}
.wrapper .box label .text{
color: #333;
font-size: 18px;
font-weight: 400;
padding-left: 10px;
transition: color 0.3s ease;
}
#option-1:checked ~ .option-1 .text,
#option-2:checked ~ .option-2 .text,
#option-3:checked ~ .option-3 .text,
#option-4:checked ~ .option-4 .text{
color: #fff;
}
.wrapper .box input[type="radio"]{
display: none;
}
Bây giờ bạn đã tạo thành công các Nút radio tùy chỉnh tuyệt vời chỉ bằng HTML và CSS.
1655727060
In diesem Leitfaden erfahren Sie, wie Sie fantastische benutzerdefinierte Optionsfelder nur mit HTML und CSS erstellen. Um fantastische benutzerdefinierte Optionsfelder nur mit HTML und CSS zu erstellen. Zuerst müssen Sie zwei Dateien erstellen, eine HTML-Datei und eine CSS-Datei.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Custom Radio Buttons | Codequs</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wrapper">
<div class="title">Select your option</div>
<div class="box">
<input type="radio" name="select" id="option-1">
<input type="radio" name="select" id="option-2">
<input type="radio" name="select" id="option-3">
<input type="radio" name="select" id="option-4">
<label for="option-1" class="option-1">
<div class="dot"></div>
<div class="text">Gamer</div>
</label>
<label for="option-2" class="option-2">
<div class="dot"></div>
<div class="text">YouTuber</div>
</label>
<label for="option-3" class="option-3">
<div class="dot"></div>
<div class="text">Student</div>
</label>
<label for="option-4" class="option-4">
<div class="dot"></div>
<div class="text">Developer</div>
</label>
</div>
</div>
</body>
</html>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
html,body{
display: grid;
height: 100%;
place-items: center;
}
.wrapper{
width: 350px;
background: #fff;
border-radius: 10px;
box-shadow: 5px 5px 30px rgba(0,0,0,0.2);
}
.wrapper .title{
color: #fff;
line-height: 65px;
text-align: center;
background: #333;
font-size: 25px;
font-weight: 500;
border-radius: 10px 10px 0 0;
}
.wrapper .box{
padding: 20px 30px;
background: #fff;
border-radius: 10px;
}
.wrapper .box label{
display: flex;
height: 53px;
width: 100%;
align-items: center;
border: 1px solid lightgrey;
border-radius: 50px;
margin: 10px 0;
padding-left: 20px;
cursor: default;
transition: all 0.3s ease;
}
#option-1:checked ~ .option-1,
#option-2:checked ~ .option-2,
#option-3:checked ~ .option-3,
#option-4:checked ~ .option-4{
background: #333;
border-color: #333;
}
.wrapper .box label .dot{
height: 20px;
width: 20px;
background: #d9d9d9;
border-radius: 50%;
position: relative;
transition: all 0.3s ease;
}
#option-1:checked ~ .option-1 .dot,
#option-2:checked ~ .option-2 .dot,
#option-3:checked ~ .option-3 .dot,
#option-4:checked ~ .option-4 .dot{
background: #fff;
}
.box label .dot::before{
position: absolute;
content: "";
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(2);
width: 9px;
height: 9px;
border-radius: 50%;
transition: all 0.3s ease;
}
#option-1:checked ~ .option-1 .dot::before,
#option-2:checked ~ .option-2 .dot::before,
#option-3:checked ~ .option-3 .dot::before,
#option-4:checked ~ .option-4 .dot::before{
background: #333;
transform: translate(-50%, -50%) scale(1);
}
.wrapper .box label .text{
color: #333;
font-size: 18px;
font-weight: 400;
padding-left: 10px;
transition: color 0.3s ease;
}
#option-1:checked ~ .option-1 .text,
#option-2:checked ~ .option-2 .text,
#option-3:checked ~ .option-3 .text,
#option-4:checked ~ .option-4 .text{
color: #fff;
}
.wrapper .box input[type="radio"]{
display: none;
}
Jetzt haben Sie erfolgreich fantastische benutzerdefinierte Optionsfelder nur mit HTML und CSS erstellt.
1655719680
Dans ce guide, vous apprendrez à créer des boutons radio personnalisés impressionnants en utilisant uniquement HTML et CSS. Pour créer des boutons radio personnalisés impressionnants en utilisant uniquement HTML et CSS. Tout d'abord, vous devez créer deux fichiers, un fichier HTML et un autre fichier CSS.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Custom Radio Buttons | Codequs</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wrapper">
<div class="title">Select your option</div>
<div class="box">
<input type="radio" name="select" id="option-1">
<input type="radio" name="select" id="option-2">
<input type="radio" name="select" id="option-3">
<input type="radio" name="select" id="option-4">
<label for="option-1" class="option-1">
<div class="dot"></div>
<div class="text">Gamer</div>
</label>
<label for="option-2" class="option-2">
<div class="dot"></div>
<div class="text">YouTuber</div>
</label>
<label for="option-3" class="option-3">
<div class="dot"></div>
<div class="text">Student</div>
</label>
<label for="option-4" class="option-4">
<div class="dot"></div>
<div class="text">Developer</div>
</label>
</div>
</div>
</body>
</html>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
html,body{
display: grid;
height: 100%;
place-items: center;
}
.wrapper{
width: 350px;
background: #fff;
border-radius: 10px;
box-shadow: 5px 5px 30px rgba(0,0,0,0.2);
}
.wrapper .title{
color: #fff;
line-height: 65px;
text-align: center;
background: #333;
font-size: 25px;
font-weight: 500;
border-radius: 10px 10px 0 0;
}
.wrapper .box{
padding: 20px 30px;
background: #fff;
border-radius: 10px;
}
.wrapper .box label{
display: flex;
height: 53px;
width: 100%;
align-items: center;
border: 1px solid lightgrey;
border-radius: 50px;
margin: 10px 0;
padding-left: 20px;
cursor: default;
transition: all 0.3s ease;
}
#option-1:checked ~ .option-1,
#option-2:checked ~ .option-2,
#option-3:checked ~ .option-3,
#option-4:checked ~ .option-4{
background: #333;
border-color: #333;
}
.wrapper .box label .dot{
height: 20px;
width: 20px;
background: #d9d9d9;
border-radius: 50%;
position: relative;
transition: all 0.3s ease;
}
#option-1:checked ~ .option-1 .dot,
#option-2:checked ~ .option-2 .dot,
#option-3:checked ~ .option-3 .dot,
#option-4:checked ~ .option-4 .dot{
background: #fff;
}
.box label .dot::before{
position: absolute;
content: "";
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(2);
width: 9px;
height: 9px;
border-radius: 50%;
transition: all 0.3s ease;
}
#option-1:checked ~ .option-1 .dot::before,
#option-2:checked ~ .option-2 .dot::before,
#option-3:checked ~ .option-3 .dot::before,
#option-4:checked ~ .option-4 .dot::before{
background: #333;
transform: translate(-50%, -50%) scale(1);
}
.wrapper .box label .text{
color: #333;
font-size: 18px;
font-weight: 400;
padding-left: 10px;
transition: color 0.3s ease;
}
#option-1:checked ~ .option-1 .text,
#option-2:checked ~ .option-2 .text,
#option-3:checked ~ .option-3 .text,
#option-4:checked ~ .option-4 .text{
color: #fff;
}
.wrapper .box input[type="radio"]{
display: none;
}
Vous avez maintenant créé avec succès des boutons radio personnalisés impressionnants en utilisant uniquement HTML et CSS.
1655711983
In this guide, you’ll learn how to create Awesome Custom Radio Buttons using only HTML & CSS. To create Awesome Custom Radio Buttons using only HTML & CSS. First, you need to create two Files one HTML File and another one is CSS File.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Custom Radio Buttons | Codequs</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wrapper">
<div class="title">Select your option</div>
<div class="box">
<input type="radio" name="select" id="option-1">
<input type="radio" name="select" id="option-2">
<input type="radio" name="select" id="option-3">
<input type="radio" name="select" id="option-4">
<label for="option-1" class="option-1">
<div class="dot"></div>
<div class="text">Gamer</div>
</label>
<label for="option-2" class="option-2">
<div class="dot"></div>
<div class="text">YouTuber</div>
</label>
<label for="option-3" class="option-3">
<div class="dot"></div>
<div class="text">Student</div>
</label>
<label for="option-4" class="option-4">
<div class="dot"></div>
<div class="text">Developer</div>
</label>
</div>
</div>
</body>
</html>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
html,body{
display: grid;
height: 100%;
place-items: center;
}
.wrapper{
width: 350px;
background: #fff;
border-radius: 10px;
box-shadow: 5px 5px 30px rgba(0,0,0,0.2);
}
.wrapper .title{
color: #fff;
line-height: 65px;
text-align: center;
background: #333;
font-size: 25px;
font-weight: 500;
border-radius: 10px 10px 0 0;
}
.wrapper .box{
padding: 20px 30px;
background: #fff;
border-radius: 10px;
}
.wrapper .box label{
display: flex;
height: 53px;
width: 100%;
align-items: center;
border: 1px solid lightgrey;
border-radius: 50px;
margin: 10px 0;
padding-left: 20px;
cursor: default;
transition: all 0.3s ease;
}
#option-1:checked ~ .option-1,
#option-2:checked ~ .option-2,
#option-3:checked ~ .option-3,
#option-4:checked ~ .option-4{
background: #333;
border-color: #333;
}
.wrapper .box label .dot{
height: 20px;
width: 20px;
background: #d9d9d9;
border-radius: 50%;
position: relative;
transition: all 0.3s ease;
}
#option-1:checked ~ .option-1 .dot,
#option-2:checked ~ .option-2 .dot,
#option-3:checked ~ .option-3 .dot,
#option-4:checked ~ .option-4 .dot{
background: #fff;
}
.box label .dot::before{
position: absolute;
content: "";
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(2);
width: 9px;
height: 9px;
border-radius: 50%;
transition: all 0.3s ease;
}
#option-1:checked ~ .option-1 .dot::before,
#option-2:checked ~ .option-2 .dot::before,
#option-3:checked ~ .option-3 .dot::before,
#option-4:checked ~ .option-4 .dot::before{
background: #333;
transform: translate(-50%, -50%) scale(1);
}
.wrapper .box label .text{
color: #333;
font-size: 18px;
font-weight: 400;
padding-left: 10px;
transition: color 0.3s ease;
}
#option-1:checked ~ .option-1 .text,
#option-2:checked ~ .option-2 .text,
#option-3:checked ~ .option-3 .text,
#option-4:checked ~ .option-4 .text{
color: #fff;
}
.wrapper .box input[type="radio"]{
display: none;
}
Now you’ve successfully created Awesome Custom Radio Buttons using only HTML & CSS.