thierry_koblentz — 2011-04-30T00:45:48-04:00 — #1
I put a short CSS Quizz together.
Please give it a shot and spread the word.
I plan to publish the results and solution in a coupe of weeks.
ralphm — 2011-04-30T01:04:43-04:00 — #2
Interesting quiz. I had a go at it, but felt like I was poking in the dark a bit. Doesn't the context of that span matter, though? Not sure …
As for the first declaration … :shifty:
thierry_koblentz — 2011-04-30T01:24:37-04:00 — #3
The idea is to remove as many declarations as you can without breaking anything. Knowing that there is no other "explict" styling than what you see in the Quizz.
In short, simply ask yourself if what you remove or what you edit may change the look of the element or the way it appears on the page.
Thanks for taking the quizz/survey
ralphm — 2011-04-30T01:35:59-04:00 — #4
Does that mean that there's no author styling on any other element that may be on the page? (I.e. other than what the browser default uses.)
thierry_koblentz — 2011-04-30T01:53:35-04:00 — #5
No. We do not know about this. There could be none or plenty. All we know is that there is no other rule that tagets #box.
system — 2011-04-30T05:15:32-04:00 — #6
I started on it, but walked away on it as I suspect I would NEVER write code like that in the first place... Again, CSS without the markup it applies to is gibberish -- and there's a LOT of gibberish in there.
I mean, it's even using an image replacement technique I would NEVER, EVER use in the first place!
paulob — 2011-04-30T06:17:49-04:00 — #7
Hi Thierry, nice little quiz.:)
I see a slight conflict unless this was built into your quiz on purpose. I won't say what it is in case it's part of the quiz but I submitted a solution with comments if you want to check.
paulob — 2011-04-30T06:18:42-04:00 — #8
Is it I think you missed something lol
thierry_koblentz — 2011-04-30T10:47:27-04:00 — #9
I must say the results are very interesting...
lol, I didn't even think about that one. You're 100% correct, very good catch!
thierry_koblentz — 2011-04-30T11:01:11-04:00 — #10
You may want to take a look at the big picture
thierry_koblentz — 2011-04-30T11:06:13-04:00 — #11
I can't believe I didn't properly reply to you guys. It's too early here, I click the wrong button. I need coffee!!
dresden_phoenix — 2011-04-30T14:50:04-04:00 — #12
Agreed. I don't see the purpose to the rules there for is nearly impossible to tell what would be more efficient or whats even correct. Even the obvious errors are difficult to judge, example. you have two COMPLETELY DIFFERENT padding declarations... sure only one will be set, but w/o seeing the code order, or knowing what her desired spacing, images, ect are... can a person choose between the two. It was a cool idea, just too many ambiguities to be a viable quiz. A for effort and nice styling one the form.
stomme_poes — 2011-04-30T14:07:39-04:00 — #13
I just did it and it thoroughly confuzled me what s/he (the "user who wrote the styles") was trying to do.
stomme_poes — 2011-04-30T15:50:14-04:00 — #14
I think I'm getting it... we weren't supposed to "fix" it, were we? Just get the same (visual) result? I tried to fix it : (
thierry_koblentz — 2011-04-30T15:03:09-04:00 — #15
Yes, totally, with the exception of one declaration may be for which context is relevant (edge-case though). But only Paul has spotted that one so far so I don't think it should confuse too many participants. Besides, that's one declaration out of sixtheen.
paulob — 2011-04-30T16:11:32-04:00 — #16
lol - look again - there is no ambiguity as it all resolves nicely - it all makes 100% sense and is a great quiz
paulob — 2011-04-30T16:18:22-04:00 — #17
The element is already styled with those properties and you must preserve the way it looks and behaves and interacts at the moment. You need to reduce the code shown to its minimum without changing the visual appearance of that element or anything that may be around it. What can you get rid of and why.
paulob — 2011-04-30T16:19:02-04:00 — #18
Yes that's basically it
dresden_phoenix — 2011-04-30T16:22:32-04:00 — #19
Yes, but I havent seen the element or know the desired style result, or even seen the ACTUAL CSS ( do we assume the rules are given in the same order as the check boxes?)
padding:50px; and padding :10px 0; ( one rule will override the other, depending on the order in the code. It's obvious ONE rule as to go... but WHICH? There is nothing to say which comes first or which padding is desired) that's just ONE example of what I saw as ambiguous
paulob — 2011-04-30T16:46:34-04:00 — #20
The desired result is the way that an element with those styles applied would look. You don't need to know anything more.
The rules are in order as shown (although it only matters for the edge case Thierry mentioned). It is your job to work out what the element looks like with all those rules in place and then to decide which rules aren't needed but to keep the element still looking the same and at the same time not change its effect on others around it.
I can't say much more without compromising the quiz. Once you get it you'll say Doh!
next page →