How to completely remove border??

K

Keith Smith

How can I completely remove my border so that my two images are touching?

This code doesn't seem to work...

<table border="0">
<tr>
<td>
<img src="images/button1up.jpg">
</td>
</tr>
<tr>
<td>
<img src="images/button1up.jpg">
</td>
</tr>
</table>
 
D

Dylan Parry

Keith said:
<table border="0">
<snip/>

<table cellpadding="0" cellspacing="0">

but are you sure that a table is the correct thing to be using to
achieve your goals?
 
K

Keith Smith

but are you sure that a table is the correct thing to be using to achieve
your goals?

Dylan,

Thanks for asking. I'll go ahead and post my goal even though it is a
little off-topic for this forum.

My ultimate goal is to have a vertical nav-bar with text-links that changes
images when the mouse moves over each cell.

For example the items might be...
Home
Links
Contact Us

And then each time the user moves the mouse over an item it changes the
BACKGROUND IMAGE of each button. Also, the text must be TEXT and not a
picture, however, the image behind it must be an actual image. The reason
for this is so that the owner of this site can just cut and paste code in
order to add a new button.

I was able to achieve this using CSS and the A:HOVER method, however, the
problem is that it didn't work when using Mozilla. I need something that
will work in multiple browsers.

Any ideas on a way to accomplish this? It seems that the most "reliable"
method for most browsers is going to be a javascript, which is what I am in
the process of writing which is why I posted this thread in the first place.

Comments welcome!
 
J

Jukka K. Korpela

Dylan Parry said:
<table cellpadding="0" cellspacing="0">

And play with white space to deal with white space bugs.
but are you sure that a table is the correct thing to be using to
achieve your goals?

Probably it isn't, and <img> elements without alt attributes are
certainly wrong. Besides, button images are unproductive, so the OP
should really redesign the page instead of wasting time with some
play with borders that aren't borders.
 
T

Toby Inkster

Keith said:
I was able to achieve this using CSS and the A:HOVER method, however, the
problem is that it didn't work when using Mozilla.

I find that hard to believe. URL?
 
L

leo

Jukka said:
And play with white space to deal with white space bugs.




Probably it isn't, and <img> elements without alt attributes are
certainly wrong. Besides, button images are unproductive, so the OP
should really redesign the page instead of wasting time with some
play with borders that aren't borders.


Should we use Title tag instead of Alt?
 
J

Jukka K. Korpela

Mark Parnell said:
Why? Use both if appropriate, but the alt attribute is required.

But someone claiming that "leo" is his full name and claiming the
address "(e-mail address removed)" as his own, and thereby sending some
bogosity signals around, asked whether we shoud use Title _tag_ instead
of Alt.

Surely we should _always_ use a title tag (in fact, two - the start tag
and the end tag) in each HTML document, and never use an alt tag.

Surely you are not suggesting that "leo" was foolish enough to quote
my words "<img> elements without alt attributes are certainly wrong",
which is a provably correct statement, and then go on asking whether we
should use something _instead of_ alt attributes in <img> elements.
Surely "leo" meant Alt tags, and was just misguided.
 
M

Mark Parnell

Previously in alt.html said:
Surely you are not suggesting that "leo" was foolish enough to quote
my words "<img> elements without alt attributes are certainly wrong",
which is a provably correct statement, and then go on asking whether we
should use something _instead of_ alt attributes in <img> elements.
Surely "leo" meant Alt tags, and was just misguided.

To my shame, I read straight over the "tags" and assumed he was talking
about the attributes on the <img> element. Silly me. Leo, listen to
Jukka - he knows more than I do. :)

I stand (well, I'm sitting actually) corrected.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top