Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Тест</title>
</head>
<body>
	<header class="container header">
		<div>
			<a href="../../index.html"><img src="../../img/logo66.png" alt="Ой а лого нет =("></a>
		</div>
	</header>
	<div class="container main">
		<div class="row">
			<div class="col col__aside">
				<nav id="accordion" class="accordion">
				<div class="accordion-item">
					<div class="accordion-item-header">
						Меню
				   </div>
					<div class="accordion-item-content">
						  <ul class="accordion-subitems">
							<li class="accordion-subitem">
							    <a href="#">Подменю 1</a>
						   </li>
							<li class="accordion-subitem">
								<a href="#">Подменю 2</a>
						   </li>
							<li class="accordion-subitem">
								<a href="#">Подменю 3</a>
								<a href="#"></a>
						   </li>
							<li class="accordion-subitem">
								<a href="#">Подменю 4</a>
								<a href="#"></a>
						   </li>
						  </ul>
				     </div>
			   </div>
				<div class="accordion-item">
					<div class="accordion-item-header">
						Меню 2
				   </div>
					<div class="accordion-item-content">
						  <ul class="accordion-subitems">
							<li class="accordion-subitem">
								<a href="#">Подменю 1</a>
						   </li>
							<li class="accordion-subitem">
								<a href="#">Подменю 2</a>
								<a href="#"></a>
						   </li>
							<li class="accordion-subitem">
								<a href="#">Подменю 3</a>
								<a href="#"></a>
						   </li>
							<li class="accordion-subitem">
								<a href="#">Подменю 4</a>
								<a href="#"></a>
						   </li>
						  </ul>
				     </div>
			   </div>
				<div class="accordion-item">
				    <div class="accordion-item-header">
						Меню 3
				   </div>
				    <div class="accordion-item-content">
						  <ul class="accordion-subitems">
							<li class="accordion-subitem">
								<a href="#">Подменю 1</a>
								<a href="#"></a>
						   </li>
							<li class="accordion-subitem">
								<a href="#">Подменю 2</a>
								<a href="#"></a>
						   </li>
							<li class="accordion-subitem">
								<a href="#">Подменю 3</a>
								<a href="#"></a>
						   </li>
							<li class="accordion-subitem">
								<a href="#">Подменю 4</a>
								<a href="#"></a>
						   </li>
						  </ul>
					 </div>
				</div>
		   </nav>
		</div>
		    <div class="col col__article">
					<div class="Books_number">
							<h1>Книга о кудесниках и их прикючения в волшебном мире часть 1</h1>
							<div class="col__item">
                     <a href="#"><img src="https://via.placeholder.com/100x150" alt="Книга кудесник" title="Книга"></a>
                               <div>
                     	<a href="../../Books/1_class/peterson.html">
								<p>Описание: - часть 1,2,3</p>
								<p>Автор: Иванов А.А.</p>
								<P>Издательство: STAR</P>
								<p>Год: 2020</p>
							    </a>
                               </div>
                            </div>
                          <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi excepturi voluptatibus similique, beatae facere rerum aliquam officia, minus numquam, fugit perferendis, dolorum enim accusantium veritatis impedit corporis. Nam est quae eius vel. Est officia id veritatis, dignissimos sequi eaque autem vel, quibusdam expedita deleniti? Temporibus aliquam consequatur excepturi ab eum expedita, suscipit dolor odio aspernatur aut nemo cupiditate officiis quis illum rem earum adipisci culpa, voluptatibus. Dolorem nesciunt sequi nisi vero repudiandae ipsam placeat esse mollitia perferendis similique. Illo eius explicabo, optio mollitia labore. Aliquid, ex animi debitis, voluptatem repellendus iure assumenda modi, necessitatibus eum quas nihil eius veniam adipisci? </p>
                           <div class="numbers">
                          	    <div class="lesson">Part 1:</div>
		                           <div class="baby"><a href="#">1</a></div>
		                           <div class="baby"><a href="#">2</a></div>
		                           <div class="baby"><a href="#">3</a></div>
		                           <div class="baby"><a href="#">4</a></div>	
		                           <div class="baby"><a href="#">5</a></div>
                          	</div>
                          	<div class="numbers">
                          	    <div class="lesson">Part 2:</div>
		                           <div class="baby"><a href="#">1</a></div>
		                           <div class="baby"><a href="#">2</a></div>
		                           <div class="baby"><a href="#">3</a></div>
		                           <div class="baby"><a href="#">4</a></div>	
		                           <div class="baby"><a href="#">5</a></div>
		                           <div class="baby"><a href="#">6</a></div>
		                           <div class="baby"><a href="#">7</a></div>
		                           <div class="baby"><a href="#">8</a></div>
		                           <div class="baby"><a href="#">9</a></div>
		                           <div class="baby"><a href="#">10</a></div>
                          	</div>
            <div class="numbers">
                          	    <div class="lesson">Part 3:</div>
		                           <div class="baby"><a href="#">1</a></div>
		                           <div class="baby"><a href="#">2</a></div>
		                           <div class="baby"><a href="#">3</a></div>
		                           <div class="baby"><a href="#">4</a></div>	
		                           <div class="baby"><a href="#">5</a></div>
		                           <div class="baby"><a href="#">6</a></div>
		                           <div class="baby"><a href="#">7</a></div>
		                           <div class="baby"><a href="#">8</a></div>
		                           <div class="baby"><a href="#">9</a></div>
		                           <div class="baby"><a href="#">10</a></div>
                          	</div>
                      </div>
                </div>
            </div>
       </div>
	   <footer class="container footer">
		<div class="row">
				<div class="col col__footer">
					Копирайт
			   </div>
	      </div>
		<div class="row">
				<div class="col col__footer">
					<a href="#">Правообладателям</a>
			   </div>
		  </div>
		<div class="row">
				<div class="col col__footer">
					<a href="#">mail</a>
			   </div>
		  </div>
	  </footer>  	
