hey guys i really need to fix this when i load this page http://www.middleastpost.org/url/iwondery.com with IE its showing me a very ugly design everything is upside down but when i load it with Firefox its working perfectly in firefox it look like http://browsershots.org/png/original/90/9036f9e2a9be859c69e1844a4593686d.png but look how it is in IE http://browsershots.org/png/original/ba/ba8358b2fcc079ea56771bd9d8271342.png i really need any help thanks
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!
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 : You're damn right! Now i saw and the link to the work site , first time checked only the browser shots.
>>> (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
Hi, We can do the correction for you. Provide us with the html as well as css and we can fix the design.
<?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: <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;"> </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> </h3><div id="articles"> </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> <a href="/submit.php">SUBMIT LINK</a> <a href="/thumbnails.php">Thumbnails</a> <a href="/index.php?list=latest">LATEST LINKS</a> <a href="/index.php?list=top">TOP HITS</a> Powered by: PHP Link Directory <a href="http://www.middleastpost.com/">Middle East Post</a></div></body></html> PHP: