Adding Styles and Fonts to Your Page
Task
1. You are provided with the base HTML code for the login form, which has the content and input fields shown in the following figure.

Take this code and extend it to use an external style sheet called loginstyles.css
2. Add to the loginstyles.css file, styling rules that implement the following features:
- We will be using border-box sizing forthe entire page, along with a margin of 0 and the sansserif font (or you can replace it with something of your choice).
- Use a flex display container (with wrapping) to hold two content items (a background image on the left, and a login box on the right). In addition, make the flex container height equal to the size of the window (i.e., using the measure 100vh )
- The two flex content items (left and right) should be of size 50%
- The left flex content item holds the background image (your selection) and ensures it is sized and positioned to cover the entire flex box and is centred (thus, when you resize the window, the background image also stays centred in the flex box).
- The right flex content item holds the login box and should have a background colour applied to it (e.g., rgb(218, 234, 250) in the screenshot above)
- Use a nested flex container to hold the login box. As with the out-flex container, set the display to flex, enable wrap, and set the min-height to 100vh.
- To align the login box properly in the centre of the right-side pane, set the align-items and justify-content properties appropriately. You can also enforce the centre alignment of the text here.
- The styling of the login box (the login-box class) should set the width to 250px, background colour to white, add some padding, round the borders, and apply a drop shadow.
- For the input group and labels (e.g., .input-group .input-group label ), apply margin spacing to improve the appearance of the login box.
- For the input fields themselves (i.e., .input-group input ), set the width to be the full size of the box, add padding, and a border.
Next, for the button, set its width to be the full size of the box, add padding, and round the corners (in relation to the input fields above). Set the colour of the text to white. Also, set the background colour to something unique.
Finally, add styling for the hover event to the button, such that it changes the background colour to a different (darker) colour and adds a shadow effect to indicate it is about to be pressed.
Bootstrap Content Page
Task
In this task, you are required to create a web page that resembles the one below. You are welcome to find and use your content; this is shown as a reference. The page is composed of 6 sections:
- A navigation area with hyperlinks to key sections in the webpage
- A heading section using a div block that holds a container
- A section with three thumbnail images in a row
- A section with two images, with some associated text and styling, spread across two rows
- An example table with styling applied, containing some text/information
- A simple footer section.
Summary of Assessment Requirements
The assessment required students to demonstrate their understanding of HTML and CSS styling techniques by completing two key tasks:
Task 1: Adding Styles and Fonts to a Login Page
Students were provided with the base HTML code for a login form and were required to:
- Link the HTML page to an external CSS file (loginstyles.css).
- Apply CSS styling rules to enhance the layout and design using flexbox for structure.
- Divide the screen into two equal sections (50%-50%) one with a background image and another containing the login box.
- Ensure responsive design by using 100vh height and properly centered alignment using flexbox properties (align-items and justify-content).
- Style the login box with padding, rounded corners, shadows, and appropriate input field spacing.
- Add styling for hover effects on the login button to make it interactive and visually appealing.
Task 2: Bootstrap Content Page
In the second task, students were required to create a web page using Bootstrap, structured into six sections:
- A navigation bar with hyperlinks to key sections.
- A main heading section within a container.
- A thumbnail image section with three images in a row.
- A two-row layout section combining images and descriptive text.
- A styled table with meaningful data.
- A footer section with simple text styling.
The focus was on using Bootstrap’s grid system, responsive design principles, and consistent styling to create a modern, user-friendly webpage.
Academic Mentor’s Step-by-Step Guidance Approach
The academic mentor guided the student through each stage systematically to ensure conceptual clarity and practical application.
Step 1: Understanding the Task Requirements
The mentor began by explaining both tasks in detail emphasizing the purpose of using external stylesheets and Bootstrap frameworks. The student was encouraged to visualize the page layout before coding to plan element placement effectively.
Step 2: Structuring the HTML Base
The mentor reviewed the given HTML structure and ensured the student understood how to organize elements semantically. The importance of linking the loginstyles.css file correctly and using consistent class names for styling was highlighted.
Step 3: Implementing Flexbox Design for the Login Page
The mentor demonstrated how to:
- Define a flex container for layout distribution.
- Assign equal width to both content areas (left image and right login box).
- Use CSS properties such as display: flex, flex-wrap, and align-items: center to ensure responsiveness.
This hands-on guidance helped the student understand how to manage alignment, spacing, and proportionality in modern web layouts.
Step 4: Styling Elements for Aesthetic Appeal
Once the layout was established, the mentor guided the student to enhance visual presentation by:
- Applying consistent fonts and color schemes.
- Using CSS properties like border-radius, box-shadow, and hover effects for interactive elements.
- Refining input field spacing and button responsiveness to ensure usability and accessibility.
Step 5: Creating and Structuring the Bootstrap Page
The mentor then shifted focus to the Bootstrap task:
- Demonstrating how to use Bootstrap’s grid system (rows and columns) to organize content.
- Integrating navigation bars, image cards, and responsive tables using Bootstrap classes.
- Ensuring that all six sections flowed cohesively with visual balance and hierarchy.
Step 6: Testing and Refinement
Finally, the mentor guided the student to preview the web pages, test responsiveness across different screen sizes, and adjust margins, padding, or text alignment as needed. This step reinforced the importance of iterative testing and design optimization in professional web development.
Final Outcome and Learning Objectives Covered
By the end of the guided process, the student successfully:
- Developed two fully functional and aesthetically designed web pages a styled login page and a Bootstrap-based content page.
- Gained a strong understanding of CSS layout principles, flexbox alignment, and responsive web design.
- Learned to apply Bootstrap components and grid systems effectively.
- Understood how styling and structure contribute to user experience.
- Enhanced technical proficiency in HTML, CSS, and Bootstrap frameworks, aligning with the assessment’s learning objectives.
Get Inspired But Submit Your Own Work
Looking to understand how to approach this type of assignment? You can download this sample solution to see how experts structure, research, and reference academic work effectively.
However, please note that this sample is provided strictly for reference and learning purposes only. Submitting it as your own work may result in plagiarism penalties under your institution’s academic integrity policies.
If you need a fresh, custom-written solution that is completely original and plagiarism-free, our team of professional academic writers can craft it according to your specific requirements, rubric, and deadlines. Each solution is thoroughly researched, correctly referenced, and checked using advanced plagiarism detection tools so you can submit with confidence.
Why Choose a Fresh Custom Solution?
- 100% original and plagiarism-free content
- Tailored to your assignment question and guidelines
- Written by subject-matter academic experts
- Properly referenced and formatted
- Delivered before your deadline
Download Sample Solution Order Fresh Assignment