-
Hello, I'm experiencing a strange bug/behavior of importing images to the page. This is my folder structure at the moment. Something to notice it, that this behavior not always happens. For example, in - docs
- img
- folder
- 1.md
- 2.md Here is the content of my # Image Test

<section class="card">
<div class="card--content">
<img class="image" src="../../img/male.png"> <!-- works -->
</div>
<div class="card--content">
<img class="image" src="../img/female.jpg"> <!-- does not work -->
</div>
</section> And this is my CSS style. I don't think it has anything to do with CSS. .card {
display: flex;
background-color: #fff;
border-radius: 5px;
min-width: 100%;
min-height: 200px;
overflow-x: auto;
}
.card--content {
/* background-color: #e74c3c; */
min-width: 200px;
margin: 5px;
}
.image {
display: flex;
justify-content: center;
align-items: center;
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Likely related to |
Beta Was this translation helpful? Give feedback.
Likely related to
use_directory_urls
. When you useimg
tags, MkDocs doesn't adjust for the additional trailing slash.