- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I am doing a technique in css called fahrner image replacement and this the html code that i put
a this is the css code .technique-two { width: 2350px; height: 75px; background: url("test.jpg") top right; margin: 0 0 0 0; }
but it didn’t work and i dont know where is the problem please if anyone know where is the problem write it to me because it causing to me a big trouble
If you are referring to this article: https://css-tricks.com/css-image-replacement/
You missed the margin statement
<h1 class="technique-two">
CSS-Tricks
</h1>
h1.technique-two {
width: 2350px; height: 75px;
background: url("images/header-image.jpg") top right;
margin: 0 0 0 -2000px; <--- here
}
Yes i fixed it but it also give me the same result
Perhaps you could make a Codepen to show us what you are doing?
Thank you bro it is fixed know