Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror

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

I would be more emotional about it if it caused a real life problem for me. In real life, when I make a site, I usually will define about a half dozen or so text styles, 20-30 html element styles, and about the same number of layout styles. The rest I leave up to Blueprint CSS. If I need to change things, I just do a search/replace in eclipse and everything seems to work out ok. Now if you want to see me get pissed off, we can talk about how the browsers implement the standards.

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

Because CSS is not a programming language. If you want, you can easily have the programming language of your choice generate CSS. You can also use multiple classes on any html element. You can use Javascript libraries to avoid those problems as well.

I'm not saying that CSS is perfect, or even great, because it isn't. But it is not intended to be a programming language, and you are basically complaining that it doesn't have the features of a programming language.

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

Trap full -- please empty.

Working...