Tara: What's so bad about them coming here? Aren't they good guys? I mean, Watchers, that's just like whole other Gileses, right? Buffy: Yes! They're scary and horrible!

'Potential'


Buffistechnology 3: "Press Some Buttons, See What Happens."

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


amych - Sep 22, 2010 12:38:18 pm PDT #14933 of 25501
Now let us crush something soft and watch it fountain blood. That is a girlish thing to want to do, yes?

(or style="border: 1px solid black") (or 6px dashed #ff0000) (or...) Generally, using the style attribute lets you insert whatever values you'd use in CSS for a given tag, if you're not going to use a stylesheet outright (which you totally should, but I get that there are such things as boss constraints). The table border attribute just widens or narrows the browser's native table rendering, which varies quite a lot between browsers, but a bunch of them use the nasty web-circa-1994 metallic shadow look.


tommyrot - Sep 22, 2010 12:58:01 pm PDT #14934 of 25501
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

The other day, our client decided this form I'm working on should have a red 'OK' button. After googling I learned how to do that using CSS. Unfortunately, that caused other default behaviors of the button to go away (such as the border changing color when the user mouses over it), but the article showed how to recreate them using CSS.

Generally, my rule for CSS has been "use the stylesheet if you're doing something more than once." Perhaps I should use the stylesheet at other times too.


Ginger - Sep 22, 2010 12:59:38 pm PDT #14935 of 25501
"It didn't taste good. It tasted soooo horrible. It tasted like....a vodka martini." - Matilda

My rule for CSS is "use a stylesheet," but I'm easily confused.


amych - Sep 22, 2010 1:03:08 pm PDT #14936 of 25501
Now let us crush something soft and watch it fountain blood. That is a girlish thing to want to do, yes?

My rule for CSS is "use a stylesheet,"

Yeah, this. No styling in content markup -- you may think you're only going to use a red button in one place (but, REALLY? silly client. Red means cancel, not OK), but then you end up having to recreate it each your wacky client decides it should be on another page too... If you never do that stuff in the body, you don't have to remember which place it is, plus you're ready to not screw things up when your IE-only app ends up being used in other browsers or totally different devices sometime 3 versions down the road.


§ ita § - Sep 22, 2010 1:05:29 pm PDT #14937 of 25501
Well not canonically, no, but this is transformative fiction.

CSS stands for Cascading Style Sheets, so it's kinda all inherent.

However, more to the point, I hate using styles in the HTML page. I find it clunky and confusing, and therefore tend to do the bad thing and use deprecated HTML instead. Bad coder. Bad, bad, coder.


Tom Scola - Sep 22, 2010 1:06:58 pm PDT #14938 of 25501
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

HTML = model
CSS = view
JavaScript = controller

The three things should be as unmixy as possible.


amych - Sep 22, 2010 1:08:36 pm PDT #14939 of 25501
Now let us crush something soft and watch it fountain blood. That is a girlish thing to want to do, yes?

ita, you FONT COLORer you!


tommyrot - Sep 22, 2010 1:09:33 pm PDT #14940 of 25501
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

HTML = model
CSS = view
JavaScript = controller

What do you do if you have formatting and Javascript in XML?


§ ita § - Sep 22, 2010 1:11:04 pm PDT #14941 of 25501
Well not canonically, no, but this is transformative fiction.

Oh, come on. What's a t u between friends?


bennett - Sep 22, 2010 3:58:17 pm PDT #14942 of 25501

From a practical perspective, if you keep your structure (HTML) and style (CSS) separate, you know which file to edit when you have to go back 6 months later and change everything from blue to red. Speaking as someone who has spent more time than she'd like to think about trying to figure out just which file she needed to fix.