943,816 Members | Top Members by Rank

Ad:
Jan 21st, 2008
0

combining css menu's

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Light Poster
gallopers is offline Offline
28 posts
since Jul 2006
Jan 21st, 2008
0

Re: combining css menu's

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
Reputation Points: 11
Solved Threads: 6
Junior Poster in Training
hooray is offline Offline
62 posts
since Jan 2008
Jan 21st, 2008
0

Re: combining css menu's

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.
Team Colleague
Reputation Points: 26
Solved Threads: 10
Marketing Consultant
JonathanD is offline Offline
161 posts
since Aug 2005
Jan 21st, 2008
0

Re: combining css menu's

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 )
Reputation Points: 10
Solved Threads: 0
Light Poster
gallopers is offline Offline
28 posts
since Jul 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: bold text in dropdown
Next Thread in HTML and CSS Forum Timeline: onload wildcard?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC