Two questions (one semantics, one CSS)

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

This is the prototype survey I am putting together:

http://www.housing.uwaterloo.ca/surveys/phpsurveyor/index.php?sid=1&newtest=Y

I've managed to strip most of the invalid code out of the php files but I've got two problems left:

  1. I can't seem to get rid of the border around that fieldset - why?? I've tried various combinations of CSS selectors but I can't figure it out
  2. See that table for the first question? It's not a table, but how else should I mark it up? Should the comments go beside the entry or below? Below might be easier...

Thanks for any suggestions Smiling

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Solved problem #1 (It would help it I spelled it right! Doh!)

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

FYI, that page doesn't have a background colour Smiling

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Megan wrote: See that table for the first question? It's not a table, but how else should I mark it up? Should the comments go beside the entry or below? Below might be easier...

It's a difficult one. If you're on a tight schedule it's probably not worth thinking about as it's so close.

You could use a list. I've never tried, but is it possible to put a div inside a list item? You could use that for layout. Smiling Lists can be nested, both lists and divs are block-level elements so you hopefully wont have an issue.

a Padded Cell our articles site!

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

I haven't gotten around to deciding what to do with that yet Smiling

Question: in php, what are \t and \n for? So if there's a line like [incode]echo "\t\t\t\t\n";[/incode], what are the \t and \n doing? Why so many \t???

Busy's picture

He has: 6,151 posts

Joined: May 2001

\t = tab
\n = new line

your source code would show the tabbed and new lines

DDoSAttack's picture

He has: 38 posts

Joined: Oct 2006

Busy;210629 wrote: \t = tab
\n = new line

your source code would show the tabbed and new lines

To take it one step further...
/r is a carriage return

It is also a good idea to use both /r/n together because of the way that Macs, *nix, and Windows all recognize and render their new lines

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Oooooohhhhhh! That explains a lot. Thanks Smiling :)

Busy's picture

He has: 6,151 posts

Joined: May 2001

thats only for emails, for the web it doesn't matter unless your fussy about the source code.
The \n (for example) puts the content in the source code on a new line, not the content on the page, to do that you still need to use or similar

DDoSAttack's picture

He has: 38 posts

Joined: Oct 2006

Busy;210717 wrote: thats only for emails, for the web it doesn't matter unless your fussy about the source code.
The \n (for example) puts the content in the source code on a new line, not the content on the page, to do that you still need to use or similar

Sorry, your right, I should have clarified that.

Thanks Smiling

He has: 578 posts

Joined: Jun 2004

I don't see why the question isn't a table? It's tabular data, no?

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

That link is different now, sorry. The ones you see now are tables (although I wouldn't exactly describe that as 'tabular data'). The one I was talking about is now the second-last question from the bottom, the "Multiple options with comments". That was originally a table with the comments in a separate column.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.