All Questions
131
questions
0
votes
0
answers
44
views
Using `background-image` to fill SVG rect with stipple pattern
I’m able to use background-image with a gradient to generate a stipple pattern for a div (upper square), but I can’t seem to make an SVG element (lower square) use that as a fill.
I don’t want to use ...
0
votes
1
answer
49
views
I want the background to have a different color below the svg and a different color above svg, I set as a background, How can I achieve that?
I want to have a separate background color below the svg and a separate background color above the svg.
Note that I have set the background Image for the body element and I will be using a grid layout ...
1
vote
0
answers
50
views
How to fix SVG being cut off when using as background?
I'm currently experiencing an issue with my SVG, where it seems to be cut off when it is resized on a larger screen. I've attempted various adjustments to the preserveAspectRatio attribute without ...
0
votes
1
answer
51
views
SVG gradient works as stand alone HTML but not when embeded in CSS [duplicate]
My SVG gradient works as isolated HTML, but doesn't work when embeded into CSS background attribute.
I want to embed SVG into my CSS so I can have some complicated backgrounds. I started with a basic ...
1
vote
0
answers
47
views
Hide text on animation, on a dynamic SVG background
I've faced a problem where I want to hide text and then reveal it uppon animation, but I find it hard to do on a dynamic SVG background. Everything is in Vue
LandingPage.vue
<template>
<...
2
votes
1
answer
124
views
I want to add background image or image in select list using css and html [duplicate]
I want to add background picture for options in select list on all browsers.
CSS styling only working on chrome.
<style>
.label-sm option{
font-size:16px;color:black;...
3
votes
0
answers
969
views
CSS: How to create a background-image masked by a mask-image
I have a div that I want to give a regular background-image modified by a mask-image, so that the page background, which uses background-attachment: fixed; can "float" as if seen through a ...
0
votes
1
answer
127
views
Why borders right and bottom are not displayed in a div with a SVG background?
Can someone explain me why only the top and left borders are displayed on the div and img elements?
https://codepen.io/jpe44/pen/rNvbOdB
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3....
1
vote
1
answer
178
views
Using SVG as Content container
I'm trying to use an absolute positioned SVG in a container and should be able to scale on container resize and should flow with the content.
The bottom content generated with SVG should keep the ...
0
votes
2
answers
455
views
Mask repeating svg background pattern with linear gradient in css
I want to mask a repeating svg background with a linear gradient like this:
These are linear gradient and repeating svg in css:
.hexgrad {
background-image: url("data:image/svg+xml,<svg ...
1
vote
2
answers
562
views
CSS / SCSS background image as marker for li via :before
this is my first question so I hope its specific enough:
I want to enter a svg check mark sign (https://fonts.google.com/icons?icon.query=check&icon.style=Sharp) in front of each li item, instead ...
0
votes
0
answers
59
views
Scale CSS background / SVG to reflect real world pattern size
I have a product configurator where a user can enter values for a wall and the wall is displayed as a html element with a fixed with of 200px.
I have a SVG pattern file with a tile pattern. In reality ...
1
vote
1
answer
657
views
masking a text with a one of image and one of div background color
My problem here is that I want to make a half in the text wherein the the other side of text is just a div with a background color and other half is an image so that I can mask it in a text.
Here is ...
1
vote
1
answer
163
views
Mobile browser add background to m svg
I am using this svg as background of input type="range" thump via background-image
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" ...
0
votes
0
answers
453
views
Why using mask-image with svg, the svg overlap every component?
i'm using svg icons with mask-image property in scss, the icons looks great, but the only problem that i'm having it's, when the icon is under another component, the icon overlap all.
Here is the code:...