Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:Only 24 hours? (Score 1) 107

The reason is that it's better to favor composition over inheritance. In any relatively complex website, the scheme you describe would become unwieldy. It is better to assign general characteristics to outer elements, and then get more specific and you get deeper into the DOM (as a general rule). At least that's how I do it. I am really one of that hated breed, the PHP "developer" (although I do real languages as well), and 90% of what I do uses Zend framework, but I make it a point to have my css cascade intelligently instead of defining a bunch of classes with redundancies. Also, blueprint css helps a lot.

Comment Re:Only 24 hours? (Score 1) 107

That doesn't make any sense. You still have to assign the value to the variable. The value is going to be a hex number. You don't have to use hex colors, if you want to limit yourself to the color names that css recognizes, but the point of creating a class like .redHeader is so you can set the color values once and then forget them, using the people friendly class names instead. You can create as many classes as you want and name them things like .redHeader, .darkRedHeader, .reddishOrangeHeader, etc. In the end, you are communicating with a computer. It's not the fault of css that browsers use hex to render colors. But if it helps, just remember that the first two digits are red, the next two are green, and the last two are blue. So #5444BB is mostly blue with some red and slightly less green mixed in.

Comment Use a ball (Score 2, Informative) 865

Some people where I work sit on those exercise balls. While you're not busy, you can do mini crunches, and even while you're just sitting there, you will be using your ab and back muscles much more to support your posture. Also, stand up and stretch for a few minutes every hour. It's better than nothing.

Comment Nielson is an idiot (Score 1) 849

If it were up to him, the www would still be plain text and images. His philosophy boils down to "Lets design all websites to the lowest common denominator", which is fine if your website needs to have the widest possible audience, but most don't, just like most other forms of published content. Just think. No password masking+browser form persistence features means that I just have to be able to go to, say, gmail on your machine, double click the username field, tab once, and I know your google password. Then I can go to the coffee shop, log into your blogger account, create some nice posts in your name, then log into your analytics account do some bad stuff there, etc.

Comment Re:HTML5 is awesome (Score 1) 500

Now you see the advantage of flash and silverlight. They are plugins, so the people who develop the technology control how it is implemented and displayed. With HTML5, each browser will implement features differently. That's why I first started looking at flash, because I was so sick of the CSS incompatibilities back in the day.

Slashdot Top Deals

It is easier to write an incorrect program than understand a correct one.

Working...