hide everything within a div including background image



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-1















I have a div with some contents. I am able to hide the contents in the div with css visibility attribute. The css visibility attribute only hides the content and does not hide background image of base64. My challenge now is to hide everything with the div including the base64 background image. Here is the attempt






<div class="stl_02a">
<div class="stl_03a">
//this is the background image
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAzAAAAQgCAYAAAA5ebkOAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABGuSURBVHhe7dshjh1kGIXhkciRyEoUYQmzDCRLQLACFDtAdgfYBjUK2aBIcATRNIjK6vLfzBCSq+ee9PvO8yQnM7muyZfp/zbTOwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2ODu7l9MWGjRg3gQ4wAAAABJRU5ErkJggg==" alt=""
class="stl_04a">
</div>
<div class="stl_view">
<div style="visibility:collapse; background: #fff">
//..... content here and to hide everything within this div
</div>
</div>
</div>





how to hide everything within the above div is the challenge










share|improve this question
























  • Can you make an example with the image? As display:none; does the job in this case.

    – JeroenE
    Nov 15 '18 at 9:18











  • I have editted the question to show bg image

    – user10445503
    Nov 15 '18 at 9:25











  • You have to put the display:none; to the div with class: `stl_02a'. Then everything from that class will be hidden (including the image).

    – JeroenE
    Nov 15 '18 at 9:27












  • there are content in in stl_02a that I want to remain visible

    – user10445503
    Nov 15 '18 at 9:28











  • Then add display:none to the image. :)

    – JeroenE
    Nov 15 '18 at 9:29

















-1















I have a div with some contents. I am able to hide the contents in the div with css visibility attribute. The css visibility attribute only hides the content and does not hide background image of base64. My challenge now is to hide everything with the div including the base64 background image. Here is the attempt






<div class="stl_02a">
<div class="stl_03a">
//this is the background image
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAzAAAAQgCAYAAAA5ebkOAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABGuSURBVHhe7dshjh1kGIXhkciRyEoUYQmzDCRLQLACFDtAdgfYBjUK2aBIcATRNIjK6vLfzBCSq+ee9PvO8yQnM7muyZfp/zbTOwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2ODu7l9MWGjRg3gQ4wAAAABJRU5ErkJggg==" alt=""
class="stl_04a">
</div>
<div class="stl_view">
<div style="visibility:collapse; background: #fff">
//..... content here and to hide everything within this div
</div>
</div>
</div>





how to hide everything within the above div is the challenge










share|improve this question
























  • Can you make an example with the image? As display:none; does the job in this case.

    – JeroenE
    Nov 15 '18 at 9:18











  • I have editted the question to show bg image

    – user10445503
    Nov 15 '18 at 9:25











  • You have to put the display:none; to the div with class: `stl_02a'. Then everything from that class will be hidden (including the image).

    – JeroenE
    Nov 15 '18 at 9:27












  • there are content in in stl_02a that I want to remain visible

    – user10445503
    Nov 15 '18 at 9:28











  • Then add display:none to the image. :)

    – JeroenE
    Nov 15 '18 at 9:29













-1












-1








-1








I have a div with some contents. I am able to hide the contents in the div with css visibility attribute. The css visibility attribute only hides the content and does not hide background image of base64. My challenge now is to hide everything with the div including the base64 background image. Here is the attempt






<div class="stl_02a">
<div class="stl_03a">
//this is the background image
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAzAAAAQgCAYAAAA5ebkOAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjw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BAwAANMImGICBgCAaQRMMQEDAMA0AqaYgAEAYBoBU0zAAAAwjYApJmAAAJhGwBQTMAAATCNgigkYAACmETDFBAwAANMImGICBgCAaQRMMQEDAMA0AqaYgAEAYBoBU0zAAAAwjYApJmAAAJhGwBQTMAAATCNgigkYAACmETDFBAwAANMImGICBgCAaQRMsR/O3pw9mJmZmZkN2fuzr88o9OvZu7NHMzMzM7Mh+3h2+Yd4Cn1xdv/0LQAAjPDl81cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2ODu7l9MWGjRg3gQ4wAAAABJRU5ErkJggg==" alt=""
class="stl_04a">
</div>
<div class="stl_view">
<div style="visibility:collapse; background: #fff">
//..... content here and to hide everything within this div
</div>
</div>
</div>





