Users Pricing

forum

Home Forums How can I hide a div using visible property even it has a background – MindStick

How can I hide a div using visible property even it has a background

Pravesh Singh 2098 23 Aug 2014

I have the following div:

<div visible="false"

     style="background-image:url('../Contents/Images/item-background-selected.png'); width:113px; height:58px; background-repeat: no-repeat; position: absolute;"  />

<div>

It's still visible in spite of the visible property is set to false. but when I remove the background-image from the style it's hidden.

How can I hide it with keeping its background?

Thanks in advance.


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md