PDA

View Full Version : How do I center my banner on my homepage?


TomiGirl
Oct-28-2007, 12:23 PM
I am such a newbie to code, but I am trying my heart out! What did I do wrong? I can't seem to get my banner to center on my homepage/gallery pages? Are there any good "learning" pages or code programs you reccomend for someone new to code? I really want to get this down! :scratch

www.tomideveraux-earl.smugmug.com (http://www.tomideveraux-earl.smugmug.com)

Any help would be great! THANKYOU! :rofl ~Tomi

caroline
Oct-28-2007, 12:41 PM
I am such a newbie to code, but I am trying my heart out! What did I do wrong? I can't seem to get my banner to center on my homepage/gallery pages? Are there any good "learning" pages or code programs you reccomend for someone new to code? I really want to get this down! :scratch

www.tomideveraux-earl.smugmug.com (http://www.tomideveraux-earl.smugmug.com)

Any help would be great! THANKYOU! :rofl ~Tomi

Hi Tomi and welcome :wave
This link has LOTS of good things to help you :-http://dgrin.smugmug.com/gallery/1100284
Scroll down to "SmugMug Site Stuff" there is a tutorial for navbar, header etc among the help listed there.
then there are these :-
http://www.smugmug.com/help/
http://www.smugmug.com/help/customize-faq.mg
and the Advanced FAQ - http://www.dgrin.com/showthread.php?t=52811

And of course there are the great people here who will answer your questions :)

Hope this helps.
Caroline

TomiGirl
Oct-28-2007, 12:51 PM
:ivar THANKS Caroline! Appreciate it. I will do some more reading this Sunday. Any quick tips on centering my photos within the bio box?

Thanks again! ~Tomi

caroline
Oct-28-2007, 12:58 PM
:ivar THANKS Caroline! Appreciate it. I will do some more reading this Sunday. Any quick tips on centering my photos within the bio box?

Thanks again! ~Tomi

You need Allen for this Tomi - I'm still learning:scratch

Caroline

Allen
Oct-28-2007, 01:28 PM
I am such a newbie to code, but I am trying my heart out! What did I do wrong? I can't seem to get my banner to center on my homepage/gallery pages? Are there any good "learning" pages or code programs you reccomend for someone new to code? I really want to get this down! :scratch

www.tomideveraux-earl.smugmug.com (http://www.tomideveraux-earl.smugmug.com)

Any help would be great! THANKYOU! :rofl ~Tomi In you header html

change this

<div id="my_header">
<a href="http://tomideveraux-earl.smugmug.com">
<img src="http://tomideveraux-earl.smugmug.com/photos/213346808-O.jpg" border="0" height="150" width="750">
</a>
</div>

to this

<div id="my_header">
<a href="http://tomideveraux-earl.smugmug.com">
<img src="/img/spacer.gif" border="0" height="150" width="750">
</a>
</div>


In your CSS change this

change this

#my_banner {
display: none
width: 750px;
height: 150px;
margin: 0 auto;
background: url(http://tomideveraux-earl.smugmug.com/photos/213346808-O.jpg) no-repeat;
}

to this

#my_header {
display: block;
width: 750px;
height: 150px;
margin: 0 auto;
background: url(http://tomideveraux-earl.smugmug.com/photos/213346808-O.jpg) no-repeat;
}

TomiGirl
Oct-28-2007, 07:59 PM
Allen, THANK YOU SO MUCH!!:clap

I truly appreciate your help. I'm learning slowly but surely :D

Any quick tips on centering my photos within the bio box?

Thanks again! ~Tomi

Allen
Oct-28-2007, 08:45 PM
Allen, THANK YOU SO MUCH!!:clap

I truly appreciate your help. I'm learning slowly but surely :D

Any quick tips on centering my photos within the bio box?

Thanks again! ~Tomi
I tried a few things with CSS but couldn't get them to center.

So just add the center tag around each in the bio. :D
Example.

<center>
<img src="http://tomideveraux-earl.smugmug.com/photos/194859568-M.jpg">
</center>