</body>
</html>
              
            
!

CSS

              
                /*Обнуление*/
*{
	padding: 0;
	margin: 0;
	border: 0;
}
*,*:before,*:after{
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
:focus,:active{outline: none;}
a:focus,a:active{outline: none;}

nav,footer,header,aside{display: block;}

html,body{
	height: 100%;
	width: 100%;
	font-size: 100%;
	line-height: 1;
	font-size: 14px;
	-ms-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	display: flex;
  flex-direction: column;
}
input,button,textarea{font-family:inherit;}

input::-ms-clear{display: none;}
button{cursor: pointer;}
button::-moz-focus-inner {padding:0;border:0;}
a, a:visited{text-decoration: none;}
a:hover{text-decoration: none;}
ul li{list-style: none;}
img{vertical-align: top;}

h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight: 400;}
/*////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/* контейнер */
    .container {
      width: 100%;
      max-width: 1200px;
      padding-right: 15px;
      padding-left: 15px;
      margin-left: auto;
      margin-right: auto;
    }
    /* flex-контейнер */
    .row {
      display: -ms-flexbox;
      display: flex;
      -ms-flex-wrap: wrap;
      flex-wrap: wrap;
      margin-right: -15px;
      margin-left: -15px;
    }
    /* CSS настройки flex-элементов */
    .col {
      position: relative;
      width: 100%;
      padding-right: 15px;
      padding-left: 15px;
    }
    /* ширина блоков article и aside по умолчанию */
    .col__article,
    .col__aside {
      -ms-flex: 0 0 100%;
      flex: 0 0 100%;
      max-width: 100%;
    }
    /* ширина блоков article и aside для больших экранов */
    @media (min-width: 992px) {
      /* 2/3 от ширины контейнера */
      .col__article {
        -ms-flex: 0 0 66.666667%;
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
      }
      /* 1/3 от ширины контейнера */
      .col__aside {
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
      }
    }
    .header {
      background-color: #2F4F4F;
      flex: 0 0 auto;
      text-align: center;
      padding-top: 15px;
      padding-bottom: 15px;
    }
    .col__article {
      background-color: #fff8e1;
      padding-top: 20px;
      padding-bottom: 20px;
      text-align: left;

    }
    .col__aside {
      background-color: #dcedc8;
      padding-top: 20px;

    }
    .main {
      flex: 1 0 auto;
      display: flex;
    }
    .main .row {
      flex-grow: 1;
    }
    .footer {
      flex: 0 0 auto;
      display: flex;
      justify-content: space-between;
      text-align:center;
      background-color: #2F4F4F;
      padding-top: 20px;
      padding-bottom: 20px;
      font-size: 16px;
    }
    .col__footer a{
    	color: black;
    }
    /*///////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
    .accordion-item {
      margin-bottom: 1px;
    }

    .accordion-item:last-child {
      margin-bottom: 0;
    }

    .accordion-item-header {                        /*Заголовки*/
      padding: 8px 8px 8px 20px;
      background: #4d5159;
      color: rgba(255, 255, 255, .8);
      cursor: pointer;
      text-transform: uppercase;
      font-family: sans-serif;
      position: relative;
    }

    .accordion-item.show .accordion-item-header,   /*Заливка при наведении на заголовок*/
    .accordion-item-header:hover,
    .accordion-item-header:focus {
      background: #3b3e44;
    }

    .accordion-item-header::before {               /*Маленькая полоска в начале*/
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      width: 10px;
      background: rgba(255, 255, 255, .5);
    }

    .accordion-item-header::after {                 /*Стрелочки*/
      content: "";
      position: absolute;
      top: 50%;
      right: 12px;
      width: 16px;
      height: 16px;
      margin-top: -8px;
      background-size: cover;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26.5 26.5' height='100' width='100'%3E%3Cpath d='M25.8 6.2l-1.2-1.3c-.5-.5-1-.7-1.6-.7a2 2 0 00-1.5.7l-8.3 8.4L5 4.9a2 2 0 00-1.6-.7c-.5 0-1 .2-1.5.7L.6 6.2c-.4.4-.6 1-.6 1.5 0 .7.2 1.2.6 1.6l11.1 11.2c.4.4 1 .7 1.5.7a2 2 0 001.6-.7l11-11.2c.4-.4.7-1 .7-1.6 0-.6-.3-1-.7-1.5z' fill='%23fff'/%3E%3C/svg%3E");
    }

    .accordion-item-content {
      display: none;
    }

    .accordion-item.show .accordion-item-content {
      display: block;
    }

    .accordion-item.show .accordion-item-header::after {
      transform: rotate(180deg);
    }


    .accordion-subitems {
      list-style-type: none;
      margin: 0;
      padding: 0;
    }

    .accordion-subitem>a {                         /*Подзаголовки*/
      padding: 8px 8px 8px 20px;
      background: #dcdcdc;                         /*Фон подзаголовка*/
      color: #333;
      cursor: pointer;
      font-family: sans-serif;
      position: relative;
      margin-top: 1px;
      display: block;
      text-decoration: none;
      text-align: center;
    }

    .accordion-subitem>a::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      width: 10px;
      background: #F4A460;         /*Маленькая полоса у подзаголовка цвет*/
    }
    
    .accordion-subitem a:hover,                    /*Заливка при наведении на подзаголовок*/
    .accordion-subitem a:focus {
      background: #d4d3d5;
    }
