04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table <strong>CSS</strong><br />

I guess. But when it comes to laying out a table<br />

properly, I’m the way to go. The last time I saw<br />

someone trying to lay out a form using <strong>CSS</strong>, there<br />

were s and s all over the place; it was<br />

a mess. And all that positioning and messing <strong>with</strong><br />

margins to get the widths just right... it gave me a<br />

headache just looking at it all.<br />

At least <strong>with</strong> my table rows and data cells, it’s easier<br />

to figure out what’s going to end up where; <strong>with</strong><br />

your positioning tricks, I never know where stuff is<br />

going to end up.<br />

But the users are entering data into the form<br />

controls, aren’t they? A form is used for gathering<br />

data from the person using the form. How is that<br />

not tabular data?<br />

Well, I say if I can do a job better than you, then,<br />

hey, use me to do it. I’m happy to oblige.<br />

Tell you what, why don’t we just let the readers<br />

decide?<br />

xhtml forms<br />

Dude, you have no idea what you’re talking<br />

about. Forms should match the look and<br />

feel of the rest of the Web site. Users will be<br />

confused if they go to fill out a form and it<br />

doesn’t look like part of the site.<br />

Well, what about all your s and s<br />

littering up the X<strong>HTML</strong>? That’s no different.<br />

You obviously haven’t read Chapter 12. And<br />

I just don’t buy that form elements are tabular<br />

data... they’re X<strong>HTML</strong> elements, not data.<br />

Hmm... I suppose I can sort of see that... but it<br />

just seems so wrong to use a table to do layout.<br />

Layout is presentation, and presentation is my job.<br />

Better than me? Whoa now, that’s going too<br />

far...<br />

you are here 625

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!