View Full Version : Arrange a header image

02-24-2008, 06:16 PM
I have a forum and I want to place a banner image in the right of the header. I am use an Ads Management script which places the image where ever I place "$advertisement". I went to the header file and placed it in. It works but isn't place as I wanted.

To the left of my header it has my forum's image logo. I want the ad imagine to be aligned with the imagine logo to the right. How would I do this?

02-24-2008, 06:19 PM
We need a link to the page before anyone can help you :thumbsup:

02-24-2008, 07:02 PM
http://www.errvoid.com/ is the site

I am currently using <div align="right">$header_advertisement</div>

02-24-2008, 08:34 PM
Use this:

<div align="right" style="margin-top: x&#37;;">$header_advertisement</div>

Where x is the percent needed to align it...you'll have to play with it a bit, but should work ;)

02-24-2008, 08:42 PM
doesn't seem to work for me. i tried 1% and it still isn't aligned as i wanted. I tried higher numbers and it only made it worser (higher) than it already is. I also tried -1% and it doesn't do anything but removes the advertisement image.

02-24-2008, 10:21 PM
Ok, what about this:

<div align="right" style="margin-top: x&#37;; overflow: visible;">$header_advertisement</div>

and then try the negative value

02-24-2008, 10:27 PM
nope still doesn't help it :| thanks for tryin to help though. appreciate it all

02-24-2008, 10:30 PM
I'm sure someone else can, but that's all I have :)

02-24-2008, 11:00 PM
I think you have to do with <height> or <width> ??

02-25-2008, 07:19 AM
can anyone help me ? :OO

02-25-2008, 07:31 AM
You might float both of them and place them in a single <td>. Something like this might work:

<div style="float:left;">
<a href="http://www.errvoid.com/"><img src="gfx_v3-BlueOrange/misc/_gfx-logo.gif" border="0" alt="ErrVoid!" /></a>

Then on your div that holds $header_advertisement, adding float:right; might place them horizontally aligned.

See if it helps :D

02-25-2008, 07:09 PM
yea it works thanks alot man!!!

is it possible to move the right banner to the left JUST A LITTLE? :O

02-26-2008, 01:14 AM
You're welcome..you could just adjust the right margin...just add right-margin:30px; on the div that contains your $header_advertisement.

See if it helps :D

02-27-2008, 05:25 AM
so <div style="float:right;" "right-margin:30px;">$header_advertisement</div> ??

02-27-2008, 05:33 AM
You almost have hit it.
It should be:

<div style="float:right; right-margin:30px;">$header_advertisement</div>

See if it helps :D

02-27-2008, 05:46 AM
nope doesn't do anything.. i think. Is it suppose to move up and down or left and right? I want it to move to the left.

02-27-2008, 06:27 AM
My apologies, I haven't corrected it yet, it should be margin-right instead of right-margin. Change your code to:

<div style="float:right; margin-right:30px;">$header_advertisement</div>

See if it works :D

02-27-2008, 04:25 PM
yea it works now. Thanks man your the best!

02-28-2008, 01:03 AM
You're welcome. Glad I could help :D