Results 1 to 16 of 16
Thread: Test your CSS skills - Number 4
May 24, 2004, 06:10 #1
- Join Date
- Jan 2003
- Hampshire UK
- 183 Post(s)
- 6 Thread(s)
Test your CSS skills - Number 4
This weeks test is an easy one and will give those new to css a chance to have a go as well.I will alternate each week between easy and hard to try to please both camps. (Although I expect better solutions from the more accomplished so theres nothing to stop you trying the easy ones anyway)
There are two simple tasks this week and can be seen in the attached image.
The first task is to re-create some text that is red on the top half and blue on the bottom half. This will introduce you to the css positioning properties and will allow you to gain experience in placing your layout.
The second task is in much the same vein and is just the alphabet with alternating coloured text of red and blue. In this test you are not allowed to use lots of spans in this type of format:
<p class="blue">a<span class="red">b</span>c<span class="red">d</span>e<span class="red">f</span> etc..... (you get the picture)
You are allowed to use only one nested element in the paragraph which may or may not be a span depending on your solution but obviously must be valid code.
- No frames or iframes
- NO TABLES
- No inline styles
- No images
- No expression,conditional comments, behaviours etc.
- Use Valid CSS
- Use Valid xhtml
- No hacks, no child selectors, no universal selecors, no means of offering separate code to each browser. The same code must work for both browsers.
- Must work in Firefox and ie6 exactly the same as my example above
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. (The methods used in this example won't make sense if css is turned off but that's not the point of this exercise anyway.)