ext_194372: TVD: Caroline Close Up (Default)
[identity profile] sireesanwar.livejournal.com posting in [community profile] layoutlounge





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.

(no subject)

Date: 2013-02-25 03:56 am (UTC)
From: [identity profile] joyfulljunebugg.livejournal.com
What do I do to the code so that the background image is on one side of my layout? like this http://mizugazipan.livejournal.com/ ??? I just want an image on one side of my layout and nowhere else. Thanks if you can help (* ^ â–½ ^ *)

(no subject)

Date: 2013-02-26 03:25 am (UTC)
From: [identity profile] joyfulljunebugg.livejournal.com
Thank You! that worked pretty well!

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.

Edited Date: 2013-02-26 03:10 pm (UTC)

(no subject)

Date: 2013-02-27 11:16 pm (UTC)
From: [identity profile] joyfulljunebugg.livejournal.com
(ノ^‿^)ノThanksヽ(^‿^ヽ)

(no subject)

Date: 2013-06-19 07:25 pm (UTC)
From: [identity profile] joyfulljunebugg.livejournal.com
You saved my layout once again my code doesn't have any background specs I had to add this line to fix it.

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-10-19 04:18 am (UTC)
From: [identity profile] parkjinmi22.livejournal.com
i cant set the header and the background properly... Help?

the header keeps on shrinking!!
and the background wont expand!!!

Help me!!!
Please!!
thank you

(no subject)

Date: 2014-01-01 12:30 am (UTC)
From: [identity profile] voicesinherbody.livejournal.com
I am having a gapping issue with my header, but only on my friends page. For some reason I'm getting a top gap between my header image and the account banner. Help!! Oh, and the gap only appears on my friends page when I'm logged in. What the what??
Edited Date: 2014-01-01 12:45 am (UTC)

(no subject)

Date: 2014-01-05 05:10 pm (UTC)
From: [identity profile] voicesinherbody.livejournal.com
It works! You are magic!

Thank you so so much. :)

header image

Date: 2014-02-26 11:05 pm (UTC)
From: [identity profile] faerycharmjulie.livejournal.com
Thank you so much for this code. I LUV the rounded edges!

Help with my header in "Pretty In Pink"

Date: 2015-08-09 05:11 pm (UTC)
From: [identity profile] frozeneyes.livejournal.com
So you'll see the displacement when you look at my journal and I'm not done tweaking it, but what am I doing wrong or overlooking to get the header to look correct and at it's full size?

.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-11 12:55 am (UTC)
From: [identity profile] frozeneyes.livejournal.com
Okay I'll see what I can do there and fix that up.
:)

Re: Help with my header in "Pretty In Pink"

Date: 2015-08-11 01:16 am (UTC)
From: [identity profile] frozeneyes.livejournal.com
Okay that worked well! Thank you!! :) I hate to ask, but can I also trouble you for any help with what I added to my profile page? I was attempting to tweak the Profile Layout #7: "Divergent".

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-12 01:36 am (UTC)
From: [identity profile] frozeneyes.livejournal.com
Once again you're helping me make the ol' LJ a lot prettier. Thanks again as always. :) So appreciated.

(no subject)

Date: 2015-08-09 11:03 pm (UTC)
From: [identity profile] irrlichtertanz.livejournal.com
Hi there!
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 09:44 pm (UTC)
From: [identity profile] irrlichtertanz.livejournal.com
Hey!
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-11 10:51 am (UTC)
From: [identity profile] irrlichtertanz.livejournal.com
I'm sorry, it's been a really tough day and I seem to be a bit confused the whole day. So, which image do you mean? The header picture? Because this is already pasted from my photobucket.
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-12 10:13 am (UTC)
From: [identity profile] irrlichtertanz.livejournal.com
Oh, this is so sweet of you!

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!
Edited Date: 2015-08-12 10:34 am (UTC)

(no subject)

Date: 2016-01-31 07:56 am (UTC)
From: [identity profile] witheringheight.livejournal.com
Hi! I'm only new to coding and I'm having trouble on finding the right codes that will make me add borders on my entries. I might sound like a dummy but I'm really, really desperate right now. Thank you!

(no subject)

Date: 2017-06-06 03:20 am (UTC)
From: [identity profile] arabian.livejournal.com
Is there some CSS coding that can be placed in the header section so that the header image resizes on different computer resolutions?

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-15 03:15 am (UTC)
From: [identity profile] arabian.livejournal.com
Any help would be very much appreciated. Thanks. :)

(no subject)

Date: 2017-07-02 01:48 pm (UTC)
From: [identity profile] arabian.livejournal.com
Thank you. I'm gonna give it a try! :)

(no subject)

Date: 2020-08-01 08:30 am (UTC)
scolaro: (A_doc_syringe)
From: [personal profile] scolaro
I know this post is ancient history, but after what felt like eons ago that my header image had stopped working with the CSS I'd previously used (the margin wasn't accepted and the entries were floating over the image) I searched for the issue, found your old posting in this comm, and fiddled around with your .headerimage example, not really believing that it would lead to anything because the issue was certainly due to changes made by LJ in the meantime. (It still worked fine on DW.)
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!
Edited Date: 2020-08-01 08:31 am (UTC)

(no subject)

Date: 2020-10-12 07:09 pm (UTC)
scolaro: (a_reasoning_ezio)
From: [personal profile] scolaro
That does seem to be in LJ's job description... XD

About

Welcome to the Lounge. Our tutorials are saved here. These are currently all for LJ and Flexible Squares. Should you have general questions about us check out our FAQ. I do NOT customize layouts for individuals.


    Layout Change Quick Guide
If you like Flexible Squares, I have tons of layouts for you, and still create them.

I've been creating Layouts for DW's Transmogrified. Here's how to use them:
1. Go to Transmogrified Layouts.
2. Choose Basic.
3. Go to Custom CSS.
4. Make sure all boxes are unchecked
5. Copy Coding to Stylesheet Box.
6. Make sure to update with your own images/image urls. Imgur images are okay to be used.
7.Click Save.


Tips Welcome:

You can also find layout_lounge at LiveJournal.

Tags

April 2025

S M T W T F S
  1 2345
6789101112
1314 1516171819
2021 2223242526
2728 2930