Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8877515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:29:11+00:00 2026-06-14T19:29:11+00:00

I have a javascript code that writes out a list. But the words are

  • 0

I have a javascript code that writes out a list. But the words are written on top of each other making it hard to read. No matter what i put in the list, and no matter the browser I use, the words are written atop eachother. It seems to allow only one word. Like “Salad” but it I use “Salad Cake” the words salad and cake will overlap. Since I don’t see what the problem is, this has proved really hard to research. help?

  $(document).ready(function doEverything(element){
$.getJSON("https://api.foursquare.com/v2/venues/search?ll=-27.58818,-48.523248&         
client_id=L2VWBKPOW45D5X3FJ3P4MJB5TGVJ4ST2J005RIVAFIWG44ND%20&   
client_secret=ZKDAOLHASCA31VUOGMBTAS3RFYUOMXL4IFFYPRURIDQA3QMA%20&v=20111107",
    function(data){

one=data.response.venues[0].name;
two= data.response.venues[1].name; 
three= data.response.venues[2].name; 
four= data.response.venues[4].name; 



    var list = [];


    list[0] = [one];
    list[1] = [two];
    list[2] = [three];
    list[3] = [four];

UPDATE (hand smacks head) The missing code had a style:width of 10px. Solved.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:29:12+00:00Added an answer on June 14, 2026 at 7:29 pm

    The code you have posted (an AJAX call and some data manipulation) is not relevant to how the data ends up being displayed. Look at how you display the data, not how you get the data. Since we’re forced to guess, I’ll list the causes I can think of:

    • The words are split into separate DOM elements and are given position:absolute via CSS. Remove position: absolute, calculate the words’ correct position via javascript (not easy) or simply not split into several elements.
    • The words are split into separate DOM elements and are given width:0 (or any width that’s too small) and overflow: visible (default value for overflow). The treatment is the same – remove the respective width attribute.
    • The element containing the words has width:0, line-height:0 and overflow:visible. This seems unlikely but does not imply separate elements. If this is the case, you can fix this by replacing ordinary spaces by non-breaking spaces, in addition to the correct way of fixing the CSS.
    • The element has negative word-spacing. Why would anyone do that?
    • CSS3 defines text-height and some ruby- properties. Since they are new, I don’t expect them to have any effect in IE8.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a higher-level language that writes out javascript. in other words the
I have basic JavaScript code that needs to tell how many names out of
I am writing a PHP script that takes javascript code and writes it out
I have seen Javascript code that uses parenthesis immediately after a function's closing curly
I have a javascript code that have span tag and inside the span tag
I have some Javascript code that will programmatically register an COM interop assembly by
I have some JavaScript code that works in IE containing the following: myElement.innerText =
I have some javascript code that creates an img tag with a mouseover callback,
I have some Javascript code that creates 2 arrays: One for Product Category and
I have some javascript code that saves a cookie. However, if after saving the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.