What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Use of a common css file for a 5 page website


New member
I currently have a website that has 5 pages. Each page has it's own css file approximately 4kb in size. They all have different layouts using flexboxes. I'd like to standardize text sizes, padding between elements, etc. by creating one css file which they all look at with individual sections for things like flexbox layouts for each page. Could I do this using id's with classes within the id's? Could I have common settings above the id's?

I tried creating one using all classes but it didn't work. Most pages didn't format correctly.

Thanks in advance for your input.

EDIT: Got them all included in one css file. Tested and working.
Last edited: