Ik ben bezig met het maken van een gastenboek in php, ik stuit alleen op een waarschijnlijk makkelijk op te lossen probleempje. Als iemand een email adres opgeeft bij bericht moet er achter de naam een envelopje komen, als je op dat envelopje klikt gaat hij een mail sturen, bijv: mailto:email@hotmail.com.
dus dat plaatje <img bla bla> staat tussen <a href=""></a> tags. Het probleem is nu dat er om dat email icoontje een dikke blauw rand komt omdat het een link is. Dit dikke blauwe rand wil ik weg hebben, hoe doe ik dat? waarschijnlijk is het iets simpels in de css code, maar ik kom er niet uit.
CSS CODES TUSSEN DE <HEAD> TAGS:
CODE VAN DE TABEL WAAR HET PROBLEEM IN ZIT:
Voorbeeld van dikke blauwe rand om email icoontje:

Ik hoop dat jullie me kunnen helpen
dus dat plaatje <img bla bla> staat tussen <a href=""></a> tags. Het probleem is nu dat er om dat email icoontje een dikke blauw rand komt omdat het een link is. Dit dikke blauwe rand wil ik weg hebben, hoe doe ik dat? waarschijnlijk is het iets simpels in de css code, maar ik kom er niet uit.
CSS CODES TUSSEN DE <HEAD> TAGS:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
| <style type="text/css">
<!--
.style1 {
font-family: verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
margin-bottom: 5px;
margin-left: 13px;
border: 0;
}
.style2 {
font-family: verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
margin-top: 0px;
margin-left: 13px;
}
.style3 {
font-family: verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
color:#FFFFFF;
margin-right: 10px;
margin-top: 5px;
}
.style4 {
font-family: verdana, Arial, Helvetica, sans-serif;
font-size: 24px;
color: #FFFFFF;
}
.style5 {color: #FFFFFF}
.style7 {
color: #000000;
font-weight: bold;
}
.style8 {
font-family: verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
margin-top: 4px;
margin-left: 13px;
margin-right: 13px;
margin-bottom: 5px;
}
A:link { color: #FFFFFF; text-decoration:none;}
A:visited { color: #FFFFFF; text-decoration:none;}
A:hover { color: #FFFFFF; text-decoration:underline;}
A:active { color: #FFFFFF; text-decoration:underline;}
.style12 {
font-size: 14px;
font-weight: bold;
}
-->
</style> |
CODE VAN DE TABEL WAAR HET PROBLEEM IN ZIT:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| <td width="484" height="29" background="images/table_01.gif"> <div align="center" class="style1">
<div align="left">
<?
if($record->email == "geen_email")
{
echo "<b>$naam</b>";
}
else
{
echo "<b>$naam</b> <a href=\"mailto:$record->email\">[img]\"images/email.jpg\"></a>";
}
?>
</div>
[/img]</td>
</tr> |
Voorbeeld van dikke blauwe rand om email icoontje:

Ik hoop dat jullie me kunnen helpen