Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed (UPI) Chapter 9: Responsive Web Design!
You have completed (UPI) Chapter 9: Responsive Web Design!
Instruction
Implementing Fluid Design in CSS
Letβs look at how to create a fluid two-column layout in CSS:
/* CSS for the Fluid Layout */
body {
width: 90%; /* The body width adapts to 90% of the screen */
margin: 0 auto; /* Centers the page on the screen */
}
header, footer {
width: 100%; /* Header and footer span the entire width of the page */
}
.main-content {
width: 62.5%; /* Main content takes up 62.5% of the page */...