Adding a background image to a specific entry - Solved!

Nov 13, 2008 01:24

Going through the tags, I found that there was a question on whether adding a background image to entries can be done. I have a similar question: is it possible to add it to a specific entry? For example, a sticky post, with text going over the picture instead of being written on it using a photo editing program ( Read more... )

background

Leave a comment

Comments 7

malionette November 13 2008, 02:01:06 UTC
yes, I think. when posting your entry (don't post in rich text), write
(including the triangle brackets) at the very top. When you're finished your post, write

So it looks like:

post blah blah

Then, add .sticky {background-image: url(http://);} to your css. Replace http:// with your image url.

Reply

dj_aidatest November 13 2008, 02:23:22 UTC
Wonderful! It worked. Thank you so much, I'm going to use this on my regular LJ in a Friends Only post. Could you tell me if I will have to add some line breaks to the actual post, or simply add a height (is the correct term) attribute?

Reply

malionette November 13 2008, 02:25:25 UTC
I'm not sure, but it should work, I think.

Reply

dj_aidatest November 13 2008, 02:46:17 UTC
It did, I just had to be careful to put the correct height in pixels, otherwise the image repeats. Adding no-repeat didn't stop it, but I'm satisfied either way.

Thanks again, I really appreciate it!

Reply


Leave a comment

Up