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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

html tables <th> tag

  • 26-10-2011 9: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,571 ✭✭✭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,700 ✭✭✭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