I’m teaching a friend CSS. I’ve went over the basics of HTML and CSS for here and bought a text book for her to use, but I figured it might be fun, useful to share the lessons and tests I’m preparing for her here in a thread - both to log them. I’m not that experienced at teaching, so feedback on that aspect of it is welcome, as is ideas for exercises. For reference, she’s an art student with a background in photography.
The first test is draw a centered bull’s eye. The target render is attached, the HTML she is working from is as follows:
Michael, thank you so much for sharing this, i am new to webdesign, am only taking my first steps and such lessons are exactly what i need.
Newbies are going to love this thread:)
Yeah, that definitely works. BTW, She’s to do it using padding, margin, height, width, background and color properties. I haven’t gotten into positioning rules but those are coming.
Currently I’m working with a headache of my own - a dropdown animation for menus.
Great stuff folks. I recently decided to move into the 21st century with my (diy) webdesign, and still got alot to learn about CSS. This is one thread I’ll keep an eye on.
When I saw your image from first sight, I thought about using border-radius and background-image, next with position or margin and padding to have these div vertically center, do we have any way to do this?
Here is my answer, I tried a bit
div div div {
width: 100px;
height: 100px;
background-color: green;
}
div div {
width: 150px;
height: 150px;
background-color: red;
top: 25px;
}
div {
width: 200px;
height: 200px;
background-color: yellow;
margin: auto;
border-radius: 200px;
position: relative;
}