garydt Posted April 22, 2007 Share Posted April 22, 2007 I've made a page where it gets photos from a database and puts them into a seperate cell of a html table. Each photo has a link to another webpage. When i test the code each photo has a blue box/border around it. After i've clicked a photo the box/border turns brown as if i've set the a:link and a:visited to those colors but i haven't. Even when i set these to black the box/border around each photo still remains blue and, after i've clicked it, brown. How do i get rid of these boxs/borders? <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <!-- .style1 {color: #FFFFFF} .style3 {color: #000099} body { background-color: #000000; } ul, li { color: #ffffff; } #Layer1 { position:absolute; left:7px; top:165px; width:180px; height:328px; z-index:1; } body,td,th { color: #FFFFFF; } --> </style> <td valign="top" ><a href="userpage.php?name=<?php echo $uname; ?>"><img src="<?php print $row_Recordset2['imageName'] ?>"></a></td> Link to comment https://forums.phpfreaks.com/topic/48135-solved-unwanted-color-php-links/ Share on other sites More sharing options...
AndyB Posted April 22, 2007 Share Posted April 22, 2007 extend your style file to include: img { border:none; } Link to comment https://forums.phpfreaks.com/topic/48135-solved-unwanted-color-php-links/#findComment-235224 Share on other sites More sharing options...
fanfavorite Posted April 22, 2007 Share Posted April 22, 2007 yep or add it into your img src <img src="<?php print $row_Recordset2['imageName'] ?>" border="0"> Link to comment https://forums.phpfreaks.com/topic/48135-solved-unwanted-color-php-links/#findComment-235240 Share on other sites More sharing options...
jchemie Posted April 22, 2007 Share Posted April 22, 2007 again, if you want it CSS compliant... i.e. not use border... declare a class for it... like <img class='boderless' src='...' /> and in the style define .borderless { border: none;} Link to comment https://forums.phpfreaks.com/topic/48135-solved-unwanted-color-php-links/#findComment-235247 Share on other sites More sharing options...
garydt Posted April 22, 2007 Author Share Posted April 22, 2007 Thanks alot Link to comment https://forums.phpfreaks.com/topic/48135-solved-unwanted-color-php-links/#findComment-235254 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.