INTERACTIVE DESIGN/ PROJECT 2
Week 6-Week 9
LIM CHAEHWAN (0363792)
Interactive Design / Bachelor of Design (Hons) in Creative Media/ Taylor's University
INTERACTIVE DESIGN/ PROJECT 2
INTRODUCTIONS
LECTURES
Week 6
CSS selectors
CSS selectors are essential for styling HTML elements. Here's a summary:
Universal Selector: Targets all elements with '*'. Use cautiously due to its broad impact.
css* { /* CSS styles go here */ }
Element Selector: Targets elements by tag name.
cssp { /* CSS styles go here */ }
ID Selector: Targets an element with a specific ID.
css#my-element { /* CSS styles go here */ }
Class Selector: Targets elements with a specific class.
css.my-class { /* CSS styles go here */ }
Descendant Selector: Selects a descendant of another element.
css.container a { /* CSS styles go here */ }
Child Selector: Selects direct children of another element.
cssul > li { /* CSS styles go here */ }
Pseudo-class Selector: Selects based on state or position.
cssa:hover { /* CSS styles go here */ }
Pseudo-element Selector: Selects parts of an element.
cssp::before { /* CSS styles go here */ }
These selectors provide flexibility and precision in styling HTML elements based on various criteria.
Display Property
Block-level element
- Examples:
<div>
, <p>
, <h1>
, <form>
. - Starts on a new line and takes up the full width available.
display: block;
is the default display property.
CSSdiv {
display: block;
}
<div>
, <p>
, <h1>
, <form>
.display: block;
is the default display property.div {
display: block;
}
Inline Element
- Examples:
<span>
, <a>
, <strong>
. - Flows within the content and does not start on a new line.
display: inline;
is the default display property.
CSSspan {
display: inline;
}
<span>
, <a>
, <strong>
.display: inline;
is the default display property.span {
display: inline;
}
Inline-Block
- Combines features of both block and inline elements.
- Elements are placed inline, but you can set width and height values.
CSS.inline-block {
display: inline-block;
width: 100px;
height: 50px;
}
.inline-block {
display: inline-block;
width: 100px;
height: 50px;
}
Flex
- Introduces a flexible box container.
- Allows elements within it to be flex items.
- Great for building responsive layouts.
CSS.flex-container {
display: flex;
}
.flex-container {
display: flex;
}
Grid
- Introduces a two-dimensional grid system.
- Items can be placed in specific rows and columns.
- Powerful for complex layouts.
CSS.grid-container {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
}
.grid-container {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
}
PROJECT 2
Project 2 creates a working website that closely matches the prototypes created in Project 1.
Review Project 1's static prototypes and analyze layout, typography, color composition, and images.
Use HTML and CSS to convert design elements into code to ensure a faithful representation of the original prototype.
We aim for full pixel precision while maintaining responsive design principles to ensure compatibility across a wide range of devices and screen sizes.

FEEDBACKWeek7: I'll send you Html examples, so take a look at them, study them well, and refer to them.
Observation: The transition from prototype to code revealed aspects of web development that were previously unfamiliar. Through the process, we were able to identify the ignorance and seek clarification through questions. The documents in my e-portfolio not only captured the technical aspects, but also highlighted the importance of a systematic approach to problem solving. This experience highlighted the repetitive nature of the development, emphasizing the need for adaptability and resilience.
Comments
Post a Comment