File tree Expand file tree Collapse file tree
02.HTML-&-CSS-Mini-Course/02.Introduction-To-CSS/03-book-story Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < title > The Book Story</ title >
6+ < link rel ="stylesheet " href ="style.css ">
7+ </ head >
8+ < body >
9+
10+ < div class ="book-box ">
11+ < h1 > The Story in the Book</ h1 >
12+ < h2 > Chapter 1</ h2 >
13+ < p >
14+ It was a cold and rainy evening. The wind whispered through the trees as the old man opened the dusty book.
15+ Within its pages lay a tale long forgotten, waiting to be read once more...
16+ </ p >
17+ </ div >
18+
19+ </ body >
20+ </ html >
Original file line number Diff line number Diff line change 1+ body {
2+ margin : 0 ;
3+ font-family : Georgia, serif;
4+ background-color : # 007BFF ; /* син фон */
5+ color : # 000 ;
6+ display : flex;
7+ justify-content : center;
8+ align-items : center;
9+ height : 100vh ;
10+ }
11+
12+ .book-container {
13+ background-color : # ffffff ;
14+ padding : 30px ;
15+ border-radius : 8px ;
16+ width : 400px ;
17+ box-shadow : 0 4px 12px rgba (0 , 0 , 0 , 0.2 );
18+ }
19+
20+ .book-container h1 {
21+ font-size : 24px ;
22+ margin-bottom : 10px ;
23+ }
24+
25+ .book-container h2 {
26+ font-size : 18px ;
27+ margin-bottom : 15px ;
28+ color : # 333 ;
29+ }
30+
31+ .book-container p {
32+ font-size : 14px ;
33+ line-height : 1.6 ;
34+ color : # 444 ;
35+ }
You can’t perform that action at this time.
0 commit comments