174 questions
0
votes
1
answer
602
views
React Native: Resize an image and put it in the top of the screen
I want to resize the image to fit my desired width and height and put it in the top. This is my code:
<View style={{ flex: 1 }}>
<Image source={TOP_START_GRAPHIC} style={styles....
-1
votes
2
answers
72
views
How to make font awesome icon appear when setting it in content of css [duplicate]
Having this snippet:
.my-style {
padding: 0;
list-style-type: none;
}
.my-style i {
margin-right: 5px;
}
.my-style li {
margin-bottom: 8px;
}
.my-style li::before {
content: '\f00c';
...
3
votes
3
answers
4k
views
Is it possible to add "aria-hidden" for css content property?
I have a decorative element in the header that separates links "|". It is added as a CSS content element:
::after {
content: "|";
.....
}
In HTML it is presented inside of ...
0
votes
2
answers
277
views
Classic HTML blockquote consisting of top and bottom centered special character
I am trying to style a classic blockquote, where the bottom and top border contain a special character such as ≋ ≍ ≡ ∼ ⨌ ⫗ ⁗ ∾ ∿ centered on its own box with a background color that goes over the top ...
0
votes
1
answer
731
views
How do I override the CSS content property of a pseudo ::before/::after element?
This question is not a duplicate, though it might appear so to someone not reading very carefully.
This is not a question about CSS specificity, nor is it about the !important directive (I don't think)...
3
votes
1
answer
371
views
CSS image content not working in Safari and on mobile Firefox
Not sure if this is a browser compatibility issue or what.
I have a page with an IMG tag that's set with one .png file as its SRC attribute, and a second, separate .png file set as the CSS 'content' ...
3
votes
1
answer
678
views
How to make svg added as css ::after content scale to the size of the font
I have some generated html that has headers with appended anchors (no content, but with a unique id), and I'm adding a 'link icon' that pops up when you hover the header to make it easy to get a link ...
1
vote
1
answer
67
views
css content element not showed in if display=flex
I have a line describing the full company address.
It is made with different pieces
<div><b>COMPANY</b> • Address, City • VAT 12345678901&...
0
votes
1
answer
278
views
Using regular expression in CSS pseudo element
Not sure this is possible with CSS only, can the content of a pseudo selector contain a regular expression?
In this scenario:
.normal-class::before {
/*content: attr(class); => this works, ...
-1
votes
2
answers
2k
views
Edit colour of text within CSS content
I would like to change the color of some text but the text is in the CSS property 'content'. Is there a way to select specific words and colorize them?
For example here is the code I have .info:before ...
0
votes
3
answers
203
views
How to cancel the inheritance of the "li:before {content: 'text'}" without reassigning it for each <li> element?
everyone!
The general goal is that all li elements for which a property is not explicitly declared use the standard value.
I don't understand why the content property can't be reset:
ul {
...
1
vote
1
answer
190
views
HTML IMG with CSS content invisible without ALT tag
In Firefox 88, CSS-styled images are invisible when they don't have an alt tag. Is that a bug in the browser or is that incorrect HTML/CSS?
img.wikipedia {
content:url("https://upload....
2
votes
1
answer
128
views
Is CSS content supposed to be shown if it includes an undeclared CSS variable?
The following CSS code will generate different results depending on whether or not variable --test2 is defined:
html::before {
content: "test1:" var(--test1) " test2:" var(--test2);
}
If ...
0
votes
1
answer
39
views
Pseudoelement's content doesn't get updated in IE11
I have the following code:
someSelector:after {
content: attr('data-some-data');
/* ... */
}
Everything works fine (the value is reflected on the screen) until I change this attribute to ...
0
votes
1
answer
1k
views
CSS content attribute: loading text from a TXT file
I need to know if it's possible to load text from a TXT file with the CSS "content" attribute? I searched around and didn't find anything.
I have the following CSS:
.custom div.ot-loginPageCopyright:...