Forum Moderators: coopster
Lets say I have index.php and another page (sidenav.html)
i want to have the same side buttons on all pages but I dont want to go through each page changing a link, so I placed the content on the sidenav.html page and used the "readfile "sidenav.html" tag within the index.php file.
At this point everything works great, here is where the problems start.
When I go back to sidenav.html and place a link on an image, then preview index.php in a browser, I see a border around that image.
Should I be using another tag for doing this, should sidenav.html be sidevan.php? Any advice at all would be great.
Thanks
include "sidenav.html"; instead of readfile, as a quick suggestion ... less strain on your computer. Look to the .html page for the answer to your border question. It is in that code that you need to disable the border:
<img src="link.gif" border=0 ... By default, images that are links will have a border around them.
I check sidenav.html but did not see a border tag at all. Here is a ta taken from sidenav.html... notice no image border.
<td height="21" valign="top"><a href="http://www.siteurl.com" target="_blank"><img src="images/link1.gif" width="194" height="21" /></a></td>
I am using Dreamweaver 8.01
<img src="images/link1.gif" [b]border=0[/b] width="194" height="21" /> Although it is up to the browser, IFAIK all browsers will put a border around a linked image automatically unless you instruct them not to by adding the 'border' attribute as noted or some CSS equivalent. The value of the 'border' attribute refers to how many pixels wide the border should be. In your case, "no pixels wide, please".