$25 for someone to fix my alignment problem...

Discussion in 'Services' started by Nima, Jan 14, 2007.

  1. paidhosting

    paidhosting Peon

    Messages:
    4,822
    Likes Received:
    483
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #21
    Not really i did not change background of anything, just merged the two things together.

    Regards
     
    paidhosting, Jan 15, 2007 IP
  2. ThePirate

    ThePirate Peon

    Messages:
    40
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #22
    Is this what you're after? If it is PM me :)


    [​IMG]
     
    ThePirate, Jan 21, 2007 IP
  3. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #23
    Right now it is working great. I've fixed the alignment problem. (As far as i can see)...

    Let me know if you still see any problems
     
    Nima, Jan 21, 2007 IP
  4. ThePirate

    ThePirate Peon

    Messages:
    40
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #24
    Ok so I never saw the original problem but your left menu still doesn't stretch the background to be the same height as the main content on the index page, there is a white space below it - unlike on the screenshot I sent!

    Your Version
    [​IMG]

    My Version
    [​IMG]

    Peace :D
     
    ThePirate, Jan 21, 2007 IP
  5. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #25
    Use Javascript:

    Include this Javascript Function and change the DivIDNames in the function

    function allocateSidebarHeight() {
    sidebarHeight = document.getElementById("sidebarDivIDName").style.height;
    contentHeight = document.getElementById("contentDivIDName").style.height;
    if(contentHeight>sidebarHeight) {
    document.getElementById("sidebarDivIDName").style.height = contentHeight; } }

    and have your body execute the js function on load:
    <body onload="allocateSidebarHeight();">
     
    ccoonen, Jan 21, 2007 IP
    Nima likes this.
  6. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #26
    I think that is what I have been looking around for about two months now. I will put it to work and report how it worked.

    Thanks
    NIma
     
    Nima, Jan 21, 2007 IP
  7. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #27
    here is the final code that I got from ccoonen and it works beautifully:

    <script type="text/javascript" language="javascript">
    function allocateSidebarHeight() {
    var contentDom = document.getElementById("main");
    var sidebarDom = document.getElementById("nav-one");
    if((contentDom.offsetHeight-800) > sidebarDom.offsetHeight) {
    sidebarDom.style.height = (contentDom.offsetHeight-800)+"px"; }
    }
    
    startList = function() {
    if (document.all&&document.getElementById) {
    navRoot = document.getElementById("nav");
    for (i=0; i<navRoot.childNodes.length; i++) {
    node = navRoot.childNodes[i];
    if (node.nodeName=="LI") {
    node.onmouseover=function() { this.className+=" over"; }
    node.onmouseout=function() { this.className=this.className.replace(" over", ""); } } } }
    allocateSidebarHeight(); }
    
    window.onload=startList;
    </script>
    Code (markup):
     
    Nima, Jan 23, 2007 IP
  8. bogdan_

    bogdan_ Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #28
    Hi,

    How can I make this work for 2 side bars (left and right)?

    Thanks.
     
    bogdan_, Sep 19, 2007 IP
  9. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #29
    add the script to both sides and choose the tallest one
     
    Nima, Sep 19, 2007 IP