Skip to content

Commit a6a9479

Browse files
made footer responsive with column layout
1 parent a3876f8 commit a6a9479

File tree

1 file changed

+30
-12
lines changed

1 file changed

+30
-12
lines changed

css/style.css

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1860,17 +1860,35 @@ input{
18601860
color: white;
18611861
}
18621862

1863-
@media ( max-width :377px){
1864-
#footer .flex-container .subscribe .submit{
1865-
width: 75%;
1863+
@media ( max-width : 420px){
1864+
.flex-container{
1865+
display: flex;
1866+
flex-direction: column;
1867+
flex-wrap: wrap;
1868+
width: 92%;
1869+
margin-left: auto;
1870+
margin-right: auto;
1871+
padding-top: 40px;
1872+
padding-bottom: 10px;
18661873
}
1867-
}
1868-
/* width of submit button increased to make it responsive*/
1869-
@media ( max-width :377px){
1870-
#footer .flex-container .about p{
1871-
font-size: 12px;
1872-
text-align: left;
1873-
color: #828282;
1874+
.flex-container .about{
1875+
width: 92%;
1876+
margin: 10px auto;
1877+
text-align: center;
1878+
line-height: 24px;
1879+
font-size: 20px;
18741880
}
1875-
}
1876-
/* font size reduced of <p> tag of about section of footer to make it responsive*/
1881+
.flex-container .links{
1882+
width: 92%;
1883+
margin: 10px auto;
1884+
line-height: 24px;
1885+
font-size: 20px;
1886+
}
1887+
.flex-container .subscribe{
1888+
width: 92%;
1889+
margin: 10px auto;
1890+
text-align: center;
1891+
line-height: 24px;
1892+
font-size: 20px;
1893+
}
1894+
}

0 commit comments

Comments
 (0)