CHROMATIC-SYSTEM v1.03_SIMPLE_SIDE_NAVIGATION_ENGINE

INFORMATION & CODE

Simple Side Navigation

What It Does

This code provides the foundational structure and styling for a retro-themed, two-column webpage layout featuring a vertical side navigation bar. At a glance, the HTML and CSS create a centered container divided into two distinct vertical sections: a dark-themed left column (.col-left) that houses a set of retro-styled text links (Home, About, Services, and Contact), and a right column (.col-right) meant to serve as the main content area. The aesthetic is heavily inspired by classic arcade games or early digital interfaces, utilizing pixel-art style Google Fonts ("Press Start 2P" and "VT323") and a bright green-on-dark-gray color scheme that changes to white when focused.

How It Works

The functionality of this snippet relies on a combination of semantic HTML5 structure and foundational CSS layout properties. In the HTML document, external resources such as a custom favicon, Google Fonts, and FontAwesome icons are loaded in the <head> to establish the visual theme. The body contains an outer wrapper holding a header box (.link_box) and a main container (.outer_page) split into left and right columns.

The CSS uses a global box-sizing: border-box rule to ensure padding and borders are included in element width and height calculations. The body is configured using Flexbox to center the entire interface vertically and horizontally within the browser window with a light gray background. The two columns utilize traditional float: left positioning, where the left column takes up 15% of the layout’s width with a dark gray background (#333), and the right column takes up the remaining 85% with a solid border. The navigation links (a.nav) are styled as block elements with custom positioning, a line-height that spaces them out vertically, and a vibrant green color (#0f0) that shifts to pure white (#fff) when the user tabs to or clicks on them.

How to Use It

To use this code, simply copy the HTML portion into a .html file (for example, index.html) and the CSS portion into a separate stylesheet (such as style.css), ensuring the stylesheet is linked in the HTML <head> if separated. Alternatively, you can place the CSS inside a <style> tag directly within the HTML document's head.

Once set up, you can customize the layout to fit your project:

  • Add Content: Insert your main text, images, or components inside the <div class="col-right"> to populate the primary content area of the page.
  • Update Links: Replace the href="#" placeholders in the navigation anchor tags with actual URLs or internal page anchors (e.g., #about, #contact).
  • Modify Styling: Adjust the width percentages of .col-left and .col-right if you want a wider or narrower side navigation, or change the color hex codes in the CSS to match your preferred color palette.

HTML

CSS