locked
O365 style sheet code to make table borders transparent RRS feed

  • Question

  • Does anyone know what code to add the the Style Sheet to make web page table borders transparent. I've tried lots of combinations of table {  } and border {   } command to no avail. My website uses lots of background images in zones and text tables to control copy positions within zones. Having visible borders make my pages look amateurish.
    Monday, March 5, 2012 2:55 AM

Answers

  •  

    Hi pdihal51,

    Thank you for your posting.


    You can try to set the CSS priority to achieve it. Following is the sample code:
    table, td, th {   border: 0
    ! important;   }

    This forum is used for SharePoint only. If you have Office 365 questions, I would suggest you asking in:
    http://community.office365.com/en-us/default.aspx

    Appreciate your understanding.

    Thanks,
    Lhan Han

    Tuesday, March 6, 2012 3:13 AM
    Moderator

All replies

  • You can set the border to 0 in the html tag.  <table border=0> 

    If you want to use css, try setting:

    table, td, th {border: 0;}

    There is a nice reference article here: http://www.w3schools.com/css/css_table.asp

    Cheers,
    Jonathan

    Monday, March 5, 2012 6:52 PM
  • Thanks for the suggestions. The html table border is set at 0px and border color #ffffff (there's no transparent drop down option in SPD online). I added     table, td, th {border: 0;}   to style sheet and the border still appears on pages in IE9 and FFox 10.0.2.

    My )365 site style-sheet exceptions are

    img {   border-style: none;   }  (this removes blue border from hyper linked images)
    table, td, th {   border: 0;   }

    Any other suggests because this doesn't seem to work for me?

    Monday, March 5, 2012 7:20 PM
  •  

    Hi pdihal51,

    Thank you for your posting.


    You can try to set the CSS priority to achieve it. Following is the sample code:
    table, td, th {   border: 0
    ! important;   }

    This forum is used for SharePoint only. If you have Office 365 questions, I would suggest you asking in:
    http://community.office365.com/en-us/default.aspx

    Appreciate your understanding.

    Thanks,
    Lhan Han

    Tuesday, March 6, 2012 3:13 AM
    Moderator
  • Works great. Thanks.

    BTW - a tech on the O365 forum referred me to this Sharepoint forum for an answer. He was right about that.

    Tuesday, March 6, 2012 6:32 PM