Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 12 of 12
  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to override CSS for a table

    I have a CSS set-up for a site but for one table I want to override the colour scheme to set a different colour for the table border.

    I am sure this is simple but could someone tell me how to do this.

    James

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    More input!

    Please supply:
    Stylesheet,
    Page source;
    either as link (preferred) or as cut-n-paste (only if it's not too big); without this info, it's practically impossible to give any sort of specific help.
    An attempt at non-specific help:
    You're probably looking for a way to identify the one table you want to change; either by assigning a class or an id (likely the better choice) to the table and using descendant selectors, you can address said table and all of its components without altering the more generic declarations.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #3
    New Coder
    Join Date
    Oct 2002
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The page is at http://www.cirrusaircraft.co.uk/prices_SRV.htm

    What I want is the change the border of the table from the grey curretnly used to being the same blue at the header.

    James

  • #4
    Regular Coder
    Join Date
    Aug 2003
    Posts
    565
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,
    try this:
    Code:
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="table25" width="100%" bordercolordark="#253E82" bordercolorlight="#253E82">
    I hope that's what you were looking for.


  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What table?

    Oh, I thought it was table26...
    Anyway, the preffered method would be to use CSS to specify the border color instead of non-standard attributes, but since this is a typical Frontpage page and there's no end to the use of deprecated and proprietary elements and attributes, why bother; go with what jeskel suggested (I still think it was table26, but hey... ).

    By the way: considering the fact that it is built using Frontpage: very nice job, as far as layout and color scheme are concerned!
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #6
    New Coder
    Join Date
    Oct 2002
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am sure this will be a frontpage problem but I try to put the new code in for the broders but everytime I go to save then it is removed???

    Anyone any idea why or how to correct - other than don't use Frontpage!!!!

    James

  • #7
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by JimboS
    Anyone any idea why or how to correct - other than don't use Frontpage!!!!
    What's wrong with that?
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #8
    Regular Coder
    Join Date
    Aug 2003
    Posts
    565
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Check the attachement. Test it before uploading anything.

    Just a detail: it has been said a thousand times on this board but you should try to use css, have a dtd, check if your code validates yadda yadda.



    'hope I helped.
    Attached Files Attached Files
    Last edited by jeskel; 03-05-2004 at 06:13 AM.

  • #9
    Regular Coder
    Join Date
    Aug 2003
    Posts
    565
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by JimboS

    Anyone any idea why or how to correct - other than don't use Frontpage!!!!
    Actually you should... Not that I am teling you what you have to do but you could learn a lot of cool and useful tricks if you tried to write your pages by yourself. Moreover everyone in here will be happy to help. just my 0.02$ tho.



    take care

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool and small

    you could learn a lot of cool and useful tricks if you tried to write your pages by yourself
    Not to mention you can cut page sizes down to, oh, about a quarter of what they are now.
    Trust me (been there, done that, seen the movie): if you get more experienced at building sites and start to demand more, you'll soon get tired of the limitations Frontpage imposes on you.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #11
    New Coder
    Join Date
    Mar 2004
    Location
    Helsingborg, Sweden
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Frontpage is useful to know if you design pages for larger organizations. Sometimes they have demands that the pages have to be editable in Frontpage, in which case you may have to do some massive compliance editing. Frontpage is only built to edit pages made with Frontpage. :b

    (But by all means learn coding without it, cause in 99% of all occasions it's better to stay away from it)

  • #12
    Regular Coder
    Join Date
    Aug 2003
    Posts
    565
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Cool and small

    Originally posted by ronaldb66
    Not to mention you can cut page sizes down to, oh, about a quarter of what they are now.
    Trust me (been there, done that, seen the movie)[...]
    I only left the 'old tag soup' behind me recently... Still learning tho... But I definitly have no regret. Definitly not.

    Last edited by jeskel; 03-05-2004 at 04:15 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •