I've been looking in the forum for this, but I think mine is so simple and the other's that i've read are so much more complex, i have not found anything that has helped me yet.
I just want to hide a div if there is no content. For example:
<div class="feature">
<p>@Umbraco.Field("sbFeatureBox")</p>
</div>
Because feature has background styles, if there is no content, it is still visible so this is why I need to hide it.
How to hide a div in Umbraco 7
Hello,
I'm using Umbraco V7
I've been looking in the forum for this, but I think mine is so simple and the other's that i've read are so much more complex, i have not found anything that has helped me yet.
I just want to hide a div if there is no content. For example:
<div class="feature">
<p>@Umbraco.Field("sbFeatureBox")</p>
</div>
Because feature has background styles, if there is no content, it is still visible so this is why I need to hide it.
Thanks in advance for your help.
Hi Christine,
You could do this:
Jeavon
Hi Christine
Why not avoid writing out the entire
Try this
Does that help? :)
You should bookmark the RazorCheatSheet or download it btw.
/Jan
Too slow! H5yr Jeavon :)
/Jan
Thanks that worked! and I will bookmark that CheatSheet :)
Thanks that worked! and I will bookmark that CheatSheet :)
is working on a reply...