- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 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’m trying to achieve this.. on the top right.. using the compass as a background and the social buttons over the bottom of the compass image..
here is what the site currently looks like..
what would be the best method to achieve this?
Yes… Sort of hard to explain because it’s quite basic.
To use an image as a background on a div, the CSS will go like this:
#divname {
background: url('path/to/image.jpg');
}
That is its most basic form, you can also position it, say if you’d like it to repeat or not, and even add a color behind the image.
Example:
#divname {
background: url('path/to/image.jpg') top left no-repeat #fff;
}
If you update the link to the site in question I can have a closer look at it.
Are you 100% sure that’s where the image is located?
so, i figured it out.
i put some padding to make the div box bigger then used a vertical align to push the social buttons to the bottom. from there.. i used the padding to move em to the right..