how to hide everything within the above div is the challenge










share|improve this question
















I have a div with some contents. I am able to hide the contents in the div with css visibility attribute. The css visibility attribute only hides the content and does not hide background image of base64. My challenge now is to hide everything with the div including the base64 background image.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AEAYBoBU0zAAAAwjYApJmAAAJhGwBQTMAAATCNgigkYAACmETDFBAwAANMImGICBgCAaQRMMQEDAMA0AqaYgAEAYBoBU0zAAAAwjYApJmAAAJhGwBQTMAAATCNgigkYAACmETDFBAwAANMImGICBgCAaQRMMQEDAMA0AqaYgAEAYBoBU0zAAAAwjYApJmAAAJhGwBQTMAAATCNgigkYAACmETDFBAwAANMImGICBgCAaQRMMQEDAMA0AqaYgAEAYBoBU0zAAAAwjYApJmAAAJhGwBQTMAAATCNgigkYAACmETDFBAwAANMImGICBgCAaQRMsR/O3pw9mJmZmZkN2fuzr88o9OvZu7NHMzMzM7Mh+3h2+Yd4Cn1xdv/0LQAAjPDl81cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2ODu7l9MWGjRg3gQ4wAAAABJRU5ErkJggg==" alt=""
class="stl_04a">
</div>
<div class="stl_view">
<div style="visibility:collapse; background: #fff">
//..... content here and to hide everything within this div
</div>
</div>
</div>





how to hide everything within the above div is the challenge






<div class="stl_02a">
<div class="stl_03a">
//this is the background image
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAzAAAAQgCAYAAAA5ebkOAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABGuSURBVHhe7dshjh1kGIXhkciRyEoUYQmzDCRLQLACFDtAdgfYBjUK2aBIcATRNIjK6vLfzBCSq+ee9PvO8yQnM7muyZfp/zbTOwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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l_view">
<div style="visibility:collapse; background: #fff">
//..... content here and to hide everything within this div
</div>
</div>
</div>





<div class="stl_02a">
<div class="stl_03a">
//this is the background image
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAzAAAAQgCAYAAAA5ebkOAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABGuSURBVHhe7dshjh1kGIXhkciRyEoUYQmzDCRLQLACFDtAdgfYBjUK2aBIcATRNIjK6vLfzBCSq+ee9PvO8yQnM7muyZfp/zbTOwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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_04a">
</div>
<div class="stl_view">
<div style="visibility:collapse; background: #fff">
//..... content here and to hide everything within this div
</div>
</div>
</div>






html css






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 '18 at 9:25







user10445503

















asked Nov 15 '18 at 9:13









user10445503user10445503

589




589












  • Can you make an example with the image? As display:none; does the job in this case.

    – JeroenE
    Nov 15 '18 at 9:18











  • I have editted the question to show bg image

    – user10445503
    Nov 15 '18 at 9:25











  • You have to put the display:none; to the div with class: `stl_02a'. Then everything from that class will be hidden (including the image).

    – JeroenE
    Nov 15 '18 at 9:27












  • there are content in in stl_02a that I want to remain visible

    – user10445503
    Nov 15 '18 at 9:28











  • Then add display:none to the image. :)

    – JeroenE
    Nov 15 '18 at 9:29

















  • Can you make an example with the image? As display:none; does the job in this case.

    – JeroenE
    Nov 15 '18 at 9:18











  • I have editted the question to show bg image

    – user10445503
    Nov 15 '18 at 9:25











  • You have to put the display:none; to the div with class: `stl_02a'. Then everything from that class will be hidden (including the image).

    – JeroenE
    Nov 15 '18 at 9:27












  • there are content in in stl_02a that I want to remain visible

    – user10445503
    Nov 15 '18 at 9:28











  • Then add display:none to the image. :)

    – JeroenE
    Nov 15 '18 at 9:29
















