when to create new style sheet?

Got a question for your instructor or classmates? Found a neat technique you want to share? Post 'em here.
Post Reply
User avatar
zelouzelou
Posts: 63
Joined: Mon Aug 29, 2011 7:22 pm

when to create new style sheet?

Post by zelouzelou »

help!
So I'm making another page where the links to my project 1 site needs/analysis and style guide will reside. Does this page need a new style sheet or can I just link it to the "layout.css" style sheet that I used for the homepage?

Thanks!
Kathyleen Bullard

User avatar
smith206
Posts: 100
Joined: Mon Aug 29, 2011 6:00 pm

Re: when to create new style sheet?

Post by smith206 »

Linking a style sheet to multiple pages is the main idea behind css. So yeah if you want everything to be styled the same as your other page then linking it to the original is best. Problems only arise if you start changing things because it will "cascade" down to every page it is linked to.
Kyle Smith

User avatar
Instructor
Site Admin
Posts: 1869
Joined: Thu Jul 21, 2011 8:51 am

Re: when to create new style sheet?

Post by Instructor »

Kyle is exactly right. Stylesheet reuse allows you to only have to lay out a page once and then build from there.
"Inspiration is for amateurs. The rest of us just show up and get to work." — Chuck Close

Michael Ganschow-Green - GRC 175 Instructor
mganschow@tmcc.edu | 673-8200 ext.5-2173

User avatar
zelouzelou
Posts: 63
Joined: Mon Aug 29, 2011 7:22 pm

Re: when to create new style sheet?

Post by zelouzelou »

So, if I want the layout of my home page to be different than the layout on my project pages, I need two different style sheets?
Kathyleen Bullard

User avatar
Instructor
Site Admin
Posts: 1869
Joined: Thu Jul 21, 2011 8:51 am

Re: when to create new style sheet?

Post by Instructor »

zelouzelou wrote:So, if I want the layout of my home page to be different than the layout on my project pages, I need two different style sheets?
Yes. That'll make it easier to keep track of variations.
"Inspiration is for amateurs. The rest of us just show up and get to work." — Chuck Close

Michael Ganschow-Green - GRC 175 Instructor
mganschow@tmcc.edu | 673-8200 ext.5-2173

User avatar
zelouzelou
Posts: 63
Joined: Mon Aug 29, 2011 7:22 pm

Re: when to create new style sheet?

Post by zelouzelou »

okie thanks!
Kathyleen Bullard

User avatar
Instructor
Site Admin
Posts: 1869
Joined: Thu Jul 21, 2011 8:51 am

Re: when to create new style sheet?

Post by Instructor »

zelouzelou wrote:okie thanks!
No problem. Some people like to use one CSS file and rename their div tags, but I find that needlessly confusing.
"Inspiration is for amateurs. The rest of us just show up and get to work." — Chuck Close

Michael Ganschow-Green - GRC 175 Instructor
mganschow@tmcc.edu | 673-8200 ext.5-2173

Post Reply