Hello Mike,
Monday, March 22, 2004, 1:45:24 PM, you wrote:
MM> Hello
MM> In CSS file all links are black:
MM> /* Part from CSS file */
MM> a:link{color:#000000; text-decoration: none;} /*unvisited link*/
MM> a:visited{color:#000000; text-decoration: none;} /*visited link*/
MM> a:hover {color:#000000; text-decoration: none;} /*mouse over link*/
MM> a:active { color:#000000}
MM> On the page also all links are black (visited or unvisited). In the PHP code
MM> I print the image and link to medium image:
MM> $thumb = "<a
MM> href=\"showPictures.php?image_id=$id&image_size=$medium\"><img
MM> src=$image_small border=1></a>";
MM> In the Mozilla the Image frame/border is black but on IE it is (blue unvisit
MM> and red visit).
MM> When I try to print just image
MM> echo "<img src=$image_small border=1>";
MM> The image frame is black on IE and Mozilla. Any ideas why the image frame is
MM> blue or red when I print
MM> $thumb = "<a
MM> href=\"showPictures.php?image_id=$id&image_size=$medium\"><img
MM> src=$image_small border=1></a>";
MM> I want to make the image fram "black";
This isn't a PHP question.
(Although, it's a simple solution - you are not setting the border
colour in your CSS a:hover attribute, you're setting the text colour.
Just add "border: 1px solid black" to it. Note this will apply to any
link now though, so perhaps creating a new "ImageLink" class with a
hover state would be more sensible.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php