Interactive Design | Project 2 - Website Redesign Prototype
|| 14/05/25 – 28/05/25
|| Tee Zi Tong, 0366165
|| Interactive Design
|| Project 2 - Website Redesign Prototype
Types of Selectors
Universal Selector (*
)
- Selects all elements on the page.
- Use with caution as it affects everything.
p
, div
, etc.)
- Targets HTML elements by tag name.
#id
)
- Selects a specific element with a unique ID.
.class
)
- Targets one or more elements with the same class.
.parent tag
)
- Selects elements inside another element.
parent > child
)
- Targets only direct children.
:hover
, :active
, etc.)
- Styles elements based on their state or position.
::before
, ::after
)
- Targets parts of elements like the beginning or end.
- Specificity: Allows fine control over which elements are styled.
- Structure: Helps in targeting deeply nested or sibling elements.
- Attribute-Based: Styles elements based on attributes (e.g.,
[type="text"]
). - Pseudo-classes/Elements: Style elements in specific states or parts.
- Responsive Design: Media queries apply styles based on screen/device.
- Stateful Interactions: Styles change based on user interactions (e.g., focus, click).
- Cross-Browser Compatibility: Ensures consistent behavior across browsers.
- Ease of Maintenance: Makes code cleaner and reusable.
- Accessibility: Enhances readability and usability for all users.
Display Property
Purpose: Controls how elements are rendered and laid out.
Common Display Types:
-
Block (e.g.,
<div>
): Starts on a new line and spans the full width. -
Inline (e.g.,
<span>
): Flows with text and does not start a new line. -
inline-block: Like inline, but allows width/height styling.
-
flex and grid: Used for complex, responsive layouts.
Customization: You can override default display behavior (e.g., make <li>
inline for horizontal menus).
Box Model
Every element is made up of four layers:
-
Content – The actual text/image.
-
Padding – Space around the content, inside the border.
-
Border – Surrounds padding and content.
-
Margin – Space outside the border, separating it from other elements.
Flexbox
Purpose: Build responsive layouts by distributing space and aligning items.
Key Parts:
-
Flex Container: Parent element with
display: flex
. -
Flex Items: Direct children of the container.
Core Properties:
-
flex-direction
: Row (default) or column layout. -
justify-content
: Aligns items horizontally (main axis). -
align-items
: Aligns items vertically (cross axis).
index.html
file, add a new column to the layout.Before getting started, I explored various beginner tutorials online to get more familiar with using Figma effectively. This helped me build a strong foundation and speed up my workflow for the project.
For the prototype redesign of my selected website, I planned and created five desktop pages, each designed at a 1280px width.
- Homepage
- Recipes
- About
- Teas
- Contact
Comments
Post a Comment