Jump to content

[SOLVED] blue box around my image???


Recommended Posts

I got the following code displaying an image:

 

    $result = mysql_query($query) or die(mysql_error());
    $record = mysql_fetch_assoc($result);

//	if ($record['locked'] < 1 || ($session->isAdmin()))
												{

print "<a href= 'reply.php' ><img src='images/reply-btn.gif' width='100' height='32'></a>";
}

if($session->isAdmin())
{

 

and for some reason a blue box appears around my gif (as can be seen at http://schoolworkanswers.com/message.php?id=1) anyone know why P.S how do i turn on error reporting in php?

 

 

Link to comment
https://forums.phpfreaks.com/topic/144684-solved-blue-box-around-my-image/
Share on other sites

ARH! here is my .css:

 

body {
a:link, a:visited, a:active { text-decoration: none}
font-family:Verdana, Sans-serif;
color; #000000;
font-size: 12px
}
input,textarea, select,{
color : #000000;
font: normal 12px;
border-collapse: collapse; border: 1px solid #000000;
}
img{
border:0;
}

.maintable {border: 0px ; width: 100%; padding: 0px; background-color: #FFFFFF} /*main table for forum*/
.regrow {font-family: Verdana,Sans-serif; color: #000000; font-weight: bold; background-color: #FFFFFF;font-size: 12px;} /*registration row, mainly here for symetry*/
.headline {font-family: Verdana,Sans-serif;font-weight: bold;color: #FFFFFF;background-color: #003366;font-size: 11px;} /*headline row, the first row that says forum name, topics, posts and such*/
.forumrow {font-family: Verdana,Sans-serif; color: #000000;background-color: #F2F2F2;font-size: 12px;} /*color of the forum rows*/
.mainrow a:link, a:visited,  a:active { text-decoration: none;}
.mainrow {font-family: Verdana,Sans-serif; color: #000000;background-color: #F2F2F2;font-size: 12px; a:link, a:visited, a:active { text-decoration: none}} /*color of the forum rows*/
.maintables{background-color: #FFFFFF; width: 85%; padding: 0px; border: 3px solid; cellspacing: no} /*main table for forum*/
--->

 

and i've linked the message.php file to it:

 

print "<link rel='stylesheet' href='style.css' type='text/css'>";

 

but i still got the box???

Or you can define the border attribute inside the <img tag.

 

print "<a href= 'reply.php' ><img border='0' src='images/reply-btn.gif' width='100' height='32'></a>";

 

Or try changing border of 0 to be:

 

img{
    border:none;
}

 

And see what that produces, this will effect every image on your site, however.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.