Category "css"

Dealing with Safari and .webp images in 2022

I've been waiting to use .webp images for a very long time. It's 2022, so, given: the image format has existed for a decade Chrome started supporting .webp in J

Bootstrap button text color

I am using the bootstrap 3 custom buttons but cant for some reason change the brand text colour nor the dropdown triangles. i've tried a couple of things, but s

Width of Chosen dropdowns near zero when starting in collapsed Bootstrap accordion

When a Chosen dropdown is inside a Bootstrap 3 accordion that's initially hidden, then the width of the dropdown is near zero. After expanding it looks like thi

Why visual studio 2022 complains about unknown CSS class property bootstrap?

I have created a razor page web app template project in visual studio 2022. I am adding some bootstrap CSS class. here is my html: <form method="get">

Disable Ripple effect on MUI Button and add custom

I wanted to remove the ripple effect on the button and implement my custom effect in MUI Button. I have removed ripple using disableRipple. I have tried to appl

<%= stylesheet_link_tag "application", :media => "all" %> <----- This piece of code is not allowing my ROR application to load locally

After installing Twitter bootstrap, I ran 'Rails server' and now the application will not load. This is the error cannot load such file -- less (in C:/Sites/c

Page break inside avoid in flex not working as expected

I have a container which contains several divs which 2 column layout. I want the divs to printed in the new page when I convert to pdf. I have gone through few

How to prevent scaling of a web page

I am designing a web page that occupies only 80% of the horizontal space. On restoring the browser, the web page scales down automatically which makes it look v

Why do child divs extend beyond their parent div?

I feel stupid asking this but this is a very simple problem that don't understand how to solve. In the code below, why are the container, main, and secondary d

Wingdings font in FF and Chrome

I would like to use font Wingdings in my app, it is working well in IE, but in FF and Chrome instead of chars I see a latter. How to use this font in FF in co

CSS Media query not showing/hiding scrollbar

@media is giving me some problems... I can' seem to figure out how to get it to work. I would like to show the scrollbars if the height/width matches the query.

ol list counter reset based on start property using jquery

I need to make a jquery script that can take the OL start properly and transform it into a css based counter. So for a html like this: <ol > <li>F

How to change the cursor pointer on fullcalendar?

I'm using fullCalendar plugin for my project. I noticed that when I set the "editable: " into false, the cursor hover on the events becomes default instead of s

CSS - Is it possible to select multiple different child elements within a parent without repeating the parent?

I've been pawing over CSS selectors all afternoon in an attempt to find an answer to this because it seems so simple but I cannot for the life of me find any so

Using Tailwind prose on dark background makes text look too dark

Using Tailwind prose on dark background makes text look too dark without manual configuration TLDR; How do I get prose to work on a dark background? I have a Si

Newline character sequence in CSS 'content' property? [duplicate]

Is it possible to use newline character in CSS content property to force a line break? Something like: figcaption:before { content: 'Figu

How to make HTML element resizable using pure Javascript?

I was wondering how we can make a HTML element like <div> or <p> tag element resizable when clicked using pure JavaScript, not the jQuery library or

How to center SVG within its container?

How does one center this SVG horizontally within .svg_wrapper? .svg_wrapper { border: 1px solid grey; width: 200px; } <div class="svg_wrapper">

How to unset image-rendering for Safari 11+ without yielding "property stroke-color doesn't exist" on W3C CSS Validator

To avoid blurry downscaled images in Chrome, I followed GoojajiGreg's answer to use media queries to set image-rendering to -webkit-optimize-contrast on Chrome

How to apply CSS page-break to print a table with lots of rows?

I have a dynamic table in my web page that sometimes contains lots of rows. I know there are page-break-before and page-break-after CSS properties. Where do I