কম্পিউটার টিউটোরিয়াল

CSS :out-of-range সিলেক্টরের ভূমিকা


নির্দিষ্ট রেঞ্জের বাইরে ভ্যালুযুক্ত <input> এলিমেন্ট স্টাইল করতে CSS :out-of-range সিলেক্টর ব্যবহার করুন।

উদাহরণ

নিচের কোড রান করে :out-of-range সিলেক্টর ইমপ্লিমেন্ট করুন।

<!DOCTYPE html> <html>   <head>     <style>       input:out-of-range {         border: 3px dashed orange;         background: yellow;       }     </style>   </head>   <body>     <input type = "number" min = "5" max = "10" value = "15">     <p>The style only works for the value entered out of range</p>   </body> </html>

  1. CSS :hover সিলেক্টরের ভূমিকা

  2. CSS :focus সিলেক্টরের ভূমিকা

  3. CSS :nth-last-of-type(n) সিলেক্টরের ভূমিকা

  4. CSS :nth-last-child(n) সিলেক্টরের ভূমিকা