1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

DIV Alignment - HELP!

Discussion in 'HTML & Website Design' started by bfblackjack, Mar 18, 2010.

  1. #1
    I have been trying to center/align this div, but it never seems to align properly. Whether it be that It is stuck to the bottom of another div and I cannot set an padding/margin space between the 2 or it's not aligned correctly horizontally, I never can get it right.

    You can see what I mean here: http://xmdevs.com/oscmss/ or here http://xmdevs.com/oscmss/try2/index2.html

    The first link is screwed up and the 2nd link I tryed using iframes to solve it but it still is screwed up. On try2 it is aligned on my screen but on smaller resolutions or possible bigger resolutions it is unaligned again...

    Anyone have any suggestions?

    Thanks
     
    bfblackjack, Mar 18, 2010 IP
  2. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #2
    first one, in style2.css on line 285 change right: 215px ; to right: 0;
    fixes the slider going to the right for me at least.
     
    shallowink, Mar 18, 2010 IP
  3. ampg-it

    ampg-it Peon

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    shallowink is right, adjusting right alignment should solve this problem.
     
    ampg-it, Mar 19, 2010 IP
  4. bfblackjack

    bfblackjack Peon

    Messages:
    134
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Interesting, in google chrome and IE it looks fine now that right is set to 0 but in Firefox it is still unaligned, to far to the right. Very interesting :\ Anyone have a fix for it for firefox? lol
     
    bfblackjack, Mar 19, 2010 IP
  5. Bagi Zoltán

    Bagi Zoltán Well-Known Member

    Messages:
    364
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #5
    If nothing else helps I suggest to wrap the irame with </center> tags.
    Thanks
    Zoli
     
    Bagi Zoltán, Mar 19, 2010 IP
  6. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #6
    you know the better advice would be to try applying margin: 0 auto; to the iframe first.
    as for the other, how do I think I found out the right: 215px ; was applied? in FireFox. so either you're on some insane resolution or a newer/older release, thus no real help coming.
     
    shallowink, Mar 19, 2010 IP