Nested Details Tab Images


#1

I am trying to get the following to work:

Folder 1
Nested Folder

It is an image nested inside 2 details tabs. In one of my other posts, the image seems to disappear every time I try and do it, but it is working just fine here. Why might it not be working on my other post?



The post code for the post in question is as follows:

<details>
<summary>Folder1</summary>
<details>
<summary>Folder2</summary>
<img src="https://i.imgur.com/B7sXlRA.png" width="500">
</details>
</details>

It seems to work for this post, but doesn’t work for my other one.


#2

Me brain hurty


#3

[Moved out of Game Discussion (Tech Support) category]

The only thing I’ve encountered whilst dealing with [details] is that they seem to most enjoy being on a line with whitespace above and below, for the open and close tags:


#4

Mind posting the code you’re having trouble with here? Then we can use this thread to debug it lol

Think scorchmist had issues with this in the past and the whitespace Nevov mentioned fixed it (i.e. hitting Enter a shitton of times before and after each details tag xD)


#5

You’re using a longer Details tag.

As @Nevov has said, It’d be easier to use the
[details = Folder 1]
[/details]
tag, rather than the
<details>
<details>
tag.

Folder 1
subfolder

https://i.imgur.com/0UIpVnO.png (link can be removed if the ![image|WxH](upload://etcetc.png) is there.)

[details = Folder 1]
[details = subfolder]

![image|529x500](upload://suvF51TBoQbOq9ZbdP876VQ1eRB.png) https://i.imgur.com/0UIpVnO.png

[/details]
[/details]


#6

This fixed it. I was trying to use details within a list and it didn’t work. I have since addressed the issue. I will find a way to do a numbered list in html and try it that way.

It’s amazing that things like this work.

I have since switched the html details as mentioned. It wasn’t the problem, but it definitely helped.

The solution is that you need whitespace above the tag, or at least can’t use <img> within a list and expect it to work.

This can be closed.


#7

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.