...

View Full Version : Arrange a header image



jayvee
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?

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

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

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

F15pilotX
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 ;)

jayvee
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.

F15pilotX
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

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

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

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

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

rangana
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>
</div>


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

See if it helps :D

jayvee
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

rangana
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

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

rangana
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

jayvee
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.

rangana
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

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum