Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
44 views

I have dashboard.scss which contains: @import '../../src/pages/DashboardPage/DashboardPage.module.scss', '../../src/ui-components/atoms/Button/Button.module.scss', '../../src/ui-components/...
SuperYegorius's user avatar
1 vote
2 answers
114 views

I have and SVg and adding tag inside svg and using nested css delcration syntax and wehn using & it gives error of some XMl error ; first see this html example <style type="text/css"> ...
xkeshav's user avatar
  • 54.2k
-1 votes
4 answers
99 views

/* CSS */ em {font-style: italic; background yellow} ::autonomous-not-child-of-a-p-element-? :: em {font-style:normal; background gray} Given two situations both using <em> differently, in need ...
Sam's user avatar
  • 15.6k
1 vote
2 answers
183 views

I'm trying to work with CSS to alternate background color in my divs. I can do that, but which divs display changes. I'd like to be able to alternate only what's currently visible. Otherwise it's ...
Elaine's user avatar
  • 13
0 votes
2 answers
175 views

I have a button with a :active class instruction to scale down to produce a nice effect, it works fine on pc, but on my mobile device I found that the hover effect remained there after I pressed the ...
Ashmeet SIngh's user avatar
0 votes
0 answers
18 views

I have this as required design: All 6 figures you see are buttons and they must have different title. The design however is almost identical except bg-color. So I created my styled-btn component: ...
Borislav Stefanov's user avatar
0 votes
2 answers
55 views

The CSS specs give following reason why pseudo-elements can't be used as an argument within :has() pseudo-class: Note: Pseudo-elements are generally excluded from :has() because many of them exist ...
MicroMatrix's user avatar
1 vote
2 answers
278 views

I want to style specific "sections that are directly inside the body" and "sections that are directly inside a div directly inside the body" with the ":is()" pseudo-class,...
NineChu's user avatar
  • 13
0 votes
2 answers
54 views

I want to make targets of the :target pseudo-class visible. That is, if the target is a block element, e.g. <p>, that <p> should be outlined; and if the target is an inline element, e.g. &...
user avatar
1 vote
1 answer
30 views

I am trying to style lists in my website using pseudo elements to replace the default bullet point. However, the pseudo elements render on top of the dropdown menus in the navigation sidebar for some ...
Nick Heyart's user avatar
0 votes
1 answer
652 views

When I use :not(::placeholder-shown), :NOT seems to be not working in safari browsers. If you are not on safari: Below i added a way to use the safari browser with playwright so you can test it ...
Leon632's user avatar
  • 41
0 votes
1 answer
42 views

I know I can change the cursor with one click with the following CSS code: #slide-arrow-prev:active { cursor: not-allowed; } Is there anyway to change a cursor after two clicks using only html ...
bkw's user avatar
  • 109
0 votes
2 answers
37 views

I have created a 'block' for a webpage that for example is called 'test-div'. Test div also has an extra class added to it to change its background color ie. test-div test-div-bg-bright-gold test-div ...
Herro2689's user avatar
0 votes
0 answers
30 views

I want to attach dynamically a pseudo-class :before to a label inside a component whose data come from a db. I know one cannot manipulate pseudo-class (easily/safely) with JS vanilla. So I think about ...
user avatar
0 votes
1 answer
36 views

I have seen code that applies to a simple input-label pair: HTML <input type="checkbox" id="toggle" class="checkbox" /> <label for="toggle" class=&...
Lawrence Love's user avatar
-1 votes
1 answer
70 views

I am looking at realizing a CSS Native multilevel menu for a sidebar without using Javascript (or the setState in my current React implementation). I have done almost everything, but I am getting ...
Ste's user avatar
  • 333
0 votes
1 answer
31 views

I'm trying to change the border color from Mui TextFields,, with createThem from Mui v5, if the input is valid. The border gets set inside ::before and ::after pseudoclasses. I'm using variant="...
Jibrisu's user avatar
0 votes
0 answers
2k views

I have a component with the following structure: <li key={index} className="custom--item group"> <p className="font-medium mb-2">Person No.{index + 1}</p> <...
MiRAY's user avatar
  • 195
0 votes
0 answers
105 views

From mdn pseudo classes :scope The :scope CSS pseudo-class represents elements that are a reference point, or scope, for selectors to match against. To my understanding a "custom" pseudo ...
surfmuggle's user avatar
  • 6,040
0 votes
2 answers
171 views

writing text using ::after pseudo selector using content property and it's value comes from inline css variable. now on click of the text I am able to change the css variable value ( can be seen in ...
xkeshav's user avatar
  • 54.2k
-1 votes
3 answers
60 views

I'm trying to use CSS to make the text "Permits Required" and the ::before pseudo-class turn red - the ::before contains an icon. .knHeader__menu-list-item:hover::before { color: #...
rainybird's user avatar
0 votes
2 answers
41 views

I recently discovered the :has() pseudo-class. When I tried to test it I didn't see any changes. I really don't know why. * { margin: 0; padding: 0; box-sizing: border-box; } body { ...
Michael's user avatar
  • 79
1 vote
4 answers
118 views

I have some boxes that a lot of information inside them. I want the information less at first and if the user wants to read more information, they click the button "See More". Then if they ...
user avatar
1 vote
1 answer
307 views

In the :host-context() - MDN DOcs it is stated that: The :host-context() CSS pseudo-class function selects the shadow host of the shadow DOM containing the CSS it is used inside (so you can select a ...
J8ahmed's user avatar
  • 21
2 votes
0 answers
39 views

My input field has a label in the same position as the placeholder. When I click on the input field, the label moves up and appears at the top border of the input field, which looks really nice. ...
Imtiaz Ahmed's user avatar

1
2 3 4 5
20