Skip to main content
0 votes
0 answers
12 views

I'm working on a pricing section where each plan is inside a `.plan-box`. All direct `<div>` elements inside `.plan-box` have a general style: ```css .plan-box div { padding: 15px; ...
True_Nerd's user avatar
2 votes
1 answer
76 views

I have the following HTML & CSS: <div class="p-12 border both-have"> <div class="p-12 border both-have my-inner"> @import "tailwindcss"; .both-have, ....
user30730510's user avatar
0 votes
0 answers
49 views

In the screenshot below, you can see that a font-family declaration with a rule specificity 0-0-1 is taking precedence over one with specificity 0-1-0. My understanding is that order of rules only ...
Josh's user avatar
  • 1,315
6 votes
1 answer
118 views

From what I understand of CSS specificity and cascades, if an element is targeted twice with selectors of the same specificity then the latter style should be applied. However, this doesn't seem to be ...
TurtOMein's user avatar
0 votes
1 answer
38 views

In the given code snippet why font size of h1 element is 36px? I have these questions : If h1 is defined 1st, then the font size of main(i.e. 32px) should be applied on the h1 heading, as it is ...
Shubhang Sahu's user avatar
0 votes
0 answers
44 views

I am trying to understand specificity in the css. I have used class selector .grandparent and type selector p for changing the color of all the paragraph inside each.grandparent. What I understand is ...
novice's user avatar
  • 540
0 votes
1 answer
84 views

See the "Show" button underneath and to the right of "Open modal" on https://fresh-rfui-test.deno.dev/islands. I have: <button type="button" class="bg-neutral-50 ...
Adam Zerner's user avatar
  • 19.6k
0 votes
1 answer
38 views

hello, I am trying color my paragraph tag but i unavailable to do because top p tag (element selector) is overriding bottom p tag. it work when i write tag name but i want them to automatically ...
yashlodhi's user avatar
  • 139
4 votes
2 answers
65 views

On MDN Web Docs website, they have mentioned that the total specificity for the selector button:not(#mainBtn, .cta) is as follows: | Selector | Identifiers | Classes | Elements | ...
rocketdeveloper's user avatar
0 votes
1 answer
39 views

While coding today, I ran into a surprise - element CSS rule with no specificity is being used, even when a rule with higher specificity exists. In the example below, I would expect: Text1 is blue ...
Draex_'s user avatar
  • 3,604
4 votes
1 answer
99 views

I'm self-teaching myself Html/Css, kindly explain to me like a dummy(phew!) Help clear the doubt where I tried to target my list items in an unordered list. I realized that color property couldn't be ...
Polycarp Angololo's user avatar
1 vote
2 answers
75 views

I am reading MDN docs here. They are explaining specificity in CSS. For button:not(#mainBtn, .cta), specificity is given as 1-0-1. Since, there is one class involved here, I think the specificity ...
user9026's user avatar
  • 970
0 votes
1 answer
937 views

This is an old project. The theme adds a class to body or another root element. I need to style fonts, backgrounds, based on the theme, but this often leads to structures as: .theme-light { ... ....
Paul Pacurar's user avatar
0 votes
0 answers
40 views

css selector specificity is not behaving the expected way. this is the HTML Code <nav> <p>This is the navigation</p> <a href="blog.html">Blog</a> ...
ShivBalaji's user avatar
0 votes
0 answers
38 views

I have two media queries: `@media (max-width: 815px){ .page .item { margin-right: 5px; } }` `@media (max-width: 655px){ .page .item { margin: 0 auto; ...
Lilly's user avatar
  • 110

15 30 50 per page
1
2 3 4 5
25