diff --git a/responsive.css b/responsive.css new file mode 100644 index 0000000..8e6b7ab --- /dev/null +++ b/responsive.css @@ -0,0 +1,77 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: Arial, sans-serif; + line-height: 1.6; +} + +header { + background: #333; + color: #fff; + padding: 20px; + text-align: center; +} + +nav ul { + list-style: none; + padding: 0; +} + +nav ul li { + display: inline; + margin-right: 10px; +} + +nav ul li a { + color: #fff; + text-decoration: none; +} + +.intro { + text-align: center; + padding: 40px; + background: #f4f4f4; +} + + +.features { + display: flex; + @media (max-width: 600px) { + flex-direction: column; + } + justify-content: space-around; + align-items: stretch; + padding: 20px; + gap: 20px; +} + +.feature-item { + background: #fff; + flex: 1; + padding: 20px; + border: 1px solid #ddd; + width: 30%; + @media (max-width: 600px) { + width: 100%; + } +} + +footer { + text-align: center; + padding: 20px; + background: #333; + color: #fff; +} + +img { + width: 100%; +} + +figcaption { + font-size: 0.75em; +} + diff --git a/responsive.html b/responsive.html index abd3f33..e9f0150 100644 --- a/responsive.html +++ b/responsive.html @@ -1,76 +1,9 @@
- - - - +
+ alt="Modern appliances">
Description of feature 1.
+Modern appliances something something description.
+ alt="industrial kitchen">
Description of feature 2.
+Restaurants kitchens something something.
+ alt="food preparatoin">
Description of feature 3.
+Food preparation something something.