Can you make an example with the image? As display:none; does the job in this case.

– JeroenE
Nov 15 '18 at 9:18





Can you make an example with the image? As display:none; does the job in this case.

– JeroenE
Nov 15 '18 at 9:18













I have editted the question to show bg image

– user10445503
Nov 15 '18 at 9:25





I have editted the question to show bg image

– user10445503
Nov 15 '18 at 9:25













You have to put the display:none; to the div with class: `stl_02a'. Then everything from that class will be hidden (including the image).

– JeroenE
Nov 15 '18 at 9:27






You have to put the display:none; to the div with class: `stl_02a'. Then everything from that class will be hidden (including the image).

– JeroenE
Nov 15 '18 at 9:27














there are content in in stl_02a that I want to remain visible

– user10445503
Nov 15 '18 at 9:28





there are content in in stl_02a that I want to remain visible

– user10445503
Nov 15 '18 at 9:28













Then add display:none to the image. :)

– JeroenE
Nov 15 '18 at 9:29





Then add display:none to the image. :)

– JeroenE
Nov 15 '18 at 9:29












1 Answer
1






active

oldest

votes


















0














instead of visibility:collapse, use the display:none property.



Also, reading from this page, visibility:collapse is only for table rows, row groups, columns, column groups. This value removes a row or column, but it does not affect the table layout. The space taken up by the row or column will be available for other content.



If you want to use it on other type of elements, visibility:hidden should be used.



EDIT:



Now that you edited your post, it's obvious why your "background" image shows, and that is because the element with the content and the element with the background image are unrelated. You need to set display:none or visibility:hidden on the div with class stl_02a






share|improve this answer

























  • the background image still shows but the content does not

    – user10445503
    Nov 15 '18 at 9:16












  • This is a low quality answer. Please edit.

    – Foo
    Nov 15 '18 at 9:17











  • @user10445503 display: none should hide the entire div including background.

    – kiranvj
    Nov 15 '18 at 9:19












  • @user10445503 show us all your relevant code (include your background-image)please

    – לבני מלכה
    Nov 15 '18 at 9:20












  • are you sure you are setting the visibility property on the element where the background is, instead of a child element of it?

    – László Stahorszki
    Nov 15 '18 at 9:23












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53315943%2fhide-everything-within-a-div-including-background-image%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














instead of visibility:collapse, use the display:none property.



Also, reading from this page, visibility:collapse is only for table rows, row groups, columns, column groups. This value removes a row or column, but it does not affect the table layout. The space taken up by the row or column will be available for other content.



If you want to use it on other type of elements, visibility:hidden should be used.



EDIT:



Now that you edited your post, it's obvious why your "background" image shows, and that is because the element with the content and the element with the background image are unrelated. You need to set display:none or visibility:hidden on the div with class stl_02a






share|improve this answer

























  • the background image still shows but the content does not

    – user10445503
    Nov 15 '18 at 9:16












  • This is a low quality answer. Please edit.

    – Foo
    Nov 15 '18 at 9:17











  • @user10445503 display: none should hide the entire div including background.

    – kiranvj
    Nov 15 '18 at 9:19












  • @user10445503 show us all your relevant code (include your background-image)please

    – לבני מלכה
    Nov 15 '18 at 9:20












  • are you sure you are setting the visibility property on the element where the background is, instead of a child element of it?

    – László Stahorszki
    Nov 15 '18 at 9:23
















0














instead of visibility:collapse, use the display:none property.



Also, reading from this page, visibility:collapse is only for table rows, row groups, columns, column groups. This value removes a row or column, but it does not affect the table layout. The space taken up by the row or column will be available for other content.



If you want to use it on other type of elements, visibility:hidden should be used.



EDIT:



Now that you edited your post, it's obvious why your "background" image shows, and that is because the element with the content and the element with the background image are unrelated. You need to set display:none or visibility:hidden on the div with class stl_02a






