Log In · Register

 
 
Closed TopicStart new topic
centered header img in generator?
evillaundry
post Jan 25 2006, 04:59 AM
Post #1


Newbie
*

Group: Member
Posts: 3
Joined: Dec 2005
Member No: 316,611



firstly, here is my lj
http://---.livejournal.com
s1 generator with custom colors

alls i wanna do is center a 600x400 image at the top above the entire journal. how?
 
*Libertie*
post Jan 25 2006, 09:44 AM
Post #2





Guest






QUOTE
GLOBAL_HEAD<=
<style type="text/css">
body {
background-image: url(IMAGELINKHERE);
background-position: top;
margin-top: 400px;
}
</style>
<=GLOBAL_HEAD


The parts in bold you will need to change. The image link is obviously the link to your image, and the top margin will usually be the height of your image. A bigger number will move it down, smaller will move it up - so if it looks weird, change that number as needed.
 
evillaundry
post Jan 26 2006, 07:01 AM
Post #3


Newbie
*

Group: Member
Posts: 3
Joined: Dec 2005
Member No: 316,611



hmm. when i added that code, it just made my header image a tiling background. this is what my code looks like now:

QUOTE
GLOBAL_HEAD<=
<style type="text/css">
.entrybox td {
text-align: justify;
}

td, font, div, p {
font-family: tahoma, sans-serif;
font-size: 8pt;
}

body {
background-image: url(http://www.evillaundry.com/livejournal/fhmheader.png);
background-position: top;
margin-top: 400px;

font-family: tahoma, sans-serif;
font-size: 8pt;
}
</style>
<=GLOBAL_HEAD

do you see anything wrong with it? if you go to my el jay, i edited out the image link in the actual code because it looked really stupid. but the entire journal has been moved down the correct 400px, it's just that my image tiles over the entire page.
 
*Libertie*
post Jan 26 2006, 11:12 PM
Post #4





Guest






Ah. Sorry..

QUOTE
body {
background-image: url(http://www.evillaundry.com/livejournal/fhmheader.png);
background-position: top;
background-repeat: no-repeat;
margin-top: 400px;
font-family: tahoma, sans-serif;
font-size: 8pt;
}


Add that line to the code.
 
evillaundry
post Jan 27 2006, 05:56 AM
Post #5


Newbie
*

Group: Member
Posts: 3
Joined: Dec 2005
Member No: 316,611



sweet. thanks. :)
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: