Check out this CSS + form example that resembles the layout of outlook.com!

I am in need of assistance with creating a CSS class that can replicate the design seen on Outlook.com's login page. Does anyone have any sample code or examples they could provide?

The layout I am trying to achieve involves a centralized page split into two halves. The left half will display an image, while the right half will contain the login fields.

Answer №1

After skimming through the Outlook website, I couldn't help but feel nauseated when peeking at the source code Outlook.com:

Their CSS leaves much to be desired... take a look for yourself.

In my opinion, creating a dual-column page with set pixel widths (absolute values) seems like a feasible approach. By assigning a class of column width in pixels to two separate sections—one displaying an image and the other showcasing login details/everything else—you can ensure that if the page is resized, they will stack vertically, ensuring smooth degradation.

You could potentially align an image and a login box without relying on CSS by configuring the login box to be centered with the image. However, this workaround is inefficient and involves using outdated code.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

A guide on traversing a HTML table and cycling through its contents with JavaScript

I'm currently in the process of constructing a grid with 20 rows and 20 columns of squares, but I am encountering difficulties with looping through table values to effectively create the grid. For more detailed information on the html code, please se ...

How can I create a single button to toggle the opening and closing of a div using this jquery code?

$(document).ready(function(){ $('#content1').hide(); $('a#openClose').click(function(){ if ($('#content1').is(':visible')) { $('#content1').hide(&apos ...

Is there a way for me to transition a grid from 4x3 to 3x4 at a specific breakpoint in the media query?

I am currently working on creating a responsive grid layout. Initially, the grid is set up as a 4x3 configuration, but once the screen width reaches 720px, I need it to convert into a 3x4 grid. The challenge is that I must accomplish this using only HTML a ...

I'm noticing that when I refresh the page, my inputs seem to disappear from the page, yet I can see that they are saved in the console's local

If anyone can help me with this issue I'm facing, I would greatly appreciate it. My aim is to retain values in the text box along with local storage even after refreshing the page. Here is an example of the code I am working with: Link to my web appl ...

What is the best way to click within a web browser control?

I'm attempting to automate the process of clicking a specific div id button using vb.net. I have integrated a webbrowser for this purpose, and here is my current code snippet. The goal is to click the 'Do Job' button on the website through v ...

I am struggling to close the horizontal space between two flex items in a row

I'm currently working on a web page design and I'm facing an issue with trying to align a clip-art image and its description in a row using flex. Despite using justify-content to adjust the spacing, there seems to be a persistent gap between the ...

A guide on applying color from an API response to the border-color property in an Angular application

When I fetch categoryColor from the API Response, I set border-left: 3px solid {{element.categoryColor}} in inline style. Everything is functioning correctly with no development issues; however, in Visual Studio, the file name appears red as shown in the i ...

Using CSS to Identify When an Element is Being Grabbed, Dragged, or Moved

Is it possible to detect mouse grabs in addition to changing the cursor on hover? For example, try dragging the items in the following code snippet. The goal is to change the cursor to cursor: move if an element is being moved. <script src="https:// ...

Dropdown search menus are failing to appear in the correct location

I have 4 dependent search dropdown menus side by side. There are two issues I am facing: Whenever I type in any of the drop-down menus, the MySQL-connected lists appear but not directly beneath the actual 'input-type-search-box'. Additional ...

The React sidebar expanded to cover the entire screen width

As I work on creating a dashboard page that will display a sidebar after the user logs in, I am facing an issue where the sidebar is taking up the full width of the page, causing my Dashboard component to drop to the bottom. You can view the image link of ...

Changing the color of your device's background

I am experiencing difficulty in altering the background color of my popular posts widget on my website. Upon investigation, I discovered that the issue is associated with my sticky navigation menu. The background of my sticky navigation menu is black, and ...

What could be causing jQuery animate to malfunction on mobile devices when a viewport is present?

Everything seems to be working fine on my desktop webpage, but when I try it on mobile, there is no scroll... $("HTML, BODY").animate({ scrollTop: 500 }, 1000); This post suggests that mobile devices may not scroll on the body, but on the vi ...

When attempting to add a new row to a table, the function fails to function properly

I am facing an issue with my dynamic HTML table. Each row in the table should have two cells whose values are multiplied together. I have created a function to achieve this, but it only works on the first row of the table and not on any new rows added by c ...

What is the best way to transfer information from Swift to JavaScript and showcase it in a web view?

I am currently developing an iOS hybrid app using Swift 2 and HTML/JavaScript. My app has a native shell that retrieves information from the calendar and GPS. I want to display this information in my WKWebView and update it every second. The challenge lies ...

Tips for aligning spin.js spinner in the center of a bootstrap 3 modal?

I'm attempting to showcase and center the spin.js spinner within a Bootstrap 3 modal. Despite successful implementation in IE and FF using the code below, I am encountering issues in Chrome, Safari Desktop, Chrome IOS, Safari IOS. The problem appears ...

Error encountered with the item properties in vue-simple-calendar 'classes'

For my Vue.js project, I am utilizing the npm calendar package called `vue-simple-calendar` and aiming to implement dynamic classes for each event item like background-color, etc. However, the `classes` property doesn't seem to be functioning as expec ...

Excessive Header Length Exceeding Page Limit

I've been struggling to pinpoint the reason why my page is displaying with a longer header than the actual page length. Even after adjusting the header size to be less than 100%, there is still excess white space overflowing beyond the edge of the pag ...

Utilizing JQuery within dynamically loaded files through JQuery tab functionality

My initiation into the world of JQuery tabs has begun. I have a basic setup where clicking on a tab loads 3 different PHP files. <div id="info"> <ul id="info-nav"> <li><a href="tab1.php">Tab 1</a></li> ...

"My drop down button menus and background image seem to be experiencing some technical difficulties. Can someone help

I'm having trouble getting a drop-down menu to work with a reptile image as the background. When I remove the image, the drop-down works fine. I've checked for errors but can't seem to find any. Is it an issue with the code or maybe a typing ...

Hover Link Overlay [CSS / HTML] - An Alternative Style for Link Interaction

I'm having trouble making an image clickable within a hover effect overlay that displays text and a link. I attempted to turn the overlay into a link, but it wasn't successful. http://jsfiddle.net/cno63gny/ Please disregard the placeholder text ...