Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

html tables <th> tag

Options
  • 26-10-2011 10:24am
    #1
    Registered Users Posts: 27


    Hi all,
    on my webpage i have 2 tables with an exteral style sheet to govern the
    table headings which i want underlined (among other things) in one and not underlined in the other. the style sheet works put i cant manage to remove the underline on the second table. i have tried creating a <h2> tag and putting it in after the <th> but this doesn't work either. i have done underline:none and this doesn't work....

    i am new to this stuff so any help would be wonderful

    thanks in advance
    adrian


Comments

  • Registered Users Posts: 6,491 ✭✭✭daymobrew


    Can you add a class to the second table and create the appropriate styles?

    Something like this untested markup and style:
    [html]
    <table class="secondtable">
    <tr><th>Header</th></tr>
    <tr><td>Data</td></tr>
    </table>

    <style type="text/css">
    .secondtable th {
    text-decoration: none;
    }
    <style>
    [/html]


  • Registered Users Posts: 27 adrian7444


    just tried it and it worked perfectly, thanks very much i just learned something...........:)

    much appreciated


  • Registered Users Posts: 1,801 ✭✭✭cormee


    From a usability pov you should never underline anything that isn't a link.


  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    cormee wrote: »
    From a usability pov you should never underline anything that isn't a link.

    QFT

    An underline = a link

    That's the standard and breaking it means that lots of people will get pissed off clicking on something that they - rightly - expect to do something when it does nothing.


  • Registered Users Posts: 9,352 ✭✭✭S.M.B.


    I agree


  • Advertisement
  • Closed Accounts Posts: 9,700 ✭✭✭tricky D


    I don't


  • Registered Users Posts: 1,801 ✭✭✭cormee


    <marquee behavior="alternate">And don't use <h> tags in a <th>, they're section headings, not table headings</marquee>

    :D


Advertisement