Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    New Coder
    Join Date
    Feb 2008
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrange a header image

    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?

  • #2
    New Coder
    Join Date
    Feb 2008
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    We need a link to the page before anyone can help you

  • #3
    New Coder
    Join Date
    Feb 2008
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.errvoid.com/ is the site

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

  • #4
    New Coder
    Join Date
    Feb 2008
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Use this:
    Code:
    <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

  • #5
    New Coder
    Join Date
    Feb 2008
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #6
    New Coder
    Join Date
    Feb 2008
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, what about this:
    Code:
    <div align="right" style="margin-top: x&#37;; overflow: visible;">$header_advertisement</div>
    and then try the negative value

  • #7
    New Coder
    Join Date
    Feb 2008
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    nope still doesn't help it :| thanks for tryin to help though. appreciate it all

  • #8
    New Coder
    Join Date
    Feb 2008
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm sure someone else can, but that's all I have

  • #9
    New Coder
    Join Date
    Feb 2008
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think you have to do with <height> or <width> ??

  • #10
    New Coder
    Join Date
    Feb 2008
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can anyone help me ? :OO

  • #11
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    You might float both of them and place them in a single <td>. Something like this might work:
    Code:
    <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

  • #12
    New Coder
    Join Date
    Feb 2008
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yea it works thanks alot man!!!

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

  • #13
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    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

  • #14
    New Coder
    Join Date
    Feb 2008
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    so <div style="float:right;" "right-margin:30px;">$header_advertisement</div> ??

  • #15
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    You almost have hit it.
    It should be:
    Code:
    <div style="float:right; right-margin:30px;">$header_advertisement</div>
    See if it helps


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •