PDA

View Full Version : The amazing sliding banner


Halliday
Mar-31-2007, 07:32 PM
So last week I wasn't liking the auto placement of my banner. I added some code and slid it to the middle of my pages.

Everything was fine until Fri, I was at a client's shop and she loaded up my webpage. There my banner was, slid over to the right.

Weird.

So I go to check it today and it's slid over, but not so much, on my computer too.

What's going on? Is there some code to center the banner no matter what browser it's viewed on. I was using Firefox for the corrections but I didn't notice what the client was using.

Barb
Mar-31-2007, 07:41 PM
So last week I wasn't liking the auto placement of my banner. I added some code and slid it to the middle of my pages.

Everything was fine until Fri, I was at a client's shop and she loaded up my webpage. There my banner was, slid over to the right.

Weird.

So I go to check it today and it's slid over, but not so much, on my computer too.

What's going on? Is there some code to center the banner no matter what browser it's viewed on. I was using Firefox for the corrections but I didn't notice what the client was using.
Hi :)

Add the red to your banner code in your CSS and remove the green:

#my_banner {
width: 750px;
height: 150px;
margin-left: 320px;
margin-bottom: 0 auto;
background: url(http://lanceshuey.smugmug.com/photos/131227147-O.jpg) no-repeat;
margin: 0 auto;
}

That should make that darn banner stay in the center :)

Halliday
Mar-31-2007, 07:57 PM
Looks better. Thanks. I did look at the pdf file on that stuff but I had some trouble making sense of it.