How to change scrollbar when using Tailwind (next.js/react)

Tailwind CSS doesn’t provide a built-in way to customise the scrollbar styling. However, you can use the various ::-webkit-scrollbar pseudo-elements to style it. Tailwind playground link: https://play.tailwindcss.com/5samiwyr4v. @layer utilities { .scrollbar::-webkit-scrollbar { width: 20px; height: 20px; } .scrollbar::-webkit-scrollbar-track { border-radius: 100vh; background: #f7f4ed; } .scrollbar::-webkit-scrollbar-thumb { background: #e0cbcb; border-radius: 100vh; border: 3px solid #f6f7ed; } … Read more

What is the media query for large desktops?

The challenges of optimizing for large-scale displays center around how to scale and manage content. You need to assume screen width at certain points. Example: for class “container” @media screen and (min-width: 1400px) { .container { width: 1370px; } } @media screen and (min-width: 1600px) { .container { width: 1570px; } } @media screen and … Read more

CSS3 animation not working in safari

Found the solution. In Safari when you use Keyframes you need to use the whole percentage: this won’t work: @-webkit-keyframes keyarm { 0% { -webkit-transform: rotate(0deg); } 5% { -webkit-transform: rotate(-14deg); } 10% { -webkit-transform: rotate(0deg); } } this will: @-webkit-keyframes keyarm { 0% { -webkit-transform: rotate(0deg); } 5% { -webkit-transform: rotate(-14deg); } 10% { … Read more

IE7 and the CSS table-cell property

I’ve solved this using jQuery: $(document).ready(function(){ if ($.browser.msie && $.browser.version == 7) { $(“.tablecell”).wrap(“<td />”); $(“.tablerow”).wrap(“<tr />”); $(“.table”).wrapInner(“<table />”); } }); the above script assumes you have divs using style such as: <style> .table { display: table; } .tablerow { display: table-row; } .tablecell { display: table-cell; } </style>

Why does adding float:left to my css make my link unclickable?

The fix is pretty simple and cross browser too, add this (to your unclickable link): #QuestionEditLink, #QuestionHistoryLink { position: relative; z-index: 10; } The fix here is the z-index, but it won’t work if position isn’t relative/absolute/fixed. For more info on z-index see https://developer.mozilla.org/en-US/docs/Web/CSS/z-index Have used this all the time, is simple, works in all … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)