Forum Moderators: not2easy
I'm going to be reworking the code of my site by cleaning it up and making it W3C compliant.
I figured I would redesign the site in CSS considering this would clean up the code more. I do have a few questions considering I have never really done a complete site in CSS. I'm sure I will still need tables here and there but I most of it will be CSS.
Should I put all the CSS information in a CSS file or just in the style="". I'm assuming that for site wide styles, I should use a CSS file but for page specific, I should use style="".
My site is very large and has many pages. Most of the site is fairly dynamic so doing some code updates shouldn't be a massive job.
Any help or suggestions would be greatly appreciated :)
Thanks!
Personally I would put all of the styling into a .css file
You could then spilt the css into different files for example a layout.css and then have a specfic css file for a page/function such as a shop/forum, shopstyle.css for example.
Having your style stripped from the main pages and placed into 1,2,3 css files will make your life so much easier if/when you make any changes/amendments in the future.
<head>
<link rel="stylesheet" type="text/css" href="mainlayout.css">
<link rel="stylesheet" type="text/css" href="thispage.css">
<title>This Page</title>
</head>
In other words, first you include the stylesheet that has your main layout rules, then you include any other stylesheets.