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 @@ - - - - + Our different kitchens + +
@@ -95,30 +28,30 @@ img{
Modern appliances + alt="Modern appliances">
Modern appliances
-

Description of feature 1.

+

Modern appliances something something description.

Feature 2

industrial kitchen + alt="industrial kitchen">
Suitable for private and commmercial settings
-

Description of feature 2.

+

Restaurants kitchens something something.

Feature 3

food preparatoin + alt="food preparatoin">
Safe and efficient food preparation
-

Description of feature 3.

+

Food preparation something something.