
I've had a few people who needed just a little extra help with the header image and background image on their layouts so I'm going to attempt to explain how to change the coding in my layouts so you can add a header or background image yourself.
1. Pick the layout your want. I'm going to Choose #71 which is called All Hallows Eve. At this layout you will see that I supplied you with a header and a background but neither is a mandatory use. What I would suggest is to check our the layouts width at the very top of the post. You will wanted your Header image to be this width for the best view.
2. Do you have a Photobucket, Scrapbook, Image Shack or other images upload location? You'll need to save both the header and background image to your image account.

3. Once saved you should see a link below the image in Photobucket. Or in Scrapbook you will have to click into the image and I would recommend always using the Original Image link.


when you click the Original link in Scrapbook you will be shown the image. Copy the link that is in the address bar.
4. Head over to the coding you put into your Custom CSS Box.

5. Find the Body coding which should look something link this:
body{
background-color: #000000;
background-image: url(BACKGROUND IMAGE);
background-repeat: repeat;
background-attachment: fixed;
background-position: left top;
background-size: inherit;
color: #888888;
font-family: "trebuchet ms", arial, sans-serif;
font-size: 12px;
margin: 0px 0 20px 0;
}
Here you will highlight the words BACKGROUND IMAGE and delete them. You will be left with...
body{
background-color: #000000;
background-image: url();
background-repeat: repeat;
background-attachment: fixed;
background-position: left top;
background-size: inherit;
color: #888888;
font-family: "trebuchet ms", arial, sans-serif;
font-size: 12px;
margin: 0px 0 20px 0;
}
Now you should be able to copy the background image link between the parentheses (). Making your coding look something like this:
body{
background-color: #000000;
background-image: url(http://backgroundimage.png);
background-repeat: repeat;
background-attachment: fixed;
background-position: left top;
background-size: inherit;
color: #888888;
font-family: "trebuchet ms", arial, sans-serif;
font-size: 12px;
margin: 0px 0 20px 0;
}
But let's explain a few other editing options to the background.
background-repeat: essentially this is if you want your background to repeat. So say it is a big image that fits up the entire screen you might not want it to repeat. You'd go with no-repeat. Your only options here are repeat and no-repeat. Though there is the occasion you might want to have repeat-x or repeat-y which only means you want the repeat to go only horizontial or only vertical.
background-attachment: essentially this is for what you want the background to do. Will it scroll with the journal as you scroll down or will it stay stationary. Your options are really fixed and scroll. If you were using a really large image for the background not only would you not want it repeating but you would want it to be fixed. A fixed image would always apply if you want an image to stay in one place on your background maybe to the left or right of your layout.
background-position: this gives you many options. This really depends on your image. If you are using a small image that you'll have repeating sticking with the left top positioning is probably best. However, if you are using this large image I keep referencing you might want to go center center to make sure all the best parts of the image are being displayed. This positioning goes horizontal and then vertical in alignment. Your options will be left top, left center, left bottom, right top, right center, right bottom, center top, center center, center bottom. Feel free to play with this and see how best your image looks.
background-size: remember our large image? So say you want this image to be filling the entire screen with no scrolling and no repeating but it doesn't quit fit. Change the size option to cover. This show stretch the image to fill the screen always. You might want to center this in positioning. Contain should fill the screen but part of your image might not show up which is okay for large textured images but not so great if you want a scene in the background. You can also put in lengths which is width and height such as 75px 100px or percentage 50% 100% which would be useful for a fixed image to the left or right of your journal. As you can see in the above coding we have inherit which is what you'd want to use for a small repeating pattern image.
6. Go ahead and hit the Save Changes button.
7. Then scroll all the way down to the bottom of all the coding in your Custom CSS box and find coding that looks like this (should be almost the last bit of coding):
.headerimage {
position: relative;
width: 1000px;
height: 300px;
margin-left: auto;
margin-right: auto;
margin-top: 0px;
padding: 0px;
background-color: transparent !important;
background-image: url(HEADER IMAGE);
background-repeat: no-repeat;
-moz-border-radius: 0 0px 20px 20px;
-webkit-border-radius: 0 0px 20px 20px;
border-radius: 0 0px 20px 20px;
-khtml-border-radius: 0 0px 20px 20px;
}
Not the width and the height. These are important things to know. If you are saving your image in photobucket you can click on the image and there will be Photo Date which will tell you the dimensions of your image.
Here we want to delete the words HEADER IMAGE:
.headerimage {
position: relative;
width: 1000px;
height: 300px;
margin-left: auto;
margin-right: auto;
margin-top: 0px;
padding: 0px;
background-color: transparent !important;
background-image: url();
background-repeat: no-repeat;
-moz-border-radius: 0 0px 20px 20px;
-webkit-border-radius: 0 0px 20px 20px;
border-radius: 0 0px 20px 20px;
-khtml-border-radius: 0 0px 20px 20px;
}
Now past your link between the parentheses (). Your coding should look something like this:
.headerimage {
position: relative;
width: 1000px;
height: 300px;
margin-left: auto;
margin-right: auto;
margin-top: 0px;
padding: 0px;
background-color: transparent !important;
background-image: url(http://headerimage.png);
background-repeat: no-repeat;
-moz-border-radius: 0 0px 20px 20px;
-webkit-border-radius: 0 0px 20px 20px;
border-radius: 0 0px 20px 20px;
-khtml-border-radius: 0 0px 20px 20px;
}
If your image is 1000px by 250px then the height of this image will have to change or you will be left with a repeating of the image or a gap below your image. If you have chosen to have an image that is smaller than the width of your layout you will need to adjust the width of your image. Your width and height should match your image dimensions unless a border surrounds the image and then you will be shaving off a few px on the width.
So if you were to see a line that said:
border: 1px solid #cccccc;
you would want to make the width 998 because there is 1px on all edges. This shouldn't effect the height.
Still having trouble? Please comment.



layout_lounge
(no subject)
Date: 2013-02-25 03:56 am (UTC)(no subject)
Date: 2013-02-25 10:24 pm (UTC)background-position: left top;
Also make sure that on the repeat line you change repeat to no-repeat.
(no subject)
Date: 2013-02-26 03:25 am (UTC)I don't see a background-position: left top; slot on this layout, do I need to add that to the code or not?
This is the part of the code where I found The background info.
(no subject)
Date: 2013-02-27 10:59 pm (UTC)background-position: absolute;
Change absolute to left top.
Other options are:
left top
left center
left bottom
center top
center center
center bottom
right top
right center
right bottom
Does that help?
(no subject)
Date: 2013-02-27 11:16 pm (UTC)(no subject)
Date: 2013-02-28 12:14 am (UTC)(no subject)
Date: 2013-06-19 07:25 pm (UTC)background-size: cover;
Now all I need to do is fix up my image and my layout will be perfect THANK YOU!!!
(no subject)
Date: 2013-06-20 04:42 am (UTC)Also saw your suggestion in the "Suggestion Box" post. I'm gonna think that through. I think I can accomplish it but I have to think on it.
(no subject)
Date: 2013-10-19 04:18 am (UTC)the header keeps on shrinking!!
and the background wont expand!!!
Help me!!!
Please!!
thank you
(no subject)
Date: 2013-10-21 11:34 pm (UTC)(no subject)
Date: 2014-01-01 12:30 am (UTC)(no subject)
Date: 2014-01-05 05:00 am (UTC)(no subject)
Date: 2014-01-05 05:21 am (UTC)Okay so I found this code which you can add right after the .headerimage coding section.
.lj-view-friends { margin-top: -25px; }
This seemed to work for me. I hope it works for you.
(no subject)
Date: 2014-01-05 05:10 pm (UTC)Thank you so so much. :)
(no subject)
Date: 2014-01-07 01:07 am (UTC)I'm glad it worked for you.
header image
Date: 2014-02-26 11:05 pm (UTC)Re: header image
Date: 2014-02-26 11:20 pm (UTC)Help with my header in "Pretty In Pink"
Date: 2015-08-09 05:11 pm (UTC).headerimage {
position: relative;
width: 769px;
height: 201px;
margin: 3px auto 0px auto;
padding: 0px;
background-color: transparent !important;
background-image: url(http://ic.pics.livejournal.com/frozeneyes/667393/613381/613381_900.png);
background-repeat: no-repeat;
background-position: top center;
border-width: 20px 20px 0px 20px;
border-style: solid;
border-color: #F4A7B8;
z-index: 99;
}
http://frozeneyes.livejournal.com/
Thanks all!
Re: Help with my header in "Pretty In Pink"
Date: 2015-08-10 07:17 pm (UTC)Then under the line background-position: top center; I would add:
background-size: cover;
This stretches your image to fight the area.... which I only do with the image is already pretty big and yours is 900 so you are only stretching it 60pxs. This is reasonable.
Re: Help with my header in "Pretty In Pink"
Date: 2015-08-11 12:55 am (UTC):)
Re: Help with my header in "Pretty In Pink"
Date: 2015-08-11 01:16 am (UTC)The only things I tried to change was obviously I made my own images and added my own text. Otherwise it was mostly just a copy and paste job. Any thoughts? Am I missing something?
http://frozeneyes.livejournal.com/profile
Re: Help with my header in "Pretty In Pink"
Date: 2015-08-11 11:06 pm (UTC)Hmmm... I am going to kind of take a stab in the dark here and say that I think the issue lies in the table coding...
table cellpadding="10" cellspacing="20" width="680" align="left"
try removing the align="left" and see what happens.
Re: Help with my header in "Pretty In Pink"
Date: 2015-08-12 01:36 am (UTC)Re: Help with my header in "Pretty In Pink"
Date: 2015-08-12 08:27 pm (UTC)(no subject)
Date: 2015-08-09 11:03 pm (UTC)I really love your Bubbles Dark theme!
But unfortunately, I seem to be not able to copy the header image into my theme.
When I paste the url of the header image and save the updates, there's always just a black gap at the top of my page, like this:
http://i42.photobucket.com/albums/e335/Katie_Forsythe/LJ/lj%20cracks_zps3ceoizzw.png
Could you help me?
(no subject)
Date: 2015-08-10 07:29 pm (UTC)If you are having trouble with doing that there is a PHOTOBUCKET TUTORIAL (http://layout-lounge.livejournal.com/37241.html) and a SCRAPBOOK HOW TO (http://layout-lounge.livejournal.com/47929.html).
(no subject)
Date: 2015-08-10 09:44 pm (UTC)Oh, I'm so sorry, that I haven't been able, to edit my comment already.
I already fixed it. I uploaded the header picture to my photobucket and pasted it into the layout section. So it should work now.
Thanks for your help and your wonderful layouts.
You are incredible!
(no subject)
Date: 2015-08-10 10:31 pm (UTC)(no subject)
Date: 2015-08-11 10:51 am (UTC)Or do you mean the complete background?
And once again, I'm really sorry, to trouble you.
It wasn't my intention.
If there's still anything wrong and if I still have to change something, please let me know.
(no subject)
Date: 2015-08-11 10:41 pm (UTC)But according to your coding your body background image and your header are the same. Is this because you are having trouble getting the headerimage to work?
And it is no trouble I want to help. I just need a closer look usually.
I hope you have a better day today.
(no subject)
Date: 2015-08-12 10:13 am (UTC)Uhm, I dunno. Maybe I pasted some of the code at the wrong place. Maybe this is why my backgroundimage doesn't work. Haha.
So, I checked it up and changed the backgroundimage.
The header image is working now, but the background isn't working. Hm, that's strange.
Oh, thanks, today is a good day for me. I hope you have a great day!
(no subject)
Date: 2015-08-12 07:51 pm (UTC)body{
background-color: #646162;
background-image: url(http://i42.photobucket.com/albums/e335/Katie_Forsythe/LJ/0046t1g2_zps6jpbvdrn.png),
background-repeat: repeat, repeat;
background-attachment: fixed, fixed;
background-position: left top, left top;
color: #eeeeee;
font-family: "lucida grande", "lucida sans", trebuchet ms, arial, sans-serif;
font-size: 12px;
margin: 10px 0 20px 0;
}
I see the issue. At the end of the background image link there is an ), when there should be );
Try switching that comma for a semi-colon. That should make it work. *fingers crossed*
I'm glad your day was better!
(no subject)
Date: 2016-01-31 07:56 am (UTC)(no subject)
Date: 2016-04-19 11:31 pm (UTC)(no subject)
Date: 2017-06-06 03:20 am (UTC)For example, I just got a new computer and my screen resolution is much bigger than my work computer. So to make my header fit my layout, I increased the width, but now I have to scroll to see the whole header at my work.
Thank you. (If you're still replying to these!)
(no subject)
Date: 2017-06-09 12:11 am (UTC)(no subject)
Date: 2017-06-15 03:15 am (UTC)(no subject)
Date: 2017-06-29 08:48 pm (UTC)background-image: url(http://backgroundimage.png);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: left top;
background-size: inherit;
You can use the background-size code and change it to cover which should make your whole image appear. On different resolutions it might look squashed or stretched. But this should solve your problem.
background-size: cover;
(no subject)
Date: 2017-07-02 01:48 pm (UTC)(no subject)
Date: 2020-08-01 08:30 am (UTC)To my surprise the code change was accepted by LJ and now, after "frankensteining" the old with the new it somehow worked and the entries appear underneath the header image.
So thank you very much for your entry, it helped me a great deal!
(no subject)
Date: 2020-10-09 07:46 pm (UTC)(no subject)
Date: 2020-10-12 07:09 pm (UTC)