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.