| | |
combining css menu's
Thread Solved |
•
•
Join Date: Jul 2006
Posts: 28
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Jan 2008
Posts: 62
Reputation:
Solved Threads: 6
you would be better off making 2 links to external css files on the index page:
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
HTML and CSS Syntax (Toggle Plain Text)
<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
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.
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.
![]() |
Other Threads in the HTML and CSS Forum
- Previous Thread: bold text in dropdown
- Next Thread: onload wildcard?
Views: 1517 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
2002 alignment beta blog browser browserproblems cart cascade center chrome code compatibility containers create css deleted design designing distortion division dreamweaver drupal editor emailmarketing embed explorer firefox float font fonts format free helprequired-urgent hosting hover html ide ie6 ie7 iframe image images input internet internetexplorer iphone javascript jpeg js links login macbook map maps margin marketshare microsoft mozilla mp3 multimedia newb object opacity opera override overwrite perl player pnginie6 position positioning prevent problem relative scroll seo shopping strings style table tables tag templates theme tips translation url validation visual visualization w3c web webform website word wordpress xhtml xml xsl youtube





