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.

Can't move cursor all the way across the line

See original GitHub issue

In the line I’m supposed to edit, Line 37 (with the “Like” button), I can only move the cursor to the right six places, then it goes to the next line, as if there isn’t any more text, and starts at the next line. I can’t click within the line to place the cursor there, either.

Challenge Taste the Bootstrap Button Color Rainbow has an issue. User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:


<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
  }

  .smaller-image {
    width: 100px;
  }
</style>

<div class="container-fluid">
  <h2 class="red-text text-center">CatPhotoApp</h2>

  <p>Click here for <a href="#">cat photos</a>.</p>

  <a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>

  <img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">
  <button class="btn btn-block">Like</button>
  <p>Things cats love:</p>
  <ul>
    <li>cat nip</li>
    <li>laser pointers</li>
    <li>lasagna</li>
  </ul>
  <p>Top 3 things cats hate:</p>
  <ol>
    <li>flea treatment</li>
    <li>thunder</li>
    <li>other cats</li>
  </ol>
  <form action="/submit-cat-photo">
    <label><input type="radio" name="indoor-outdoor"> Indoor</label>
    <label><input type="radio" name="indoor-outdoor"> Outdoor</label>
    <label><input type="checkbox" name="personality"> Loving</label>
    <label><input type="checkbox" name="personality"> Lazy</label>
    <label><input type="checkbox" name="personality"> Crazy</label>
    <input type="text" placeholder="cat photo URL" required>
    <button type="submit">Submit</button>
  </form>
</div>

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
katgirl28888commented, Apr 4, 2017

I have this problem frequently. It’s not challenge specific; after you load a page (I’m using chrome, looks like the poster is using firefox), you have to type somewhere in the code box to reset it to the correct line. It looks like what’s happening is the clicking in the box is misaligning the cursor (usually below) or maybe the text is being displayed a line above where it should be? Example:

  <button class="btn btn-block ">Like</button>
  <p>Things cats love:</p>

If I click at the end of </button>, you’d expect the blinking cursor to show up there. Instead, it shows up in line with the end of </p>, (about between the b and l in "btn-block"). If I begin typing, it shifts the cursor down a line and inserts text at the end of the second line, not where I clicked, at the end of the first. After it’s fixed once, it usually doesn’t happen again unless I reload the page or go to a different one.

It doesn’t happen every time and whatever’s causing it to happen seems arbitrary, but this is definitely an issue

1reaction
ooadecommented, Mar 21, 2017

Works fine here… Can’t reproduce

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cursor won't move to certain portion of the screen
I have a 2019 13" MacBook Pro. My cursor won't move past a certain point on my screen. It is as if there...
Read more >
My text cursor keeps going to the left side and I can't click on
Go into Settings > Devices > Mouse > Additional Mouse Options > Pointer Options tab, and UN-check the "Automatically move pointer" option box...
Read more >
Dual Screens Not Able To Move Mouse To Second Screen
Dual screens and why you're not able to move the mouse to your second screen correctly, is what we look at in this...
Read more >
Fastest way(s) to move the cursor on a terminal command line?
What is the fastest way to get there? What I usually do is Ctrl - A to get to the beginning and then...
Read more >
Moving the Cursor (Learning the vi Editor, Sixth Edition)
For example, once you're at the beginning or end of a line, you cannot use h or l to wrap around to 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