Change Div Title

299
4
Jump to solution
05-01-2020 01:48 AM
Vakhtang_Zubiashvili
Occasional Contributor II

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 Esteemed Contributor

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 Esteemed Contributor

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 II

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 Esteemed Contributor

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

Vakhtang_Zubiashvili
Occasional Contributor II

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

0 Kudos