PDA

View Full Version : Image has border even with border="0" ?!?!


startbar
07-12-2004, 07:37 PM
<table border="0" cellpadding="0" cellspacing="0" width="230">
<tr>
<td>

<img src="spacer.gif" width="1" height="2"><BR><form action="search.asp" method="get">
<input name="search" size="30" style="background-color: #FFFFFF; font-family: verdana; font-size: 8pt; color: #006699; font-weight: none; border-left: 1px solid rgb(153,153,153); border-right: 1px solid rgb(153,153,153); border-top: 1px solid rgb(153,153,153); border-bottom: 1px solid rgb(153,153,153)" />
</td>

<td><img src="spacer.gif" width="1" height="18" border="0"><BR><input type="image" src="go_r1_c2.gif" border="0" width="24" height="22"></td></form>

<td><img name="go_r1_c3" src="go_r1_c3.gif" width="6" height="22" border="0" alt=""></td>
<td><img src="spacer.gif" width="1" height="22" border="0" alt=""></td>

</tr>
</table><BR><BR>

Why does the sumbit image (in bold) still have a border around it when border="0" is used?!?!

please help - annoying problem.

url is http://www.startbar.co.uk/coursemanager/courses.asp

thanks

IBM
07-12-2004, 08:00 PM
try giving that specific input no border. It really isn't an image object per se'. It's a form element, using an image in place of the button.

So if you give that button a class, say .nobrdr then you can remove the border. As it is, you are giving all input elements a border of color: #971C10, so that is why your go button has a border...

To fix this you can try the following.

ex:
<input type="image" class="nobrdr"/>

.nobrdr
{
border: none;
}

Should do what you want :)

kansel
07-12-2004, 08:00 PM
There is a border set on INPUT in the css:
INPUT {border: 1px solid #971C10; ...}
I see no where else where this 1px red border is used. You can either remove it from the css or on that specific INPUT set border to 0/none.
ARGH! beaten to the punch

coothead
07-12-2004, 08:03 PM
Hi there startbar,

replace border="0" with....style="border:0"

Better still give the input an id and add the rule to your existing stylesheet :D

coothead

<edit>Oh dear, last again :mad: </edit>

IBM
07-12-2004, 08:04 PM
ARGH! beaten to the punch

lol ... :D
well lookeee here... both our posts were at 11:00.. must have been seconds apart :thumbsup:

startbar
07-12-2004, 08:05 PM
thanks guys - its gone now!

cheers for that - those kinda things are so annoying!!

:)