1+ * {
12
2- /* We are using the 'Roboto' font from Google. This has already been added to your HTML header */
3-
4- body {
5- font-family : 'Roboto' , sans-serif;
6- -webkit- font-smoothing : antialiased ;
3+ margin : 0 ;
4+ padding : 0 ;
5+ }
6+ body {
7+ font-family : Georgia , 'Times New Roman' , Times , serif ;
78}
9+ header {
10+ width : 90% ;
11+ height : 90px ;
12+ margin : auto;
13+ }
14+ # headerSvg {
15+ position : relative;
16+ top : 40px ;
17+ left : 80px ;
818
9- /**
10- * Add your custom styles below
11- *
12- * Remember:
13- * - Be organised, use comments and separate your styles into meaningful chunks
14- * for example: General styles, Navigation styles, Hero styles, Footer etc.
15- *
16- * - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex'
17- */
18- ul {
19+ }
20+ ul {
1921 display : flex;
20- flex-direction : row;
2122 justify-content : space-around;
23+ align-items : center;
2224 margin-left : 550px ;
25+ font-size : 1.5em ;
2326 margin-right : 150px ;
24-
27+ border-radius : .5em ;
28+
29+ }
30+ li {
31+ list-style : none;
32+ padding : 4px ;
33+ color : black;
34+ width : 160px ;
35+ height : 50px ;
36+ margin : 0px 10px ;
37+ border-radius : .5em ;
38+ text-align : center;
2539 }
2640 a : hover {
2741 background-color : rgb (255 , 217 , 0 );
@@ -30,37 +44,95 @@ body {
3044.main-class {
3145background-image : url ("../img/first-background.jpg" );
3246background-repeat : no-repeat;
33- width : 100% ;
47+ width : 80% ;
48+ border-radius : .5em ;
49+ margin : auto;
3450height : 700px ;
51+ position : relative;
52+ top : 10px ;
3553}
3654# id1 {
3755display : block ;
3856text-align : center;
3957color : white;
4058padding : 100px ;
59+ font-size : 1.5em ;
60+
61+ }# id1 button {
62+ width : 100px ;
63+ height : 50px ;
64+ background-color : rgba (156 , 122 , 3 , 0.97 );
65+ border-radius : 1em ;
66+ color : blanchedalmond;
67+ margin : 30px ;
68+ border : none;
69+ }.section1 {
70+ margin : auto;
71+ font-size : 1.5em ;
72+ margin-top : 150px ;
4173}
4274.section1 : first-child {
4375 text-align : center;
44- }
45- .section1 {
46- margin-top : 150px ;
47-
76+ margin : 30px ;
4877}
4978.div-main {
50- display : grid;
51- grid-template-columns : auto auto auto;
52- text-align : center ;
79+ display : flex;
80+ justify-content : space-around;
81+ align-items : center;
82+
5383}
5484.section2 {
55- margin-top : 150px ;
85+ margin : 150px 15px ;
86+ font-size : 1.4em ;
5687}
5788.section2 : first-child {
5889 text-align : center;
90+ margin : 10px ;
5991}
6092.section2 : last-child {
6193 text-align : center;
6294}
6395# div2 {
6496 display : flex;
65- justify-content : center;
97+ align-items : center;
98+ justify-content : center;
99+ }
100+ @media screen and (max-width : 440px ) {
101+ header {
102+ height : 200px ;
103+ background-color : brown;
104+ display : flex;
105+ align-items : center;
106+ flex-direction : column;
107+
108+ } header ul a {
109+ display : inline;
110+ margin-top : 100px ;
111+ left : 50px ;
112+ width : 400px ;
113+ height : 200px ;
114+ border-radius : .5em ;
115+ background-color : blue;
116+
117+ } a {
118+ list-style : none;
119+ width : 100px ;
120+ height : 50px ;
121+ background-color : rgba (156 , 122 , 3 , 0.97 );
122+ }
123+ }
124+ @media screen and (max-width : 440px ) {
125+ .div-main {
126+ display : flex;
127+ align-items : center;
128+ flex-direction : column;
129+ background-color : aqua;
130+ }
131+ }@media screen and (max-width : 440px ) {
132+ .section2 {
133+ display : flex;
134+ align-items : center;
135+ flex-direction : column;
136+ background-color : aqua;
137+ }
66138}
0 commit comments