On Jun 28, 2012, at 3:52 PM, Tomasz Borek wrote:
> John,
>
> When you write code, you mean CSS + HTML code only? If not, there are tests
> that can verify if it works as intended. If so:
> 1) Validators
> This should do for semantic errors or typos.
> 2) Version control system
> If you use one, revert to previous revision. Is your error there? Yes ->
> check changes between this and next revision - there's problem root. No -> go
> back one more revision.
> Most VCS's comes with some sort of diff tool. If you're on *nix systems, you
> have diff command.
> 3) Version control... manually
> Delete part of your changes. Is your error there? Yes -> check what you've
> deleted, there's your problem. No -> revert next change you made ("go back
> one more revision" step).
> 4) Debugging
> Launch Firebug and apply your changes from "bad" CSS on your site, overriding
> "good CSS". Effects should be visible live. This is also manual testing, to
> be honest. Also, if you don't have many rules from different sources, you may
> want to check CSS Usage add-on to Firebug - it displays rules used in green,
> unused in red. If styles don't work occasionally it's because they can't be
> applied - then they'll be red. If they work, but not as they should, they'll
> be green.
Thanks Tomasz; Yes, I'm doing just css and html. I usually do my own versioning
with Save As; this time I did not and I paid the price. I'm using TextWrangler
to write my code.
I am simply not sure what I did other than, while tweaking one thing, I wasn't
mindful of the changes being made to another, so that when I looked at the file
next day, I spotted the problem, but couldn't recall what I'd done immediately
before.
I did find an earlier version in which this code worked fine and was able to
change some other things from memory to get back to where I was.
Maybe I took the chicken way out, and should have put in the time and sweat to
search out what I did wrong...not wanting to spend too much time, tho..
John
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/