Localhost rendering different than live version (same browser)

Discussion in 'HTML & Website Design' started by jami0821, Jul 7, 2010.

  1. #1
    I'm developing a Wordpress theme on my localhost and have started to test it on a live server. Both are viewed with FireFox. I'm a little shocked to find an image aligning different from my localhost to the live URL. I have never come across a problem like this before.

    Attached is the image as it appears on my localhost and how it appears on the live server.

    Code for that image that's shifting on the live version:

    
    <div id="banner">
          <div id="banner_arrow"></div>
    </div> <!-- end #banner -->
    
    Code (markup):

    
    #banner{background:url(img/banner_bg.png) repeat x;
    width:955px;
    height:73px;
    position:relative;
    top:90px;
    left:-21px;}
    
    #banner_arrow{background:url(img/banner_arrow.png);
    width:64px;
    height:120px;
    float:right;
    position:relative;
    left:64px;
    margin:-58px 0 0;}
    
    Code (markup):
    Has anyone else experienced this before??
    localhost.JPG
    live.JPG
     
    jami0821, Jul 7, 2010 IP
  2. khweb

    khweb Greenhorn

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    I would guess it has something to do with the php. I have seen a similar problem before but could not find a good answer so I will be watching this thread too.

    For someone to really help though your going to give more detail about what local server you are using, what the host is using, what versions of stuff they are using and so on.
     
    khweb, Jul 7, 2010 IP
  3. phpmatt

    phpmatt Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Is the CSS definitely the same both local and online, you haven't changed anything and then not uploaded?

    PHP version shouldn't make any difference, the browser doesn't render PHP just the HTML/CSS output
     
    phpmatt, Jul 8, 2010 IP