Last active
February 22, 2018 13:40
-
-
Save RinatValiullov/450a00e18a9fd889316954d421aeb6b5 to your computer and use it in GitHub Desktop.
Three responsive columns layout with css(not complete...)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Responsive layout(3 columns)</title> | |
</head> | |
<body> | |
<style> | |
body { | |
background-color: #adf; | |
margin: 0; | |
} | |
.cbox { | |
background-color: #f00; | |
list-style-type: none; | |
margin: auto; | |
padding-left: 0; | |
position: fixed; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
max-width: 33.4%; | |
} | |
.lbox { | |
background: #129; | |
margin: 0; | |
padding-left: 0; | |
position: fixed; | |
top: 0; | |
left: 0; | |
bottom: 0; | |
right: 0; | |
width: 33.3%; | |
} | |
.rbox { | |
background-color: #ea0; | |
margin: 0; | |
padding-left: 0; | |
position: fixed; | |
top: 0; | |
bottom: 0; | |
right: 0; | |
width: 33.3%; | |
} | |
</style> | |
<ul class="lbox"></ul> | |
<ul class="cbox"></ul> | |
<ul class="rbox"></ul> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment