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 :-/

Recommended Answers

All 3 Replies

you would be better off making 2 links to external css files on the index page:

<link href="mainstyle.css" rel="stylesheet" type="text/css" />
<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

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 )

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.