ArizonaJohn Posted June 29, 2009 Share Posted June 29, 2009 Hello, In the code below, $row['site'] is an URL. In Chrome and IE8, it displays fine. In Firefox 3.0.11, it only displays everything up until the second forward slash. So "en.wikipedia.org/wiki/Miami" is only displayed as "en.wikipedia.org/wiki". I believe this is because of the CSS that I am using, but I can't quite figure out how to fix it. Any ideas? Thanks in advance, John Here is the code: print "<table class=\"navbar\">\n"; print "<tr>"; print "<td class='sitename'>".'<a href="http://'.$row['site'].'" class="links2">'.$row['site'].'</a>'."</td>"; Here is the CSS: table.navbar { margin-left:44px; margin-top:0px; text-align: left; font-family: Arial, Helvetica, sans-serif ; font-weight: normal; font-size: 12px; color: #000000; width: 700px; background-color: #A7E6FE; border: 1px #FFFFFF; border-collapse: collapse; border-spacing: 4px; padding: 4px; text-decoration: none; } table.navbar td { border: 2px solid #fff; text-align: left; height: 16px; } table.navbar td a{ padding: 3px; display: block; } .sitename { width: 535px; overflow:hidden; } a.links2:link { color: #000000; text-decoration: none; text-align:left; margin-top:6px; margin-bottom:2px; margin-left:2px; padding:0px; font-family:Arial, Helvetica, sans-serif; font-size: 12px; width: 10px; height: 12px; vertical-align:middle; } Quote Link to comment Share on other sites More sharing options...
Hybride Posted June 30, 2009 Share Posted June 30, 2009 Try removing .sitename { width: 535px; overflow:hidden; } the overflow:hidden. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.