No Support => General discussion (no support!) => Topic started by: sbpoole on December 06, 2003, 02:27:21 am

Title: Need a little coding help
Post by: sbpoole on December 06, 2003, 02:27:21 am
I am creating some buttons in the anycontent.php file.  I've created the buttons with the text already on them.  I created links to the buttons using the following code.  I have created 6 buttons linking them as shown in the code posted below.  I wanted to do this because I created the custom buttons within the theme I was using and I was limited to the edited theme.  I can now use any theme and display my custom buttons in anycontent without having to create them inside of each theme.

Code: [Select]
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.2.0                                            //
// ------------------------------------------------------------------------- //
// Copyright &#40;C&#41; 2002,2003 Gregory DEMAR <>                 //
// http&#58;//                                       //
// ------------------------------------------------------------------------- //
// Updated by the Coppermine Dev Team                                        //
// see /docs/credits.html for details                                        //
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify      //
// it under the terms of the GNU General Public License as published by      //
// the Free Software Foundation; either version 2 of the License, or         //
// &#40;at your option&#41; any later version.                                       //
// ------------------------------------------------------------------------- //

starttable&#40;"100%"," "&#41;;


<tr><td class="tableb" ><div align="center">
<a href="index.php" title="Home Page"><img alt="Home" src="buttons/home.gif" height="25" width="68" /></a>&nbsp;
<a href="about/index.php" title="About Me"><img alt="About me" src="buttons/about_me.gif" height="25" width="85" /></a>&nbsp;
<a href="" title="Contact me by Email"><img alt="Contact Me" src="buttons/contact_me.gif" height="25" width="100" /></a>&nbsp;
<a href="calendar/index.php" title="Order 2004 Calendars"><img alt="Calendars" src="buttons/calendars.gif" height="25" width="135" /></a>&nbsp;
<a href="collages/index.php" title="Order Collages"><img alt="Collages" src="buttons/collages.gif" height="25" width="85" /></a>&nbsp;
<a href="contact/index.php" title="Order Prints"><img alt="Order Prints" src="buttons/order-prints.gif" height="25" width="100" /></a>&nbsp;

<br><br><img alt="03cal (13K)" src="03cal.jpg" height="100" width="77" /> <img alt="04cal (13K)" src="04cal.jpg" height="100" width="77" />&nbsp;&nbsp;&nbsp;
 <img alt="Logo-small (83K)" src="Logo-small.jpg" height="217" width="260" />&nbsp;&nbsp;&nbsp; <img alt="4col (15K)" src="4col.jpg" height="100" width="77" /> <img alt="1col (15K)" src="1col.jpg" height="100" width="77" />
 <font color="#000000" size="2"><strong>Be sure to order your <a href="">
 <font color="#3333ff">2004 Calendars</a><font color="#000000" > and <a href="">
 <font color="#3333ff">Collages</a><font color="#000000">  by clicking on the buttons above<br>
 <font color="#3333ff" size="4">Leave A Comment And Rate Your Favorite Photos!<br></font>



Here is a typical button ( the way I would like it, but on the webpage a wide border gets added.  You can see the effect on my site at

A wide black border around them that changes to white upon mouseover is what I get.  My question is, how does one remove borders around an image that is also a link?  
Thanks for any help, as I tried to find help in the web without any luck.
Title: Need a little coding help
Post by: sbpoole on December 06, 2003, 05:24:26 am
Figured it out after playing around with it.

I simply added border="0" to the source image after calling the link.

<a href="index.php" title="Home Page"><img alt="Home" src="buttons/home.gif" border="0" height="25" width="68" /></a>

Thanks anyways, Sonny   :P