Forum Moderators: coopster

Message Too Old, No Replies

page links in php

         

brancook

1:59 am on Aug 24, 2007 (gmt 0)

10+ Year Member



I'm having a very unusual problem with all of my webpage links when they are in an echo statement. They seem to run the entire length of the page. Lets say I have the word "widget.jpg" and it's a link to an image. the link "widget.jpg" is in the center all by it's self of an 800 px div. I can go all the over to one side of the div and I can click the link even if I'm not directly over the link itself. Anyone know what this could be or even understand what I'm saying.

Here is the statement with the link:

echo '<p>Dirctory Listing:</p><ul>';
while ($file = readdir($dir)) {
echo "<a href='/uploads/$file'>$file</a>";
}

vincevincevince

6:14 am on Aug 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's almost certainly not PHP. It sounds like a CSS problem.

I suspect that somewhere in your CSS, a class has been attached to the 'a' element which has changed the display: parameter to 'block'.

brancook

11:49 am on Aug 24, 2007 (gmt 0)

10+ Year Member



yep that was it. I was pulling my hair out with that one.

Thanks!