?

Log in

No account? Create an account

Previous Entry | Next Entry

Header alignment problems-SOLVED

  • Feb. 10th, 2007 at 11:20 PM

Hey. First of, i wanted to thank you guys here for all the info. Thanks to all the info here, i've managed to get my header up.

It was all fine at first, with the header in the correct position. But now, it isnt aligned in the centre anymore, and i havent touched my CSS codes. I tried retyping it and stuff, but that didn't work.

This is the code i used:

#header{

background-image: url(http://i138.photobucket.com/albums/q243/Bacafreak/Untitled-4.jpg);
background-repeat: no-repeat;
background-align: centre;
}


#header-text {
    margin-top:270px;
}

When i tried retyping it, i tried changing 
background-align: centre;

to

background-position: centre;

but that didn't turn out so good. It was in the middle but at the bottom, leaving lotsa space at the top.


As i said before, it was working fine..so i dont really know what happened. I'm not so sure if it's just my computer.

Thanks for any help :)

Comments

( 2 comments — Leave a comment )
angryhamster
Feb. 10th, 2007 05:41 pm (UTC)
well, i got a way around it, if this is any use to you:


#header-inner {
background-image: url('http://i138.photobucket.com/albums/q243/Bacafreak/Untitled-4.jpg');
background-repeat: no-repeat;
background-position: top center;
}


1) center, not centre. i don't think css works with european spellings.
2) position, not align. i've never seen align used in that way before, but it doesn't seem to work.
3) top center, not just center. you need to give it a position on both the X and Y axes.

hope that helps! :)
bacafreak
Feb. 11th, 2007 08:19 am (UTC)
Oh. I didn't realise bout the spelling.
I tried the code you gave me, but it didn't work. The header pic didn't appear. But i edited the code u gave me a lil bit, and instead of #header-inner i just typed #header. And it worked :P So thnx for the help. I really appreciate it :D
( 2 comments — Leave a comment )

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars