Hello, I am trying to add a floating image into the middle column below the text. I can someone look at the provided HTML code along with the CSS sheet I have provided to figure out how to get a floating image into it. Thank you!         Flexbox Coding                                                                                             Link to Page 1                     Link to Page 2                                         An country demesne message it. Bachelor domestic extended doubtful as concerns at. Morning prudent removal an letters by. On could my in order never it. Or excited certain sixteen it to parties colonel. Depending conveying direction has led immediate. Law gate her well bed life feet seen rent. On nature or no except it sussex.                         Warmly little before cousin sussex entire men set. Blessing it ladyship on sensible judgment settling outweigh. Worse linen an of civil jokes leave offer. Parties all clothes removal cheered calling prudent her. And residence for met the estimable disposing. Mean if he they been no hold mr. Is at much do made took held help. Latter person am secure of estate genius at.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Hello, I am trying to add a floating image into the middle column below the text. I can someone look at the provided HTML code along with the CSS sheet I have provided to figure out how to get a floating image into it. Thank you!

<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title>Flexbox Coding</title>
</head>
    <link rel="stylesheet" href="Style.css">

    <body>
        <header class="header-image">
            <img src="57mBcYi.jpeg" alt="Header Image">
        </header>

        <div class="flex-container">
            <div>
                <ul>
                    <li><a href="Page1.html">Link to Page 1</a></li>
                    <li><a href="Page2.html">Link to Page 2</a></li>
                </ul>
            </div>
            <div>An country demesne message it. Bachelor domestic extended doubtful as concerns at. Morning prudent removal an letters by. On could my in order never it. Or excited certain sixteen it to parties colonel. Depending conveying direction has led immediate. Law gate her well bed life feet seen rent. On nature or no except it sussex.
            <img src="OIP.jpg" alt="Lego Star Wars"></div>
            <div>Warmly little before cousin sussex entire men set. Blessing it ladyship on sensible judgment settling outweigh. Worse linen an of civil jokes leave offer. Parties all clothes removal cheered calling prudent her. And residence for met the estimable disposing. Mean if he they been no hold mr. Is at much do made took held help. Latter person am secure of estate genius at.</div>
        </div>

        <footer class="footer-image">
            <img src="banner.jpg" alt="Footer Image">
        </footer>

    </body>
</html>

This image displays a CSS stylesheet (Style.css) intended for styling a web page. Below is a transcription of the code, which is instrumental in designing the layout and appearance of the page's elements.

### CSS Code:

```css
body {
    background-color: black;
}

.flex-container {
    display: flex;
}

.flex-container > div {
    background-color: white;
    width: 50%;
    margin: 10px;
    padding: 10px;
    font-size: 30px;
}

.header-image {
    width: 100%;
    height: auto;
}

.footer {
    text-align: center;
    background-color: #f0f0f0;
    padding: 20px;
}

.footer img {
    width: 100%;
    height: auto;
}
```

### Detailed Explanation:

- **Body**: Sets the background color of the entire webpage to black.

- **Flex Container**: Utilizes the `display: flex;` property to create a flexible layout. This allows for easy alignment and distribution of space among items in the container.

- **Flex Container > Div**: 
  - Background is white, providing contrast against the black body.
  - Occupies 50% of the container’s width, with margins and padding ensuring spacing.
  - Font size is set to 30 pixels for clear readability.

- **Header Image**: Ensures that the header image spans the full width of the page and scales its height proportionately (auto).

- **Footer**:
  - Text is centered within the footer area.
  - Background color of the footer is a light grey (`#f0f0f0`).
  - Padding is set to 20 pixels for comfortable spacing around the text.

- **Footer Image**: Similar to the header image, it spans the full width of the footer and maintains its aspect ratio with `height: auto`. 

This stylesheet is effective for basic page layout, focusing on a clean and straightforward design that enhances content accessibility.
Transcribed Image Text:This image displays a CSS stylesheet (Style.css) intended for styling a web page. Below is a transcription of the code, which is instrumental in designing the layout and appearance of the page's elements. ### CSS Code: ```css body { background-color: black; } .flex-container { display: flex; } .flex-container > div { background-color: white; width: 50%; margin: 10px; padding: 10px; font-size: 30px; } .header-image { width: 100%; height: auto; } .footer { text-align: center; background-color: #f0f0f0; padding: 20px; } .footer img { width: 100%; height: auto; } ``` ### Detailed Explanation: - **Body**: Sets the background color of the entire webpage to black. - **Flex Container**: Utilizes the `display: flex;` property to create a flexible layout. This allows for easy alignment and distribution of space among items in the container. - **Flex Container > Div**: - Background is white, providing contrast against the black body. - Occupies 50% of the container’s width, with margins and padding ensuring spacing. - Font size is set to 30 pixels for clear readability. - **Header Image**: Ensures that the header image spans the full width of the page and scales its height proportionately (auto). - **Footer**: - Text is centered within the footer area. - Background color of the footer is a light grey (`#f0f0f0`). - Padding is set to 20 pixels for comfortable spacing around the text. - **Footer Image**: Similar to the header image, it spans the full width of the footer and maintains its aspect ratio with `height: auto`. This stylesheet is effective for basic page layout, focusing on a clean and straightforward design that enhances content accessibility.
**Educational Website Content**

---

### Navigation Links
- [Link to Page 1](#)
- [Link to Page 2](#)

---

### Content Section

**Text Box 1:**

"An country demesne message it. Bachelor domestic extended doubtful as concerns at. Morning prudent removal an letters by. On could my in order never it. Or excited certain sixteen it to parties colonel. Depending conveying direction has led immediate. Law gate her well bed life feet seen rent. On nature or no except it sussex."

**Text Box 2:**

"Warmly little before cousin sussex entire men set. Blessing it ladyship on sensible judgment settling outweigh. Worse linen an of civil jokes leave offer. Parties all clothes removal cheered calling prudent her. And residence for met the estimable disposing. Mean if he they been no hold mr. Is at much do made took held help. Latter person am secure of estate genius at."

---

### Visual Description

**Image at the Top:**
The image features LEGO stormtroopers on a desert-like landscape with a large creature under them. Above them in the sky, there are several large spherical structures resembling a LEGO Death Star from "Star Wars."

**Image at the Bottom:**
This image shows LEGO characters holding lightsabers, resembling a scene from "Star Wars," set against a starry outer space background.

---
Transcribed Image Text:**Educational Website Content** --- ### Navigation Links - [Link to Page 1](#) - [Link to Page 2](#) --- ### Content Section **Text Box 1:** "An country demesne message it. Bachelor domestic extended doubtful as concerns at. Morning prudent removal an letters by. On could my in order never it. Or excited certain sixteen it to parties colonel. Depending conveying direction has led immediate. Law gate her well bed life feet seen rent. On nature or no except it sussex." **Text Box 2:** "Warmly little before cousin sussex entire men set. Blessing it ladyship on sensible judgment settling outweigh. Worse linen an of civil jokes leave offer. Parties all clothes removal cheered calling prudent her. And residence for met the estimable disposing. Mean if he they been no hold mr. Is at much do made took held help. Latter person am secure of estate genius at." --- ### Visual Description **Image at the Top:** The image features LEGO stormtroopers on a desert-like landscape with a large creature under them. Above them in the sky, there are several large spherical structures resembling a LEGO Death Star from "Star Wars." **Image at the Bottom:** This image shows LEGO characters holding lightsabers, resembling a scene from "Star Wars," set against a starry outer space background. ---
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Designing elements of Web Page
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education