How to completely remove border??

Discussion in 'HTML' started by Keith Smith, Apr 24, 2005.

  1. Keith Smith

    Keith Smith Guest

    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>
     
    Keith Smith, Apr 24, 2005
    #1
    1. Advertising

  2. Keith Smith

    Dylan Parry Guest

    Keith Smith wrote:

    > <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?

    --
    Dylan Parry
    http://webpageworkshop.co.uk -- FREE Web tutorials and references
     
    Dylan Parry, Apr 24, 2005
    #2
    1. Advertising

  3. Keith Smith

    Keith Smith Guest

    > but are you sure that a table is the correct thing to be using to achieve
    > your goals?
    >
    > --
    > Dylan Parry
    > http://webpageworkshop.co.uk -- FREE Web tutorials and references


    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!
     
    Keith Smith, Apr 24, 2005
    #3
  4. Dylan Parry <> wrote:

    > <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.

    --
    Yucca, http://www.cs.tut.fi/~jkorpela/
    Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
     
    Jukka K. Korpela, Apr 24, 2005
    #4
  5. Keith Smith

    Toby Inkster Guest

    Keith Smith wrote:

    > 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?

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me ~ http://tobyinkster.co.uk/contact
     
    Toby Inkster, Apr 25, 2005
    #5
  6. Keith Smith

    Romuald Guest

    Keith Smith wrote:
    > 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>
    >
    >

    *hidden*
    Same as 'none', except in terms of border conflict resolution for
    table elements.

    http://www.w3.org/TR/CSS21/box.html#border-style-properties
     
    Romuald, Apr 25, 2005
    #6
  7. Keith Smith

    leo Guest

    Jukka K. Korpela wrote:
    > Dylan Parry <> wrote:
    >
    >
    >><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.
    >



    Should we use Title tag instead of Alt?
     
    leo, Apr 26, 2005
    #7
  8. Keith Smith

    Mark Parnell Guest

    Mark Parnell, Apr 26, 2005
    #8
  9. Mark Parnell <> wrote:

    >> Should we use Title tag instead of Alt?

    >
    > Why? Use both if appropriate, but the alt attribute is required.


    But someone claiming that "leo" is his full name and claiming the
    address "" 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.

    --
    Yucca, http://www.cs.tut.fi/~jkorpela/
    Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
     
    Jukka K. Korpela, Apr 26, 2005
    #9
  10. Keith Smith

    Mark Parnell Guest

    Previously in alt.html, "Jukka K. Korpela" <> 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.

    --
    Mark Parnell
    http://www.clarkecomputers.com.au
    alt.html FAQ :: http://html-faq.com/
     
    Mark Parnell, Apr 27, 2005
    #10
  11. Keith Smith

    dantrim

    Joined:
    Sep 22, 2009
    Messages:
    1
    Add to your <table

    RULES=NONE FRAME=BOX
     
    dantrim, Sep 22, 2009
    #11
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tshad
    Replies:
    0
    Views:
    2,267
    tshad
    Jan 31, 2005
  2. phl
    Replies:
    1
    Views:
    4,357
    Martin Jay
    Jun 8, 2006
  3. Coder
    Replies:
    1
    Views:
    705
    Cowboy \(Gregory A. Beamer\)
    Jun 24, 2006
  4. =?UTF-8?B?TWFydGluIFDDtnBwaW5n?=

    border-color: #003366; border-width: 2px;

    =?UTF-8?B?TWFydGluIFDDtnBwaW5n?=, Jul 17, 2006, in forum: HTML
    Replies:
    64
    Views:
    3,541
    Adrienne Boswell
    Jul 30, 2006
  5. pkirk25
    Replies:
    6
    Views:
    446
    Phlip
    Oct 8, 2006
Loading...

Share This Page