Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete CSS Kitten Lab #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions css/place-kitty.css
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
/* Select the image with a class of kitty-1 */
write-your-selector-here {
.kitty-1 {
position: absolute;
z-index: 1;
top: 276px;
left: 129px;
}

/* Select the image with id of kitty-2 */
write-your-selector-here {
#kitty-2 {
position: absolute;
z-index: 2;
top: 212px;
left: 369px;
}

/* Select the image inside the element with an id of basket (using its descendent relationship) */
write-your-selector-here {
#basket img {
position: absolute;
z-index: 5;
top: 291px;
left: 319px;
}

/* Select the image based on it being a sibling that follows immediately after the element with an id of ball (using adjacent sibling selector) */
write-your-selector-here {
#ball + img {
position: absolute;
z-index: 4;
top: 260px;
left: 455px;
}

/* Select the image that has an alt attribute value matching "Kitty 5" (using attribute selector) */
write-your-selector-here {
img[alt="Kitty 5"] {
position: absolute;
z-index: 3;
top: 217px;
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.