Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

html tables <th> tag

  • 26-10-2011 10:24AM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 6,651 ✭✭✭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, Registered Users 2 Posts: 27 adrian7444


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

    much appreciated


  • Registered Users, Registered Users 2 Posts: 1,802 ✭✭✭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, Registered Users 2 Posts: 9,383 ✭✭✭S.M.B.


    I agree


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


    I don't


  • Registered Users, Registered Users 2 Posts: 1,802 ✭✭✭cormee


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

    :D


Advertisement