/*///////////////////////////////////////////////////////////////////////////////////////////////////*/
    .col__items {
      display: flex;
      flex-wrap: wrap;
      border: 1px solid red;
    }

    .col__item {
      display: flex;
      flex: 0 0 50%;
      align-items: flex-start;
      margin-bottom: 20px;
      border: 1px solid blue;
    }

    .col__item p{
       color: black;
       font-size: 16px;
    }

    .col__item:last-child {
      margin-bottom: 0;
    }

    .col__item>img {
      display: block;
      max-width: 100px;
      height: auto;
    }

    .col__item>div {
      padding-left: 10px;
    }
   /*/////////////////////////////////////////////////////////////////////////////////////////////*/
  @media screen and (max-width: 555px){
  .lesson{
   flex:0 0 100%;
  }
}
    
  .Books_number{
    font-size: 18px;
  }
  .numbers{
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  margin-left: -5px;  
}
 .numbers>div {
  padding: 5px 0 5px 0;
  margin:  10px 0 0 5px;
}

.baby{
  flex: 0 0 8%;
  border: 1px solid black;
  border-radius: 8px;
  text-align: center;
  background: #F0FFF0;
}
.baby a{
  text-decoration: none;
  color: black;
  display: block;
}
.baby:hover a{
  color: red;
}
.baby:hover{
  background: #FFE4E1;
}
h1{
  font-size: 28px;
  margin-bottom: 20px;
}
.Books_number>p{
  margin-bottom: 10px;
}
.lesson{
  font-size: 16px;
}

              
            
!

JS

              
                
              
            
!
999px

Console