This project introduces basic concepts of CSS (Cascading Style Sheets). It builds upon the HTML structure from the previous project [html_basic
] and applies styling to improve the appearance of the web pages.
css_basic
inside the alx_html_css
repository.index.html
and tweets.html
from the html_basic
directory into the newly created css_basic
directory.styles.css
(empty file for custom styles)base.css
(contains base CSS rules for general styling)<head>
tag of both index.html
and tweets.html
:<link href="base.css" rel="stylesheet">
<link href="styles.css" rel="stylesheet">
This part of the project focuses on using CSS Flexbox to organize HTML page structure effectively. It enhances the visual layout of the webpage by arranging content using flexible containers and directional flows.
The following HTML structure was targeted for styling:
<body>
is the outermost container which holds all content, including:
<header>
<main>
(which itself contains <article>
and <aside>
)<footer>
This project is part of the ALX Frontend curriculum. The goal is to apply fundamental CSS concepts, including Flexbox layout and basic styling.
<body>
and <main>
as Flexbox containers.styles.css
:
display: flex
on <body>
and <main>
.flex-direction: column
on <body>
to stack <header>
, <main>
, and <footer>
.flex-direction: row
on <main>
to align <article>
and <aside>
side-by-side.flex: auto
on <main>
to allow it to grow and shrink as needed.flex: 2
on <article>
and flex: 1
on <aside>
to control width ratio (2:1).overflow-y: auto
on both <article>
and <aside>
to enable scrolling.styles.css
to include custom non-positioning styles such as:
<article>
tag as permitted.<header>
.class="logo"
to style it larger and distinct.<article>
.