Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

205
Vistas
How can I hide a Div element if an inner <p> element is blank?

I'm using a community visualisation in Google Data Studio (Templated Record) which allows me to use HTML and CSS to display records. I'm fairly new to all this and I'm having some trouble with what I want to achieve so hoping someone can help.

What I'm trying to do is be able to hide a Div element if it's inner

element is blank. All of the

elements I'm using are variables so I have no way of knowing if they'll be blank record from record.

Here's an example of of the HTML:

<div class="aDiv">
<h3>Study Summary:</h3><p> {{Summary}} </p></div><br>

Where is a fixed Header and

is the variable being pulled from a Google Sheet.

Here's the CSS:

.aDiv {border: 1px outset #193e72; padding: 0em 1em 2em;}
h3 {color: #193e72; font-size: 1.7em; margin: 0;  padding-top: 0.5em;}
p {font-size: 1.3em} 

Here's how it currently looks:

screenshot of Div element

So basically I'd like to hide this entire element if the

variable is blank.

Any help with this would be much appreciated.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda