help me broken design in IE

Discussion in 'HTML & Website Design' started by samehzone, Oct 25, 2008.

  1. #1
    If someone posts a solution, use the "Best Answer" link in their post to pick it as the best answer.
    samehzone, Oct 25, 2008 IP
  2. adzeds

    adzeds Well-Known Member

    Messages:
    1,209
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    100
    #2
    I would guess that you have either not closed a div tag in the right place, or you have the wrong widths on your divs!
     
    adzeds, Oct 25, 2008 Set Best Answer IP
  3. theivo

    theivo Well-Known Member

    Messages:
    238
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #3
    Because of the size. Try to play with this , maybe few pixels will help.
     
    theivo, Oct 25, 2008 Set Best Answer IP
  4. Sean@WMS

    Sean@WMS Peon

    Messages:
    134
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I don't want to sound like a jerk, samehzone, but really this has to start with a look at your markup on this page, and honestly I can't say I've ever seen a bigger mess in a decade of web design. It's a complete mess! It's a wonder it displays at all well in FF (as it's usually IE that is more forgiving).

    Let's start with the most basic HTML lesson: the fundamental markup tags of a page:
    
    <html>
    <head>
    <title>Title</title>
    <!-- meta tags, JS, CSS goes here -->
    </head>
    <body>
    <!-- content goes here -->
    </body>
    </html>
    
    Code (markup):
    Now have a look at your markup.

    Your head tag is about half way down your page.

    You've got all kinds of JS in your body.

    You've got misplaced endings tags.

    It's really a mess. At least get all of this in order first. Then I'll help you with your display issue.
     
    Sean@WMS, Oct 25, 2008 Set Best Answer IP
  5. theivo

    theivo Well-Known Member

    Messages:
    238
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #5
    Sean@WMS : You're damn right!
    Now i saw and the link to the work site , first time checked only the browser shots.
     
    theivo, Oct 26, 2008 Set Best Answer IP
  6. maestria

    maestria Well-Known Member

    Messages:
    705
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #6
    >>> (as it's usually IE that is more forgiving).

    I dont think so. Firefox would automatically correct and fix most of the errors and design flaws. Its IE thats the villain :D
     
    maestria, Oct 27, 2008 Set Best Answer IP
  7. maestria

    maestria Well-Known Member

    Messages:
    705
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #7
    Hi,

    We can do the correction for you. Provide us with the html as well as css and we can fix the design.
     
    maestria, Oct 28, 2008 Set Best Answer IP
  8. kp_mastermind

    kp_mastermind Active Member

    Messages:
    885
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    58
    #8
    Fix margin in CSS,thats the error.
     
  9. samehzone

    samehzone Guest

    Best Answers:
    0
    #9
    <?php
    include_once("class.googlepr.php");
    include_once("config.php");
    $url = $_GET["url"];
    $url = str_replace('www.', '', $url); /* removes the 'www.' */
    $url = str_replace('http://', '', $url); 
    $path = explode ("/", $url);
    $url1 = $path[0];
    $meta = get_meta_tags("http://$url1");
    $title = ($meta["title"]);
    $description = ($meta["description"]);
    $keywords= ($meta["keywords"]);
    $fcontents = implode ('', file ("http://$url1"));
    if (!implode ('', file ("http://$url1")))
      { 
      echo'<title>Not Found</title><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"><h1>nothing here</h1>';
      die('Could not connect: ' . mysql_error());
      }
    $fcontents = stristr($fcontents, '<title>');
    $rest = substr($fcontents, 7);
    $extra = stristr($fcontents, '</title>');
    $titlelen = strlen($rest) - strlen($extra);
    $gettitle = trim(substr($rest, 0, $titlelen));
    $gpr = new GooglePR();
    $gpr->userAgent = $_SERVER["HTTP_USER_AGENT"];
    //$gpr->cacheDir = dirname(__FILE__)."/prcache";
    //$gpr->maxCacheAge = 86400;
    //$gpr->useCache = false;
    //$gpr->debug = true;
    $pagerank =$gpr->GetPR("$url")
    //mysql_query("INSERT IGNORE INTO site (id, url, meta) 
    //VALUES ('', '$url', '')");
    ?>
    <?
    $sql = 'SELECT * FROM `site` oRDER BY RAND() LIMIT 40 ';
    $result = mysql_query($sql)
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <body>
    <div class="header">
    <div class="center">
    
    <div class="headerLogo">
    <script type="text/javascript">
    google_ad_client = "pub-1672240174436480";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as";
    google_ad_type = "text_image";
    google_color_border = "FFFFFF";
    google_color_bg = "EAEFF2";
    google_color_link = "FFFFFF";
    google_color_text = "000000";
    google_color_url = "008000";
    </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
    </div>
    <script type="text/javascript">
    function nospaces(t){
    if(t.value.match(/\s/g)){
    alert('Sorry, you are not allowed to enter any spaces');
    t.value=t.value.replace(/\s/g,'');
    }
    }
    </script>
    <form class="headerSearch" action="http://www.middleastpost.org/insert.php" method="post">
    site url:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <input type="text" name="url" size="35" value="http://www." onkeyup="nospaces(this)" />
    <input type="submit" />
    </form></div>
    </div>
    </form>
    </div>
    </div>
    <div class="hMenuContainer"><div class="center"><div class="hMenu"><script type="text/javascript">
    google_ad_client = "pub-1672240174436480";
    google_ad_width = 728;
    google_ad_height = 15;
    google_ad_format = "728x15_0ads_al";
    google_color_border = "6699CC";
    google_color_bg = "0E4274";
    google_color_link = "003366";
    google_color_text = "AECCEB";
    google_color_url = "AECCEB";
      </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div></div></div><div class="path"></div><div class="center1"><div class="leftContainer">
    <div class="box">
    <div class="boxTopLeft"></div>
    
    <div class="boxTopCenter">Random Sites</div>
    <div class="boxTopRight"></div>
    <div class="boxMiddle">
    <ul class="boxPopCats"><?
        while ($row = mysql_fetch_assoc($result))
        {
        $url=$row['url'];
    ?>
    <li><a href ="/url/<?=$row['url']?>"><?=$row['url']?></a></il><?
    }?><?mysql_free_result($result);?>
    </ul>
    </div>
    <div class="boxBottom"></div>
    </div>
    </div>
    </div><div class="centerContainer"><div class="centerContainerT"></div><div class="centerContainerM"><div><strong><em>
    <div style="page-break-after: always;"><span style="display: none;">&nbsp;</span></div>
    <br />
    <head><meta http-equiv="Content-Language" content="ar-sa"><link rel="stylesheet" type="text/css" href="http://www.middleastpost.org/templates/Professional/style/main.css" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><META NAME="Description" CONTENT="information meta tags screenshot alexia page rank & <?=$gettitle?>  <?=$url1?>"></head>
    <title><?=$gettitle?></title>
    <h1 align="">
    <a href="http://<?=$url1?>" style="text-decoration: none">
    <?=$gettitle?></a></h1>
    <p dir="ltr"><b><font size="4">Title : <?=$gettitle?></font></b></p>
    <p dir="ltr"><b><font size="4">Meta description : <?=$description?></font></b></p>
    <p dir="ltr"><b><font size="4">Url : <?=$url1?></font></b></p>
    <p dir="ltr"><b><font size="4">Page Rank : <?=$pagerank?>/10</font></b></p>
    <p dir="ltr"><b><font size="4">FavIcon : <img border="0" src="http://<?=$url1?>/favicon.ico" alt="Favicon for <?=$url1?>"></font></b></p>
    <p dir="ltr"><b><font size="4">Thumbnail & Alexa Information : 
    <img border="2" src="http://www.mythumbshot.com/get?url=<?=$url1?>&size=m" alt="screenshot for <?=$url1?>"  border="2" hspace="4" vspace="2"></font></b><img border="2" src="http://traffic.alexa.com/graph?w=379&h=216&r=6m&z=&y=r&u=http://<?=$url1?>&u=" alt="screenshot for <?=$url1?>" border="2" hspace="4" vspace="2"></font></b></p>
    <?php
    include_once("config.php");
    if(!$url) {
    echo "Error, Fill the filed";
    exit;
    }  
    $url = $_GET["url"];
    $url = htmlspecialchars($_GET['url']);
    $url = htmlspecialchars($_GET['url']);
    //if (!preg_match("/^(https?:\/\/+[\w\-]+\.[\w\-]+)/i",$url))
    //{
     //   die("URL address not valid");
    //}
    $url = str_replace('www.', '', $url); 
    $url = str_replace('http://', '', $url); 
    $path = explode ("/", $url);
    $domainname = $path[0];
    
    $sql="INSERT IGNORE INTO site (url)
    VALUES
    ('$domainname')";
    
    if (!mysql_query($sql))
      {
      die('Error: ' . mysql_error());
      }
    echo "";
    ?></em></strong></div><br /><br /><h3>&nbsp;</h3><div id="articles">&nbsp;</div></div><div class="centerContainerB"></div></div><div class="rightContainer">
    
    <div class="box">
    <div class="boxTopLeft"></div>
    <div class="boxTopCenter">ARTICLES</div>
    <div class="boxTopRight"></div>
    <div class="boxMiddle">
    <div class="boxSponsored">
    <script type="text/javascript">
    google_ad_client = "pub-1672240174436480";
    google_ad_width = 160;
    google_ad_height = 600;
    google_ad_format = "160x600_as";
    google_ad_type = "text_image";
    google_color_border = "FFFFFF";
    google_color_bg = "EAEFF2";
    google_color_link = "FFFFFF";
    google_color_text = "000000";
    google_color_url = "008000";
    </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
    </div>
    <div class="boxSponsoredLast">
    
    <br/>
    
    </div>
    <div class="boxBottom"></div>
    </div>
    </div><div style="clear: both; height: 30px;"></div></div><div class="footer"><a href="/">HOME</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/submit.php">SUBMIT LINK</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/thumbnails.php">Thumbnails</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/index.php?list=latest">LATEST LINKS</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/index.php?list=top">TOP HITS</a>&nbsp;&nbsp;&nbsp;&nbsp;Powered by: PHP Link Directory &nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.middleastpost.com/">Middle East Post</a></div></body></html>
    PHP:
     
    samehzone, Oct 29, 2008 Set Best Answer IP