SitePoint Sponsor

User Tag List

Page 1 of 5 12345 LastLast
Results 1 to 25 of 114

Thread: Test Your CSS skills quiz #9

  1. #1
    The CSS Clinic is open silver trophybronze trophy
    SitePoint Award Recipient Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    37,876
    Mentioned
    103 Post(s)
    Tagged
    3 Thread(s)

    Test Your CSS skills quiz #9

    CSS - Test Your Skills Number 9 : Note :Quiz now ended and solution posted in post#81

    A while back I introduced some simple css quizzes just for fun and while I had some spare time today I have put together another one.

    This is pretty simple and some of you should be able to do this straight away but remember to think outside the box.

    Here is a screenshot (see atachment in post#18 if link doesn't load) of a layout I have produced. Now all you have to do is create the look of that page. I am not worried about you making the exact positions but the series of boxes when completed must look the same as the screenshot above and overlap in the same way.

    The only drawback is that I will supply the html which cannot be altered. The result must work in IE6 upwards and also Firefox 2 and Opera9 upwards.

    Here is the html and the only things you can change or add to are the styles inside the style element.

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    * {
        margin:0;
     padding:0;
    }
    div {
        width:200px;
        height:200px;
        border:2px solid #000;
    }
    .b1 {
        background:red;
    }
    .b2 {
        background:green;
    }
    .b3 {
        background:blue;
    }
    .b4 {
        background:teal;
    }
    .b5 {
        background:black;
    }
    .b6 {
        background:orange;
    }
    </style>
    </head>
    <body>
    <div class="b1">
        <p>test1</p>
    </div>
    <div class="b2">
        <p>test2</p>
    </div>
    <div class="b3">
        <p>test3</p>
    </div>
    <div class="b4">
        <p>test4</p>
    </div>
    <div class="b5">
        <p>test5</p>
    </div>
    <div class="b6">
        <p>test6</p>
    </div>
    </body>
    </html>
    Remember though that the html content inside the body cannot be changed and you can only add valid css2.1.

    Some of you will know the answer to this straight away so please PM me your answer and do not post in the thread and spoil it for others. There are no prizes but I will announce the first correct entries that I receive to give you lots of Kudos. I will decide winners on how quick they solve it and perhaps by how inventive the answer was.

    The test looks very simple but will require a little bit of lateral thinking and there may indeed be a number of solutions.

    To re-iterate I want you to imitate what you see in the screenshot and I'm not worried that it may not be a functional layout in the real sense.

    General Rules:

    Html must remain untouched.
    Only the css in the head can be altered
    No javascript or scripting of any kind
    No images or background images.
    No expression,conditional comments, behaviours etc.
    Use Valid CSS
    Use Valid xhtml
    Must work in Firefox2+ and ie6 - 8
    No hacks i.e. The same code must work for both browsers.
    No finding loopholes - I'm sure you all know what I mean lol

    As usual there are no prizes other than the self-satisfaction of completing this. If you have a valid layout then post a message saying compled but don't post the solution and spoil it for others. Please PM me the solution so that other people can still have a go.

    As with the other tests these aren't meant to be suggestions for layout but more an exercise in using css to achieve something different and having fun at the same time.

    Have fun .

    Paul

    PS. : In case you missed the other tests you can find them here:
    test 1: http://www.sitepoint.com/forums/showthread.php?t=168555
    test 2: http://www.sitepoint.com/forums/showthread.php?t=169710
    test 3: http://www.sitepoint.com/forums/showthread.php?t=170190
    test 4: http://www.sitepoint.com/forums/showthread.php?t=171221
    test 5: http://www.sitepoint.com/forums/showthread.php?t=172472
    test 6: http://www.sitepoint.com/forums/show...est+css+skills
    test 7:http://www.sitepoint.com/forums/show...44#post3216244
    test 8:http://www.sitepoint.com/forums/show...64#post3235664
    Last edited by Paul O'B; Jan 14, 2009 at 14:51. Reason: link to solution added

  2. #2
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Can we change the source order of the HTML?

    Edit: I posted my solution
    Last edited by RyanReese; Jan 10, 2009 at 17:51.
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  3. #3
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,468
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, you cannot touch the HTML at all.

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    SitePoint Award Recipient Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    37,876
    Mentioned
    103 Post(s)
    Tagged
    3 Thread(s)
    Ok - We have some correct answers already

    I have received corrects answers from Centauri and SoulScratch so well done to those two.

    Ryan, your solution is not quite there so check the screenshot and have another go but thanks for trying anyway.

    I will leave the quiz open for a few days so others can try and I'd love to see what you can all come up with. Even if you don't get the answer right it will help your css skills by trying anyway.

    As usual PM me with the answers so as not to spoil it for anyone else.

    Remember this is just for fun

  5. #5
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    I went back and now it works. Everything overlaps like it should. Check your inbox Paul.
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  6. #6
    The CSS Clinic is open silver trophybronze trophy
    SitePoint Award Recipient Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    37,876
    Mentioned
    103 Post(s)
    Tagged
    3 Thread(s)
    Ryan check your div number 4 with my screenshot

    Keep trying though - don't give up

  7. #7
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Lateral thinking was needed I never used that property the way I had before .

    Check now I got it
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  8. #8
    The CSS Clinic is open silver trophybronze trophy
    SitePoint Award Recipient Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    37,876
    Mentioned
    103 Post(s)
    Tagged
    3 Thread(s)
    Ryan - the answer lies elsewhere

    Keep trying - I'm sure you'll get it soon.

    (I'm off to bed now - back tomorrow)

  9. #9
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    There. Can you announce first/second/third place winners?
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  10. #10
    The CSS Clinic is open silver trophybronze trophy
    SitePoint Award Recipient Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    37,876
    Mentioned
    103 Post(s)
    Tagged
    3 Thread(s)
    At present in the lead are Centauri and Soulscratch.

    Ryan you would be in third place as you basically have the right answer but you need to fix the alignment issues and tidy it up. Therefore I am going to put you equal third with ewwatson who's entry I received afterwards but is completely correct.

    However, all this could change if I receive a very inventive answer that I hadn't even thought of so keep the answers coming in please

  11. #11
    The CSS Clinic is open silver trophybronze trophy
    SitePoint Award Recipient Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    37,876
    Mentioned
    103 Post(s)
    Tagged
    3 Thread(s)
    I have another correct entry from jantheman - well done

    Keep the answers coming in - I'm still waiting to be surprised by something I hadn't thought of

  12. #12
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Hah that won't happen Paul .
    Quote Originally Posted by Paul O'B
    Ryan you would be in third place as you basically have the right answer but you need to fix the alignment issues and tidy it up. Therefore I am going to put you equal third with ewwatson who's entry I received afterwards but is completely correct.
    True. I knew about the alignment issues but that would take me 2 minutes to fix and the point of it for me was just getting it. So I won't go back and fix it since that isn't a challenge, just a visual issue. If I was doing this actual layout for a site I'd fix it (I'd never use this layout lol ).

    Cheers. Congrats on us 4 for figuring it out. I feel smart
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  13. #13
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,117
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Oooh, I'll have a go at this later on, looks interesting!

  14. #14
    Posts rarely lloydi's Avatar
    Join Date
    Jan 2002
    Location
    Swindon UK
    Posts
    617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, you got me absolutely stumped. I just wish you hadn't said that this is a simple one. Agggggh! Now *I* feel simple!

    Just waiting for the moment the solution is revealed and I can put myself out of my misery.
    Build Your Own Web Site the Right Way!
    A beginners' HTML/CSS book with web standards at its heart
    The Ultimate HTML Reference
    A complete reference, in glorious hardback

  15. #15
    #titanic {float:none} silver trophy
    molona's Avatar
    Join Date
    Feb 2005
    Location
    from Madrid to Heaven
    Posts
    7,379
    Mentioned
    123 Post(s)
    Tagged
    1 Thread(s)
    I have problems loading the screenshot...
    Before asking, do a search... if you don't find the answer, then ask
    The purpose of this forum is to help others in the community, that's why it's called Sitepoint and not Linkpoint.
    SP Guidelines - No fluff.

    Thinking Web: Voices of the Community - The Community Book

  16. #16
    SitePoint Wizard Blake Tallos's Avatar
    Join Date
    Jun 2008
    Location
    Cuyahoga Falls, Ohio.
    Posts
    1,497
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Paul is the image down? I'm not even able to see it. I'll check with a different browser.
    Blake Tallos - Software Engineer for Sanctuary
    Software Studio, Inc. C# - Fanatic!
    http://www.sancsoft.com/


  17. #17
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,468
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Folks, his whole site appears to be down.

  18. #18
    The CSS Clinic is open silver trophybronze trophy
    SitePoint Award Recipient Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    37,876
    Mentioned
    103 Post(s)
    Tagged
    3 Thread(s)
    Hold on I'll load an attachment here instead.
    Attached Images

  19. #19
    Posts rarely lloydi's Avatar
    Join Date
    Jan 2002
    Location
    Swindon UK
    Posts
    617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Schulz View Post
    Folks, his whole site appears to be down.
    Ah, that changes things then. The solution is *easy*:

    body {display:none;}

    ;-)
    Build Your Own Web Site the Right Way!
    A beginners' HTML/CSS book with web standards at its heart
    The Ultimate HTML Reference
    A complete reference, in glorious hardback

  20. #20
    Non-Member
    Join Date
    Jul 2005
    Posts
    606
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My thoughts on this can be summed up as followed:

    :SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS

  21. #21
    SitePoint Wizard Blake Tallos's Avatar
    Join Date
    Jun 2008
    Location
    Cuyahoga Falls, Ohio.
    Posts
    1,497
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ohhhh this is easy. I'll send my result's in a little bit.
    Blake Tallos - Software Engineer for Sanctuary
    Software Studio, Inc. C# - Fanatic!
    http://www.sancsoft.com/


  22. #22
    The CSS Clinic is open silver trophybronze trophy
    SitePoint Award Recipient Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    37,876
    Mentioned
    103 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by lloydi View Post
    Ah, that changes things then. The solution is *easy*:

    body {display:none;}

    ;-)

    lol - I'm not accepting that though

    I've included an attachment in post #18 as my site seems to be still down.

  23. #23
    The CSS Clinic is open silver trophybronze trophy
    SitePoint Award Recipient Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    37,876
    Mentioned
    103 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by Bob Carologees View Post
    My thoughts on this can be summed up as followed:

    :SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS

    Have you fallen asleep Bob

  24. #24
    Posts rarely lloydi's Avatar
    Join Date
    Jan 2002
    Location
    Swindon UK
    Posts
    617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Bob Carologees View Post
    My thoughts on this can be summed up as followed:

    :SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
    Hey Bob, have you kidnapped my dog?

    Build Your Own Web Site the Right Way!
    A beginners' HTML/CSS book with web standards at its heart
    The Ultimate HTML Reference
    A complete reference, in glorious hardback

  25. #25
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Blake it's a bit harder then you may think .
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •