I'm starting to learn css, and I read that it is best to create a file of css code then link to the pages that follow that same design. What I understood the benefit was that you can change the master and it will apply that change to each webpage.
My question is what should be in this .css file? it is just the layout with content? do I include bacground pictures? and Finally how do I apply them to every page to stay consistent throughout?
Thanks in Advance!Anything that would normally be between <style> tags in the head section can go into the stylesheet.
When addressing your images, link to tham as normal in css but make sure the file path is correct from the location of the css file.
The benefits are ofcourse that you can change the entire site by editing one document, but also that it only needs to be Download ed once.<link rel="stylesheet" href=http://www.webdeveloper.com/forum/archive/index.php/"yourfile.css" type="text/css" />
Or
body
{
background-image: url('image.gif');
background-color: #000000;
}
My question is what should be in this .css file? it is just the layout with content? do I include bacground pictures? and Finally how do I apply them to every page to stay consistent throughout?
Thanks in Advance!Anything that would normally be between <style> tags in the head section can go into the stylesheet.
When addressing your images, link to tham as normal in css but make sure the file path is correct from the location of the css file.
The benefits are ofcourse that you can change the entire site by editing one document, but also that it only needs to be Download ed once.<link rel="stylesheet" href=http://www.webdeveloper.com/forum/archive/index.php/"yourfile.css" type="text/css" />
Or
body
{
background-image: url('image.gif');
background-color: #000000;
}