I literally just started learning HTML and I’m making a basic website in Dreamweaver. I would like to know how I can create a default CSS style sheet so it can apply to all web pages. At present I need to make the stylesheet changes to all pages which is troublesome. Would appreciate some references/tutorials on how to do this. Thanks
I literally just started learning HTML and I’m making a basic website in Dreamweaver.
Share
I would suggest creating a css directory in your websites root (where your index.html page usually is) and adding a css file called style.css.
You will then need to link each of your pages to your newly created stylesheet (style.css) in your section:
This tells each of your webpages to look for a stylesheet (rel=’stylesheet’) at the location defined by ‘href’ (href=’css/style.css’), this is assuming that all your files are in the same directory, if not; you’ll have to point them to the appropriate place relative to their current location.
For example if you have a folder of ‘trips’ containing several files ‘index.html, map.html’ or whichever, they would have to point to “href=’../css/style.css’.