| | I was pretty sure that my code was standards compliant. I also try to do my best to make things standards compliant. If it is not, please point out where, but I'm pretty sure it is. |
|
QUOTE(reatum @ Oct 19 2005, 02:49 AM) I was pretty sure that my code was standards compliant. I also try to do my best to make things standards compliant. If it is not, please point out where, but I'm pretty sure it is. Nobody said it wasn't. In my first post I said to write your CSS more concisely, i.e. shorter, less file size, better. jhaslip said: QUOTE Getting something to work is one issue, Standards Compliance is another, and being efficient about both of these is still one more issue to contend with. Again, he's referring back to my post about shortening your CSS. The example you gave, while not incorrect from a standards perspective, is incorrect from an understanding of how CSS works. Cascading Style Sheets are so called cos the styles cascade down from the top which means that you can set styles on a parent element and all elements contained within will inherit those styles. You only need to specify styles when you want something to be different from its inherited style; you don't need to repeat all the values for each element. Anchor tags are a common one that newcomers to CSS get wrong: they think they have to specify the text-decoration, font-size, colour etc. for all states when really, in most cases, all those styles can be set on the a tag and only a colour change is needed on the hover, visited etc.
I also support Tyssen in this case.
Efficiency, and, therefore, standards-compliant code are two highly important aspects of my coding. I am quite detail-oriented, so I am prone to be very precise and accurate in answering a question and help the person understand. I strongly suggest that everyone should help the person who posted the question understand what his/her problem is, so that he/she does not come across the exact same problem again. And, most of all, BE FRIENDLY!! QUOTE(jlhaslip @ Oct 16 2005, 07:11 AM) Perhaps someone will come along and explain it better, and I wish I could find a version to post here for you. Okay, it took me a while, but I stumbled upon the answer today, so here it is: Insert this mete tag in the head section of your document. CODE <meta http-equiv= "expires" content = "0" /> This will expire the page in your cache so that the next time you load the page, it looks for the source rather than the version which is in your cache. There is another way to do the same thing by giving the file an expiry date which is already passed. For example using a date of dec 31 2004, the cache expiry date has already passed, so the source will not be cached. I'll post a version here when I find one. When I am building a site, I use this meta tag while editting and reviewing the css files and positioning elements. That way the most recent version is read by the browser. And you don't have to bother emptying the cache before each change is reviewed. Hope this helps.
Recent Queries:-
Keywords : css marins
|
|
![]() Css Body Marins - I am probably just stupid... |
| ADD REPLY / Got an Opinion! | a humble request :-) | RAPID SEARCH! | Free Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute your information that might help someone here. Ask your Doubts & Queries to get answers.. "Together, We enlight each other!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|