Tag Archives: Lte

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

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment

Specify Rules for Each Browser in CSS

Hi I’m doing nearly all of my brochure web pages in html in addition to css. The trouble is, Firefox and also ie interpret css program code like " major: 15px; " in different techniques and I end up with different spacing within the two browsers. Can there be a way I will say: When Firefox: " major: 0px; " When internet explorer: " major: 15px; " Thanks to anyone who is able to help. Everyone knows that IE sucks, but often search for a way to generate it the same without the need for any browser hacks. There are actually ways to check for IE vs FF, but there are actually so many versions, and other windows. Is it possible you will want to sort of " reset" the CSS so that you can render it reset css – The search engines Search In fact, only use hacks as being a last resort… they are going to suck the life out of you Thanks mlseim – I may try the totally reset css. Realize mlseim, use a new reset file… Eric Meyers reset is defacto standard but there are actually others. Also make sure you set a doctype. Usually … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , | Leave a comment