share|improve this answer

























  • the background image still shows but the content does not

    – user10445503
    Nov 15 '18 at 9:16












  • This is a low quality answer. Please edit.

    – Foo
    Nov 15 '18 at 9:17











  • @user10445503 display: none should hide the entire div including background.

    – kiranvj
    Nov 15 '18 at 9:19












  • @user10445503 show us all your relevant code (include your background-image)please

    – לבני מלכה
    Nov 15 '18 at 9:20












  • are you sure you are setting the visibility property on the element where the background is, instead of a child element of it?

    – László Stahorszki
    Nov 15 '18 at 9:23














0












0








0







instead of visibility:collapse, use the display:none property.



Also, reading from this page, visibility:collapse is only for table rows, row groups, columns, column groups. This value removes a row or column, but it does not affect the table layout. The space taken up by the row or column will be available for other content.



If you want to use it on other type of elements, visibility:hidden should be used.



EDIT:



Now that you edited your post, it's obvious why your "background" image shows, and that is because the element with the content and the element with the background image are unrelated. You need to set display:none or visibility:hidden on the div with class stl_02a






share|improve this answer















instead of visibility:collapse, use the display:none property.



Also, reading from this page, visibility:collapse is only for table rows, row groups, columns, column groups. This value removes a row or column, but it does not affect the table layout. The space taken up by the row or column will be available for other content.



If you want to use it on other type of elements, visibility:hidden should be used.



EDIT:



Now that you edited your post, it's obvious why your "background" image shows, and that is because the element with the content and the element with the background image are unrelated. You need to set display:none or visibility:hidden on the div with class stl_02a







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 15 '18 at 9:30

























answered Nov 15 '18 at 9:15









László StahorszkiLászló Stahorszki

396212




396212












  • the background image still shows but the content does not

    – user10445503
    Nov 15 '18 at 9:16












  • This is a low quality answer. Please edit.

    – Foo
    Nov 15 '18 at 9:17











  • @user10445503 display: none should hide the entire div including background.

    – kiranvj
    Nov 15 '18 at 9:19












  • @user10445503 show us all your relevant code (include your background-image)please

    – לבני מלכה
    Nov 15 '18 at 9:20












  • are you sure you are setting the visibility property on the element where the background is, instead of a child element of it?

    – László Stahorszki
    Nov 15 '18 at 9:23


















  • the background image still shows but the content does not

    – user10445503
    Nov 15 '18 at 9:16












  • This is a low quality answer. Please edit.

    – Foo
    Nov 15 '18 at 9:17











  • @user10445503 display: none should hide the entire div including background.

    – kiranvj
    Nov 15 '18 at 9:19












  • @user10445503 show us all your relevant code (include your background-image)please

    – לבני מלכה
    Nov 15 '18 at 9:20












  • are you sure you are setting the visibility property on the element where the background is, instead of a child element of it?

    – László Stahorszki
    Nov 15 '18 at 9:23

















the background image still shows but the content does not

– user10445503
Nov 15 '18 at 9:16






the background image still shows but the content does not

– user10445503
Nov 15 '18 at 9:16














This is a low quality answer. Please edit.

– Foo
Nov 15 '18 at 9:17





This is a low quality answer. Please edit.

– Foo
Nov 15 '18 at 9:17













@user10445503 display: none should hide the entire div including background.

– kiranvj
Nov 15 '18 at 9:19






@user10445503 display: none should hide the entire div including background.

– kiranvj
Nov 15 '18 at 9:19














@user10445503 show us all your relevant code (include your background-image)please

– לבני מלכה
Nov 15 '18 at 9:20






@user10445503 show us all your relevant code (include your background-image)please

– לבני מלכה
Nov 15 '18 at 9:20














are you sure you are setting the visibility property on the element where the background is, instead of a child element of it?

– László Stahorszki
Nov 15 '18 at 9:23






are you sure you are setting the visibility property on the element where the background is, instead of a child element of it?

– László Stahorszki
Nov 15 '18 at 9:23




















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53315943%2fhide-everything-within-a-div-including-background-image%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Use pre created SQLite database for Android project in kotlin

Darth Vader #20

Ondo