Skip to content

About

A modern approach to styling elements based on the size of their container

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

54 Commits

Folders and files

Repository files navigation

Responsive Components

A working implementation of the strategy outlined in the article Responsive Components: a Solution to the Container Queries Problem

View Site

Viewing the Site Locally

The Responsive Components site can be built with Node.js. If you have Node.js installed on your system, you can run the following commands to build and serve a local version.

# Clone the git repository and cd into the cloned directory.
git clone https://github.com/philipwalton/responsive-components.git
cd responsive-components

# Install the dependencies
npm install

# Build and serve the site at http://localhost:8080
npm start

This starts up a local server on port 8080. To view the site in your browser, navigate to http://localhost:8080.

In addition to building the site and serving it locally, this will also listen for any changes and rebuild the site as needed. This allows you to play around with the code, refresh the browser, and see your changes instantly.

About

A modern approach to styling elements based on the size of their container

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages