Search code examples
csswordpressgoogle-custom-search

How can I use table CSS property all of my table except google custom search?


I am creating a website and I used google custom search for it. When I trying to add a border for th, td they also applied for my GCSE. It looks ugly when it appears there. I am trying to figure out how can I use my CSS code all table except google custom search. Here is my website, https://vendabariulo.gov.bd/citizen-charter/

Here is my code,

th, td {
text-align: left;
padding: 8px;
border: 1px solid #ddd;
}

Here is my search button screenshot, there shows a border around it. If I remove border from th, td it looks beautiful.

enter image description here


Solution

  • Thanks all. After thinking and trying half an hour, I figure out something. It's work for me. I think it's a valid CSS rule.

    I add a div class to my google custom search code and add this simple code,

    .gcse td, th, tr {
    border: none;
    }