combining css menu's

Please support our HTML and CSS advertiser: 50% off 6 Months Dedicated Server Hosting from 1&1!
Thread Solved

Join Date: Jul 2006
Posts: 28
Reputation: gallopers is an unknown quantity at this point 
Solved Threads: 0
gallopers gallopers is offline Offline
Light Poster

combining css menu's

 
0
  #1
Jan 21st, 2008
hi there this might be a silly question but im learning as i go.
i looked at a dropdown menu which contains a html page a java script .js page and a .css page.
if i wanted to have an index page using the dropdown menu i would have my .index .js and . css file.
now my site already has a .css file so can i just combine the two .css files and save them as one as the one attached to the dropdown menu is only associated with the dropdown menu.
ive done this and it seems to be working ok.
i am only having the dropdown on the index page.

hope ive put that right
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 62
Reputation: hooray is an unknown quantity at this point 
Solved Threads: 6
hooray hooray is offline Offline
Junior Poster in Training

Re: combining css menu's

 
0
  #2
Jan 21st, 2008
you would be better off making 2 links to external css files on the index page:
HTML and CSS Syntax (Toggle Plain Text)
  1. <link href="mainstyle.css" rel="stylesheet" type="text/css" />
  2. <link href="substyle.css" rel="stylesheet" type="text/css" />

And only have a link to the mainstyle on the other pages. This way your site will load quicker, as it wont have to load so much information on the other pages
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 160
Reputation: JonathanD is an unknown quantity at this point 
Solved Threads: 10
Team Colleague
JonathanD's Avatar
JonathanD JonathanD is offline Offline
Marketing Consultant

Re: combining css menu's

 
0
  #3
Jan 21st, 2008
it's almost always better to have one CSS file rather than having 2, whenever possible.

see reference: http://developer.yahoo.com/performan....html#external

it will also help to minimize server load by having 1 CSS file, fewer calls to files.
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 28
Reputation: gallopers is an unknown quantity at this point 
Solved Threads: 0
gallopers gallopers is offline Offline
Light Poster

Re: combining css menu's

 
0
  #4
Jan 21st, 2008
thanks guys for your posts.
thanks for that link jono, interesting reading.
i struggle a bit, thats what happens when you start trying to learn computers at 40 after leaving school at 15.
thanks again, cheers rob ( australia )
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the HTML and CSS Forum


Views: 1517 | Replies: 3
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC