PCP Style – A New Idea for Better Stylesheets
So Pondered this idea today…. PCP (PCP CSS Preprocessor). Fundamentally, I want to create a preprocessor to get CSS that parses released your stylesheet within the server-side and uses HTTP_USER_AGENT to determine deviations from normal CSS, then replaces that W3C-compliant CSS having browser-specific CSS and also spits out the result. And here is how it’ll do the job. Think about you have this particular HTML (below). And let’s say you want to style your #page content that they are 500px wide with 20px padding as well as a 10px border, centered to the page, with word justified left. W3C can have you do the following: HTML: < html> < head> < title> PCP Style< /title> < website rel=" stylesheet" type=" text/css" href=" key. css" media=" all" /> <! –if lte IE 6> < website rel=" stylesheet" type=" text/css" href=" ie6. css" media=" screen" /> <! endif–> < /head> < body> < div id=" page" > < p> PCP is a bomb! < /p> < /div> < /body> < /html> Here’s some of our main CSS report, which works with regard to W3C-compliant browsers. Code: div#page size: 500px; padding: 20px; boundary: 10px; margin: 0 auto; Due to box-model misinterpretation by means … Continue reading