Most voted "css-selectors" questions
16 questions
Sort by count of
-
35
votes1
answer830
viewsWhat is the difference between "element element" and "element>element" selectors?
I was looking at the code of Twitter Bootstrap, and found this CSS: .table-condensed > tfoot > tr > td { /* ... */ } In the sense of functioning, what would be the difference of placing…
-
28
votes2
answers1630
viewsWhat does the + sign in CSS mean?
For example: .input__field--minoru:focus + .input__label--minoru::after { } I’m having an effect here, but I don’t understand this sign + you have in the framework. Final Result…
-
16
votes3
answers4980
viewsWhat is the usefulness of the til operator in CSS?
When reading some codes I see that it is common to use the tilde (~) in the selector setting. Ex.: .effeckt-show.effeckt-modal-wrap ~ .effeckt-modal-overlay { ... } Code taken from Effeckt.css.…
-
16
votes1
answer880
viewsHow do >, + , ~ selectors work in CSS?
Selector + Takes the first element found after your declaration. div + p { font-size: 20px; } <div> </div> <p>Este é um paragrafo</p> <p>Este é outro…
-
13
votes1
answer1431
viewsDifference between pseudo-class (colon :) and pseudo-element (double colon :: ) in CSS
I would like to know the differences between these two concepts of CSS in order to understand and point out what one is, and what may be the other. For example: :hover, ::before. What I’ve…
-
4
votes1
answer137
viewsWorking Dynamic Selectors (Or Multiple Selectors) in Jquery
I have a Javascript code (Jquery) that takes characters from a DIV and plays this result for another DIV. For the DIV where I take the characters I created a function that adds a class dynamically,…
-
3
votes1
answer77
viewsDelete specific ids in querySelectorAll
I want to take the amount of elements coming from an array: document.querySelectorAll('select,input,textarea'); alert(Object.keys(arr).length);//19 Inside the array I have 4 elements to exclude,…
-
3
votes2
answers735
viewsIs there a css selector that selects elements through your text?
I want to add background the row of a table in which one of the columns is: Value 1. I tried with the pseudo-class contains and by innerHTML, but all without success. Code: table tr td…
-
2
votes3
answers864
viewscss select only first level
I have a menu with up to 3 levels of nested lists. I need to select only the first level text and skip the nested content. I tried to use .menu > ul> li {} (and some variations of this) and…
-
2
votes2
answers241
viewsSelect text in parentheses (CSS)
I wonder if there is a way to select a text that is in parentheses using CSS only. For example.: <p>Sistemas de informação (ead)</p> I would like to select the text "ead" and put it in…
-
2
votes1
answer418
viewsHow to change another element with pure CSS?
How can I change another element with Pure CSS, from one element? I tried to do this but it didn’t roll. I don’t know the CSS selectors and wonders in depth. input { display: block; transition: top…
-
1
votes1
answer93
viewsProblems with css :not() attribute
I’m having a problem I’m editing a h2with css and within that h2 has a span but wanted to apply the style in h2but I don’t want style to apply to my span I’m using the selector :not(span) but it…
-
0
votes1
answer168
viewsRelative Position of the Table row
I have a table with 50 lines Of these only 10 are visible Added the css class "ux-select" to line 5 The code $('table tbody tr:visible.ux-select').index() will tell me what the row number in the…
-
0
votes0
answers73
viewsQuery selector /3a
I’m making js of htmls complexes that were not structured by me. To facilitate use of Firebux or Chrome Developer to copy the ready selector. They return me this selector: #dadosCadastrais\3a…
-
0
votes0
answers39
viewsHow to make use of CSS selectors so that there are two simultaneous conditions
Look at that: The question noted as Duplicate, was of my own, recent! It has not yet been answered, because despite the indication of another link, there is diffuses the application of possible…
-
-1
votes1
answer226
viewsSearch for CSS selector using label text
Hello, I’m looking to automate a form that has 4 fields in which the only difference is the label. I’ve searched a lot, but I couldn’t find an answer that would help me. I’m automating with Selenium…