Change Div Title

955
4
Jump to solution
05-01-2020 01:48 AM
Vakhtang_Zubiashvili
Occasional Contributor III

Hi all,

I want to change Attachment's title (see Pic.) I know how to override CSS defaults, but what to do with DIV elements i do not know. 

Any help please

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

The code I posted was tested and working. Not sure why you added the first css rule you posted above.

View solution in original post

4 Replies
RobertScheitlin__GISP
MVP Emeritus

Vakhtang,

   This is a real hack but it allows you to replace the text inside a css rule:

.esri-feature__attachments > h2 {
  text-indent: -9999px;
  line-height: 0;
}

.esri-feature__attachments > h2::after {
  content: "Blah Blah";
  text-indent: 0;
  display: block;
  line-height: initial;
}
Vakhtang_Zubiashvili
Occasional Contributor III

Robert,

I tried but it did not work. 

But if i do it like i show in this code, it changes ATTACHMENTS color, but title stays same.

div.esri-feature__attachments-title  {
  content: "Blah Blah";
  color:#dc2d5e;
  text-indent: 0;
  display: block;
  line-height: initial;
}

  
.esri-feature__attachments > h2 {
  text-indent: -9999px;
  line-height: 0;
}

.esri-feature__attachments > h2::after {
  content: "Blah Blah";
  text-indent: 0;
  display: block;
  line-height: initial;
}
0 Kudos
RobertScheitlin__GISP
MVP Emeritus

The code I posted was tested and working. Not sure why you added the first css rule you posted above.

Vakhtang_Zubiashvili
Occasional Contributor III

Aaah, i used 4.14 version, switch to 4.15 it works. Thanks my friend

0 Kudos