Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add or remove borders to a table?

Archana
Contributor
February 28, 2023

I have a page with 3 sections

Section 1: Shows content in table format

Section 2: Shows content in table format

Section 3: Registration form which was designed in table format 

I want to show table borders on section 1 and 2 but not section 3. How can I do it?

Currently, I have the below code in section 3 to Not to display the border. However, when I put this code, the borders on section 1 and 2 tables were also removed. Can someone help with this?


<STYLE>
td.confluenceTd { border-left: 0px solid rgb(200,200,200);
border-top: 0px solid rgb(200,200,200);
border-right: 0px solid rgb(200,200,200);
border-bottom: 0px solid rgb(200,200,200);
}
.wiki-content h2 { font-weight: bold;
font-size: 4px;
color: red}
</STYLE>

 

1 answer

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Community Champion
February 28, 2023

Hi

You code does not target "section 3" specifically - it targets ALL the td.confluenceTd elements on the page

When yo say it's a section - do you mean you use a "Section" macro in Confluence?

Alex

Archana
Contributor
March 1, 2023

Yes Alex. I used section macro. How to make it specific to the 3rd section?

Archana
Contributor
March 1, 2023

How can it be done when we are not uding the section macro? but instead use the page layout sections that are available?

Alex Medved _ConfiForms_
Community Champion
March 1, 2023

Do you have a DIV macro or Confluence source editor plugin may be?

Archana
Contributor
March 2, 2023

Unfortunately. I dont have any one of them.

Archana
Contributor
March 3, 2023

I was able to fix it with section headers :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events