|
Hein Pauwelyn wrote: tables cannot be used for layout
Really? So how do you layout a table of data?
What you mean is: some designers prefer you don't use tables. And this has lead to designers using everything but a table to do things that, really, should be done using a table.
For us: yes, we have tables for layout where we shouldn't. We're actually in the midst of planning updates to this. However, there are cases where tables actually provide layout safety because a table can reign in bad HTML. If you allow user generated HTML (like these forums) then you need a mechanism to ensure the HTML they provide doesn't break things. HTML and CSS filtering works (mostly) but there will always be cracks. Sandboxing (sort of) this HTML inside a table has proved (for us) to be a neat safety feature for wayward HTML.
cheers
Chris Maunder
|
|
|
|
|
I add that to the list.
* Pointers are bad, everything must be an object;
* Managing memory is bad, everything must be garbage collected;
* Native is bad, everything must be interprteted or JIT-compiled;
* Performance doesn't matter, computer power is illimited;
* Tables cannot be used for layout.
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
Missed one:
* Goto's are bad, everything must be wrapped in a giant if/else structure with nearly duplicate code in both branches.
|
|
|
|
|
Let me tell you a developer's secret:
It's OK to use <table>. It's easy to use - and it works.
REALLY! |
---|
You Can Do It | | And Won't Burn In Hell | You Can | | Do It! |
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
From one web developer to another, I agree. Tables should only be used for showing tabular data, not layout. However, keep in mind CP has been around a long time, way before CCS3 or even CSS2 became popular. People used to use tables for layouts before CSS2. These days it's discouraged (rightfully so), but the creator of CP (Chris Maunder) has been around since dinosaurs roamed. And you can't always just up and change a website that serves millions of people so quickly.
That being said, for any new development you're doing, definitely do not use tables for layouts... just tabular data.
Jeremy Falcon
modified 2-Dec-16 15:12pm.
|
|
|
|
|
Jeremy Falcon wrote: a website that servers millions of people
You've got an extra "r" in there. I assume you meant "a website that severs millions of people"?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
There's that R. I thought I lost it. Sneaky little thing.
Jeremy Falcon
|
|
|
|
|
Richard Deeming wrote: I assume you meant "a website that severs millions of people"?
I'm going to assume you removed the wrong 'r', lest we all start losing body parts
|
|
|
|
|
No, I removed the correct "r". As this sign proves.[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Oh my, I had no idea Itchy ran the site. May Scratchy save us all... we're doomed
|
|
|
|
|
My old funny uncle is having a sound sleep meters away. He was snorting so loud I couldn't focus on anything. I screamed "You old man can't play that bass a little less louder?". And now he's snorting less loudly. I don't know how people respond in sleep automatically and keep going. lol His snort sounds so controlled and careful now.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Was I the only person who initially thought "Who's driving? The one sleeping or the one posting on the internet?"
|
|
|
|
|
I meant to say, even one is sleeping, there's something very much in control listening to things.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
I want to die in my sleep, like Uncle Joe. Not screaming in panic, like his passengers.
An oldie but a goodie.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Herself wakes herself up by snoring too loudly.
She never wakes me with her snoring - I never get to sleep when she starts anyway.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Old men be like OG!
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
In my case it's a Russian Doberman sawing logs 10 feet from my bed. It can get ridiculous at times. Asking him to stop has no effect SQUIRREL!!!!!!
|
|
|
|
|
I do that too when my GF "politely" asks me to stop snoring! Basically we wake up for the minimum amount of time necessary to understand that we're not breathing properly and then fall asleep again.
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
Really, screaming (your word, not mine) at people who are sleeping peacefully?
|
|
|
|
|
A scream is nothing! It would take a dino-roar to intercept his snoring noise.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Do you remember the hype about "fuzzy logic" back in the 80's? Lately my own logic is becoming fuzzier every day.
... such stuff as dreams are made on
|
|
|
|
|
The guy who wrote the code I'm looking at obviously invented fuzzy typed variables.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
1. No programming questions in the Lounge.
2. Where's the programming question in your post? "Remember x?" hardly qualifies as a "programming question".
3. So, to answer your subject, no.
4. You have proven your point though.
|
|
|
|
|
Spoken like a true servant of Mordor.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
Say that one more time and I'm giving you the evil eye
|
|
|
|