Menu question
Posted: 01 March 2009 10:29 AM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2009-03-01

Hello,

I am new to CSS and web design and have created a fictitious website so that I can learn. I have chosen the “2 Column Elastic, Left Sidebar” template. My question is: how can I control the “Left Sidebar” with a second style sheet?
I wish to keep the code clean and simple, avoiding complex code, as I don’t understand CSS that well.

My motives for this request, is to be able to control the sidebar so I only have to make the one change without having to edit each page; i.e. when pages are added to the menu which will reside within the sidebar.

Morrile

Profile
 
 
Posted: 07 March 2009 07:46 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  6
Joined  2009-03-07

There are two answers to your question:

1) Separating CSS into multiple Style Sheets is Probably Not Best
This will just require more files to be downloaded which slows things down. You can use comments and other techniques to “organize” your CSS.

2) It Sounds like you need Includes
Depending on the type of server your site is hosted on, you can use “include” files in your pages. This means you can have menu, or other content that is the same on each page, stored in a separate file that is simply referenced in your content pages.

Here are a few links:
http://www.w3schools.com/PHP/php_includes.asp
http://www.w3schools.com/asp/asp_incfiles.asp

Your web host should be able to tell you what kind of includes you can use.

Profile
 
 
Posted: 07 March 2009 08:46 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  2
Joined  2009-03-01

Many thanks Sandblocks.

Profile