May. 21st, 2019
No Subject
I'm being dumb. Again. One day I would like to make a layout where everything goes how I want it to go the first time round.
Anyway. What I'm trying to do is set an image as the background of the custom text module. What I have is:
.module-customtext{background:url(https: //i.imgur.com/LwzAi8G.jpg)no-repeat fixed;
background-size:100%;
height:300px;
width:200px;
}
I've managed to get other images to appear as the background but for some reason which is the exact size I've specified isn't appear and it's driving me insane.
Halp!
Also I'm trying to tag this post and it says I don't have permission to edit tags on the post?!
Anyway. What I'm trying to do is set an image as the background of the custom text module. What I have is:
.module-customtext{background:url(https:
background-size:100%;
height:300px;
width:200px;
}
I've managed to get other images to appear as the background but for some reason which is the exact size I've specified isn't appear and it's driving me insane.
Halp!
Also I'm trying to tag this post and it says I don't have permission to edit tags on the post?!
Comments
Your code looks right, but I'd have to see the entirety to be sure there's nothing else conflicting with it. Have you tried adding
center
to the background or changing the size toauto 100%;
maybe?I'll try that thx
auto 100%; made it appear BUT it looks like the image is appearing bigger than the module size which is supposed to be the same size as the module (200x300). Also it's doing a weird scrolling thing which I assume is the fixed part of the code above?