Skip to content
Snippets Groups Projects
Commit 0011a300 authored by Alexander Repeta's avatar Alexander Repeta
Browse files

add image path example

parent b511e196
No related branches found
No related tags found
No related merge requests found
<article class="example"> <article class="example">
<h1>HTML-фрагменты</h1> <h1>HTML-фрагменты</h1>
<!-- Путь к изображениям из HTML-фрагмента такой, как буд-то из index.html -->
<img src="images/demo.jpg" alt="" width="320" />
<p> <p>
Плагин Плагин
<a <a
...@@ -29,4 +31,6 @@ ...@@ -29,4 +31,6 @@
&lt;include src="./partials/имя-файла.html"&gt;&lt;/include&gt; &lt;include src="./partials/имя-файла.html"&gt;&lt;/include&gt;
</code> </code>
</p> </p>
<div class="background"></div>
</article> </article>
...@@ -16,3 +16,11 @@ ...@@ -16,3 +16,11 @@
padding: 2px 6px; padding: 2px 6px;
border-radius: 2px; border-radius: 2px;
} }
.example .background {
height: 200px;
// Путь к изображениям из SASS-файла всегда такой, как буд-то из папки css
background-image: url('../images/demo.jpg');
background-size: cover;
background-position: center;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment