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.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cross-Browser Issues, Huge Problem

    Right. Firefox is being strange.

    Here's two screenshots of the exact same website. Google Chrome, Safari, Opera, Safari for iPhone, Internet Explorer, the list goes on, all display the source code fine. But for some reason when it gets to Firefox, it won't stand it.

    Chrome: http://bb.xieke.com/files/screenshotchrome.png
    Firefox: http://bb.xieke.com/files/screenshotfirefox.png

    I've fixed the sidebar issues, but the Breadcrumbs bar is still broken. I've tried absolutely everything. This is the code for the bar & '?' logo:

    And the corresponding section of code:
    Code:
    <center> 
    <div style="width: 920px; min-width: 970px; height: 19px;" align="center"> 
    <div style="float: right; padding-top: 4px;"> 
    <a href="/help/"> 
    <img src="http://127.0.0.1/help.png" border="0" /> 
    </a> 
    </div><div align="left" style="vertical-align: top;"> 
    <table cellspacing='0' cellpadding='0'><tr><td style="padding-top: 9px; margin-left: 9px;" valign="bottom"> 
    <?php 
    function CPbreadcrumbs() { 
        $CPtheFullUrl = $_SERVER["REQUEST_URI"]; 
        $CPurlArray=explode("/",$CPtheFullUrl); 
        echo '<a href="/">Home</a>'; 
        while (list($CPj,$CPtext) = each($CPurlArray)) { 
            $CPdir=''; 
            if ($CPj > 1) { 
                $CPi=1; 
                while ($CPi < $CPj) { 
                    $CPdir .= '/' . $CPurlArray[$CPi]; 
                    $CPtext = ucwords($CPurlArray[$CPi]); 
                    $CPi++; 
                } 
                if($CPj < count($CPurlArray)-1) echo '</td><td class="warrior" style="background-image: url(\'http://127.0.0.1/arrow.png\')" width="29px" height="41px"></td><td>&nbsp;&nbsp;<a href="'.$CPdir.'">' . str_replace(" ", " ", $CPtext) . '</a>&nbsp;&nbsp;'; 
            } 
        } 
        echo '</td><td class="warrior" width="29px" height="41px"></td><td>&nbsp;'; echo wp_title('');} 
    CPbreadcrumbs(); 
    ?></td></tr></table></div>
    CSS:
    Code:
    .warrior{
    background-image: url(\'http://127.0.0.1/arrow.png\')
    background-repeat: none;
    background-position: top center;
    }
    Please, I need this sorted. I promised TekCube.net readers it would be pushed out on Christmas Eve, I can't let them down.

    Thanks so much in advance, Boonzeet.
    Last edited by Boon; 12-24-2009 at 02:10 PM. Reason: Resolved.

  • #2
    Regular Coder
    Join Date
    Jun 2008
    Posts
    173
    Thanks
    2
    Thanked 9 Times in 9 Posts
    in the starting of code you posted

    the <center> tag is broken. may be thats the issue.

    also now <center> tag is deprecated. dont use it

    vineet

  • #3
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I wish it was that simple, I'd actually copied that from the document incorrectly. The tag is operational in the document.

  • #4
    Regular Coder
    Join Date
    Jun 2008
    Posts
    173
    Thanks
    2
    Thanked 9 Times in 9 Posts
    can you post a online page link.

    dont post your php code.

    post your html code that php outputs.

    online page link would be better.

    vineet

  • #5
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It appears to be a problem with tables. If there's a wraparound, that'd be brilliant.

    Page: http://pixel.tekcube.net/

    EDIT: Found the bugger, redudant old code in the style.css generalising tr and td under a class that reset padding. All fixed. Thanks anyway.
    Last edited by Boon; 12-24-2009 at 02:10 PM.


  •  

    Posting Permissions

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