Jump to content
  • 0

как сделать 2 сайдбара друг под другом?


Mr. Kook
 Share

Question

Как можно и можно ли вообще создать 2 блока <aside> чтобы каждый следующий блок находился под предыдущим? У меня не получается, они располагаются горизонтально. Или проще с помощью div'ов реализовать это?


<aside>
<nav >
<a href="index.html">Главная</a><br>
<a href="blog.html">Блог</a><br>
<a href="video.html">Видеоматериалы</a><br>
<a href="obo_mne.html">О себе</a><br>
<a href="file.html">Файлы</a></nav>
</nav>
</aside>
<aside>
2 блок
</aside>

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Разницы видимо никакой,

Стоит float: right;

если его убрать то он становится выше контента а не сбоку от него



aside {
background: #f0f0f0;
padding: 10px;
float: right;
width: 200px;
border: 1px solid black;
margin-top: 3px;
}

Edited by Mr. Kook
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy