This question already has an answer here:
HTML CSS Making the background image static
(1 answer)
Closed 8 years ago.
Does anyone know how to keep a constant background so that when you scroll down a page it seems like everything is moving but the background image...basically a static background.
It's a CSS attribute called background-attachment: fixed;
Use it with the background-image attribute within the same element.
Related
This question already has answers here:
Partially overlap elements using CSS
(3 answers)
Closed 11 months ago.
Currently my site looks like this (making a browser based card game), please ignore the art for now - screenshot - I would like them to overlap slightly rather than wrapping around and creating a new line almost like someone is holding the cards. I have no idea where to even start with this without using js so I was wondering if anyone could help me come up with a solution that just uses pure css solution.
You can use margin-left and margin-right with negative values. Or you can set the card positions by using position: absolute and left and top properties.
This question already has answers here:
CSS background-image - What is the correct usage?
(10 answers)
Closed 4 years ago.
background-image: url(../images/title2);
im also trying to apply it to a container
i have a rootfolder called learning project inside it looks like this
My html page is inside html and my css is inside css both called index I'm trying to get from my css to my image folder to title2 which is just a random name and it wont work
Can anyone help?
wrap the relative url in quotes
and thats it
background-image: url('../images/title2');
This question already has answers here:
How to make a child div transparent?
(2 answers)
Closed 5 years ago.
So as exposed in the title, i'd like to make a part of a container transparent, but only where there is another div, I know I can't tell it clearly, then I made an example :
I don't know if it is possible doing this, using ONLY CSS, I can't use JQuery, not even Javascript.
Thank you in advance for your answers :)
No, this can't be done with CSS alone. However, as CBroe has said, you could apply the same background image to the second/inner to give the illusion that it's transparent.
This question already exists:
Closed 10 years ago.
Possible Duplicate:
Styling native tooltip from title=“Tooltip text”
Is any way to control browser tooltip in CSS.
like adjust height and width .. something
-spk-
Not for the built in tooltips with title, no.
You can create tooltip-like constructs of your own, though, by using a div (or anything) that is hidden until the user hovers over your element. See the :hover pseudo-class.
This question already has answers here:
Set background image for font color?
(5 answers)
Closed 9 years ago.
Can I make text textured by somehow setting an image as the text color, and having it repeat throughout the text?
Not possible with pure css. See previous post on Textured Text
I don't think that is possible, sorry.
You'd need to make an image.
Though if you could create the text with CSS masks, it will work :)
Yes, you can take a font of your choice and alter it so the outlines are cut out of solid blocks (like the 'oversteer' glyphs of this image instead of the 'unsteady' glyphs). You can embed this custom font into pages using CSS's #font-face, and then it's just a matter of applying a background in the normal way (and ensuring proper line-height, etc.).