question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[beta] challenge html/css output not visible until code is run

See original GitHub issue

Challenge change-the-position-of-overlapping-elements-with-the-zindex-property has an issue. User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

The content from the previous exercise is shown but not the content from the current exercise. The content only reveals itself when the challenge is completed.

    
    
<style>
div {
  width: 60%;
  height:200px;
  margin-top: 20px;
}

.first {
  background-color: red;
  position: absolute;
  z-index: 2;
}
.second {
  background-color: blue;
  position: absolute;
  left: 40px;
  top: 50px;
  z-index: 1;
}
</style>

<div class="first"></div>
<div class="second"></div>

    ```
    

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
no-stack-dub-sackcommented, Jan 26, 2017

Actually, this was reported in #12807, please see that issue, closing this as duplicate

1reaction
tommygebrucommented, Jan 26, 2017

@no-stack-dub-sack after re-reading your earlier posts

@tommygebru When you loaded the challenge, could you see the rectangles in the smartphone element before you adjusted the z-index?”

In short, no.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handling common HTML and CSS problems - MDN Web Docs
Note: One common problem with CSS and HTML arises when different CSS rules begin to conflict with one another. This can be especially ......
Read more >
Create Your First Local HTML/CSS Project - Codecademy
In this article, we'll cover how to take the CSS skills you've learned on Codecademy and use them to create a basic web...
Read more >
Selecting content on a web page with CSS selectors
Explain how to run CSS Selector queries in a browser. Introduce the CSS Selector syntax. Use the CSS Selector syntax to select elements...
Read more >
14 Best HTML & CSS Code Editors for 2022 - HubSpot Blog
Want to write clean code faster? An HTML and CSS code editor can help. Discover the perks of having a code editor and...
Read more >
The 3 biggest misconceptions of no-code - Webflow
Here, you start off with content like Intro to HTML & CSS, and there's a heavy emphasis on how code works behind the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found