Graeme Posted November 6, 2009 Report Share Posted November 6, 2009 Hello All, Is it possible to use two style sheets on one page or is it best to combine them? I have one style sheet for my origional pages but I want to include a Light Box. Thank you, Best wishes Graeme Quote Link to comment Share on other sites More sharing options...
Andrea Posted November 6, 2009 Report Share Posted November 6, 2009 You can use as many as you like, it won't affect the functionality of your page one way or the other. Using separate stylesheets for organizational purposes, like in your case for the lightbox, could be helpful. Quote Link to comment Share on other sites More sharing options...
newseed Posted November 6, 2009 Report Share Posted November 6, 2009 (edited) Just keep in mind that if the stylesheets uses duplicate elements, the latter one will be rendered because it overrides the first. Example: If bother stylesheet are using #header h2 but one the first one has the color of red while the second one has the color of blue, the second one will be used. - is using the color red - is using the color blue Edited November 6, 2009 by newseed Quote Link to comment Share on other sites More sharing options...
Graeme Posted November 7, 2009 Author Report Share Posted November 7, 2009 Thank you, Best wishes Graeme Quote Link to comment Share on other sites More sharing options...
Graeme Posted November 9, 2009 Author Report Share Posted November 9, 2009 Hello All, In the Light Box code, how can I setup the thumbnails? Some of my images are of variuos sizes and orientation etc. I noticed that on some sample pages the thumbnails are all square yet when opened some of the images are different sizes. Thank you., best wishes Graeme Quote Link to comment Share on other sites More sharing options...
falkencreative Posted November 9, 2009 Report Share Posted November 9, 2009 Hello All, In the Light Box code, how can I setup the thumbnails? Some of my images are of variuos sizes and orientation etc. I noticed that on some sample pages the thumbnails are all square yet when opened some of the images are different sizes. Thank you., best wishes Graeme That depends entirely on whatever lightbox script you are using... You'll need to go back to wherever you got the script from and look at any documentation they offer. Quote Link to comment Share on other sites More sharing options...
carmen007 Posted November 9, 2009 Report Share Posted November 9, 2009 you can use as many sheets as you want but what is the problem using a single one? Quote Link to comment Share on other sites More sharing options...
Andrea Posted November 9, 2009 Report Share Posted November 9, 2009 Makes a lot of sense to me to use a separate one for the lightbox. For one, that part of the CSS is only needed on one page and can be just left off the other one, plus it's easier to find your code depending on what you're working on. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.