Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
72 views

I have a table (in a div with an id) and I want to apply styling on it (to collapse its borders) using CSS's universal selector combinator (*) and all of the div's descendants (in order to isolate the ...
atanas's user avatar
  • 23
3 votes
2 answers
127 views

I am looking to construct CSS to target this element... <input type="button" pseudo="-webkit-media-controls-play-button" aria-label="play" ...
Corona MacGuinness's user avatar
1 vote
3 answers
89 views

I am trying to target a paragraph only if it is not inside the custom component my-component. like this: // Style all elements that are NOT inside my-component :not(my-component) *{ color: red; } ...
Pascal's user avatar
  • 2,391
3 votes
1 answer
108 views

I am trying - and failing - to write JavaScript to click this button: The HTML for the button varies depending on the page Example 1 from this page: <span class="a-button-text" aria-...
Sockie's user avatar
  • 309
0 votes
0 answers
28 views

Below is my HTML code that showcase the problem. Without modifying the HTML structure or adding a class is it possible to select the 3rd span.chatbot-bot-response-inner that contains for example img[...
Mehdi's user avatar
  • 1,795
-1 votes
1 answer
54 views

When I have the width style of an image defined to be 100% of the parent then the image does not overflow. But, when I define the max-width to be 100% of the parent then it overflows. Here is my ...
dubc's user avatar
  • 61
0 votes
0 answers
65 views

I have just migrated from SCSS to PostCSS and encountered only one issue I cannot resolve. The issue concerns how to alter a the styles of a nested element when its parent has a specific class. The ...
Walrus's user avatar
  • 20.6k
6 votes
1 answer
150 views

Let's say we have a list of items, with splitter elements (<h3>), for example dates : <h2>Big Header</h2> <div id='container'> <h3>Week Title A</h3> <...
Mm-Art-In's user avatar
  • 23.1k
1 vote
1 answer
73 views

My goal is to have an architecture where the shadow is defined once, but the color changes depending on HTML attribute data-color-mode. Note: code provided is just for the isolated problem ...
Slava's user avatar
  • 3,157
0 votes
1 answer
65 views

I'm developing a custom user stylesheet for YouTube to add a "WATCHED" overlay to video thumbnails. My main objective is: The overlay should be visible on any video that has been watched, ...
Danny Devito's user avatar
3 votes
3 answers
135 views

Given: <table> <caption>Table Title</caption> <thead> <tr>...</tr> </thead> <tbody> <tr>...</tr> </tbody> </table&...
rhavin's user avatar
  • 1,804
3 votes
1 answer
111 views

Is it possible to select via a CSS selector (or xpath) an element based on its computed aria name (=accessible name)? For instance for buttons it is computed like The button has an accessible label. ...
tobiasBora's user avatar
  • 2,594
1 vote
1 answer
83 views

Not that two lines versus one is an issue; but I'd like to learn if there is a more concise way of selecting all but the last-child unless the last-child is also the first-child or only-child, in ...
Gary's user avatar
  • 3,226
1 vote
1 answer
102 views

I am learning to scrape data and using the website https://quotes.toscrape.com/ as a training dataset. When I try to collect the about section links, I get this error: Error in html_attr(html_elements(...
Bogz's user avatar
  • 13
0 votes
3 answers
64 views

Here is my snippet. The <p> is the text "Cool CDs", which appears as a gradient-filled text (with the use of background-clip:text). p::before is a slightly shifted-down stroke that I ...
theTrillionthDavid's user avatar
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
0 votes
0 answers
31 views

Minimal demo: <div class="demo"> <img class="child1"> <p class='child2'>a</p> </div> <div class="demo"> <img class="...
An5Drama's user avatar
  • 774
1 vote
1 answer
56 views

Regarding CSS attribute matching, is [href="http"i] legal syntax, no space between the ‘"’ and the ‘i’, or does there have to be whitespace, i.e. [href="http" i]? The W3C ...
Cecil Ward's user avatar
0 votes
3 answers
185 views

I want to individually color in cells on a 2x5 row html table, pictured in the above image. I can't find any examples of :nth-child allowing you to individually select and set the color of multiple ...
THISISNTAVERYLONGNAMEORISITIDK's user avatar
0 votes
0 answers
67 views

I'm using Publii (a static site generator) to create a website and ran in to a problem while creating a contact form. The contact form itself works fine but while implementing floating labels I wanted ...
Hallo5000's user avatar
0 votes
0 answers
30 views

While doing this exercise, I came to the idea of "optimizing" the code trying to avoid the use of the class selector .white-text, and setting the property color: white using the class ...
HCZ's user avatar
  • 9
1 vote
2 answers
81 views

I'm trying to figure out a way--when hovering on an element--to affect that element and the next subsequent-sibling ONLY. In my example below, when I hover over the Header I only want the next Footer ...
Realto619's user avatar
  • 115
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
1 vote
2 answers
74 views

I am trying to style a code block in Lexical Editor for which I cannot change the markup Basically, a code block is a flat sequence of span and br, like : <span class='inserted'>+</span>&...
Jerome WAGNER's user avatar
0 votes
2 answers
44 views

Here's a dummy piece of code as an example : <div id="parent"> <div class="child" id="childA"></div> <div class="child" id="...
Hanô's user avatar
  • 11
0 votes
1 answer
47 views

I have a html where I want to get elements with class="a" and id="c d". If I have only one of them, I can use soup.select('[class="a"]') and soup.select('[id="c d&...
Akira's user avatar
  • 2,820
0 votes
0 answers
19 views

I have below star rating HTML for a review form. As such the result is SSSSS where S represents * rating. <p class="stars selected"> <span> ...
user2043688's user avatar
0 votes
0 answers
159 views

I am using web components with lit I am trying to style a custom element with :host which has another custom element as sibling Below is my code import {html, css, LitElement} from 'lit'; import {...
Rahul Yadav's user avatar
  • 3,277
0 votes
2 answers
93 views

I am very new to CSS but trying to format alignment in a HTML Table that contains (3) columns (each column with a header). I want the first column aligned center, the 2nd left and the third right. ...
RJF's user avatar
  • 1
0 votes
1 answer
51 views

My code: .project-gallery .portrait:nth-child(odd) { padding-left: 0 !important; } .project-gallery .portrait:nth-child(even) { padding-right: 0 !important; } <div class="project-gallery"> <...
Paul VI's user avatar
  • 585
0 votes
1 answer
34 views

I'm trying to make my website responsive using a media query, but the styles inside it are not applying on my phone, even though I'm sure the screen width is under 768px. body { background-color: ...
SaumilPatel's user avatar
0 votes
0 answers
27 views

I'm customising the font of VSCode's context menu by modifying this file: C:\Users\varit\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\workbench.desktop.main.js My changes ...
Varity Colgate's user avatar
0 votes
1 answer
224 views

I have some JS which needs to effect some styling of an entire rendered HTML document. What I current use is the following CSS: [myattr="true"] { direction: rtl; } [myattr="false"]...
einpoklum's user avatar
  • 137k
0 votes
1 answer
49 views

I am assuming the answer will be "no" but figured I'd ask people more knowledgable than me. Is there any sort of CSS selector for matching URLs that I have bookmarked in my browser? I see ...
Crabgrass0899's user avatar
0 votes
1 answer
64 views

want to build an automation that will extract the shipping address of a customer from the element that on the attached picture. How to extract the value of the city to make the automation. I tried to ...
Pro4automations's user avatar
1 vote
1 answer
56 views

I am trying to get the CSS Selector of the error message being displayed in the login/signup screen in https://automationexercise.com/login I tried the solution given in How to find the element of a ...
JC Basilio's user avatar
-1 votes
2 answers
187 views

I am working on a Hubspot website that has two versions of the same custom theme. The theme version 1 (V1) is on the older pages and we are updating the site to version 2 (V2) so the new pages have ...
John Laprairie's user avatar
2 votes
2 answers
117 views

I'm wondering if it's possible to write a CSS selector that will target an element in a separate div when the current element within a sibling div is hovered over. In my specific case, referencing the ...
user10229301's user avatar
3 votes
0 answers
99 views

I'm working on an application that will return some of its results as a massive HTML table. To keep the rows and columns from being resized by text hundreds of cells away, any cell content that's more ...
Draconis's user avatar
  • 3,547
0 votes
0 answers
21 views

Prefacing that I'm still a beginner in coding with both CSS and HTML. I am trying to create a sort of timeline with two columns, on the left and right of a middle track and with each timeline entry ...
ciel's user avatar
  • 21
0 votes
1 answer
40 views

I have images in a carousel, and I have set the height to 40vh. The picture looks fine, except that as the screen gets larger, it zooms to the top of the image instead of the bottom where I want it ...
Lee Worley's user avatar
1 vote
0 answers
75 views

I'm trying to use the rvest package in R to scrape a tournament bracket from the 2024 NCAA div 1 wrestling tournament. I've used the selector gadget tool to determine that the CSS selector for the ...
Tracy Morris's user avatar
-1 votes
1 answer
51 views

my programming teacher made us program in python a calculator for calculating fuel consummation in L/100KM and i decided to go further and even have it calculate the price per 100km but heres the ...
VXV's user avatar
  • 1
0 votes
4 answers
86 views

I need to apply css to a parent and 3 nested deep children, this works: .the-parent, .the-parent > div, .the-parent > div > div, .the-parent > div > div > div{ display: flex } ...
karlosuccess's user avatar
0 votes
1 answer
131 views

basically I try to write a code that automatically clicks the cookie and, every 3 seconds, buys an item of the found elements without the class-attribute of "grayed" (as those are the ones u ...
kutari studios's user avatar
0 votes
0 answers
34 views

I want to create the effect above, however what I've tried results in this: A line under the block of text, instead of all the text. What I've tried (ignore the colors and font): .item::after { ...
Silas's user avatar
  • 13
0 votes
2 answers
84 views

I've got a flex container with 3 rows inside. The entire container is horizontally scrollable. (HTML & CSS in the fiddle) I am then alternating the background colour (yellow) assigned to the rows. ...
Joe Bloggs's user avatar
  • 1,462
0 votes
0 answers
35 views

I am trying to select the href for Exhibit 2 using a CSS selector <td> Order Granting Debtors' Motion for Entry of Order (I) Establishing a General Bar Date to File Proofs of Claim, (II) ...
ScottyCov's user avatar
1 vote
0 answers
127 views

Often an html element can be found by different locators. To find the <h2>...</h2> element <div> <section> <div class="articleheader"> <...
surfmuggle's user avatar
  • 6,040
0 votes
1 answer
106 views

I'm trying to get the Web Element by using streams in java and click on add to cart, but unable to get the element in the first place. Here is the code. WebDriver driver = new EdgeDriver(); driver....
Rohit's user avatar
  • 1

1
2 3 4 5
310