Code Monkey home page Code Monkey logo

apparel-layout's Introduction

Apparel Online Store

Code Review Week 1 CSS 11/17/17

By Sailor Winkelman

Description

This webpage displays a clothing item for sale in an online store. It includes a summary of the item's features, a large image of the item, thumbnail images of different views of the item, a table to help the user determine their size, and a caption.

Setup

Clone this repository.

Open the index.html in a web browser.

Technologies Used:

HTML CSS

Elements Used:

Term Description Implementation
box-sizing:border-box This property tells the browser to include the size of borders on elements in the total width and height of each element it is applied to. I gave a border-box box-sizing property to container elements in my stylesheet, in order to make sizing the containers easier to calculate (because I did not have to take border sizes into account.)
Float Float takes an element out of the normal flow and aligns it with an area of the page (Ex. float:left; aligns the element with the left side of the page.) I used floats to make a left and right content area of the page, and to align the images within the content area. I also used floats to position elements in the navigation.
display:block; HTML elements have default display properties that place them either on the same line or a new line as other elements. Display:block makes an element occupy it's own line like a block level element. I used display:block on elements to make them block-level instead of on the same line. These are the links in the right column.
display:inline; HTML elements have default display properties that place them either on the same line or a new line as other elements. Display:inline makes an element sit on the same line as other elements instead of being block-level I used display:inline to make the unordered list of site links in the left column display in a line.
Centered Content There are a few different ways to use CSS to center content on the page. One way this project centers content is by using the display:table-cell and vertical-align:middle properties on the div with the class "center" to create an equal space above and below the content in the right column.
Psuedo-Element Psuedo-Elements allow you to place content before and after elements in your HTML using CSS. In this project, I used li:after to add space between in line list items.
Psuedo-class Psuedo-classes target elements in a specified state, such as when the mouse cursor is hovering over a place on the page I applied a hover psuedo-class to the div containting the main image on my product page, and set it to display the image at 200% mouse cursor hovers over the image.
Clear-fix Clear fixes allow you to clear the effects of nearby floated elements from an element. I used a clear:both to allow the footer to not float left with the two columns abovr it on the page.
Positional Selector Positional selectors allow you to specify an indivual element to select based on the order it appears in relation to it's parent. I used the ":first-child" selector to target the first row in the size chart table with my CSS
Selector Combinator Descendant selectors are selector combinators that let you specify descendents of an element. You can also select children (<), adjacent siblings (+), and general siblings (~). I use the space combinator in my CSS to target elements inside of divs with ids and classes.
## Legal Copyright (c) 2017 Sailor Winkelman

apparel-layout's People

Contributors

sailor27 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.