I am creating an application using Instagram’s API, and a series of DIVs
Wrapper,
Image Container,
Image,
PopUp (hover)
user profile image
user name
date image was taken
I am hoping to have the Profile image, user name, and image displayed all on one line.
Here is a jsFiddle: http://jsfiddle.net/nAfxc/1/
You need to specify a width for your
.instagramclass.See the jsFiddle here.
In this case, I just put 10,000px as an example; you might want to calculate the actual number. May be something like this:
Edit: to remove the
<br>tags, this would do the trick:Edit, after clarification:
Note: when you say “I am hoping to have the Profile image, user name, and image displayed all on one line.”, how is anyone supposed to guess that you really mean “I want to position each class
.igHovernext to class.igHoverProfPic“?Final Edit: I just figured out there was something very wrong with the HTML you’re generating!!! You should remove the closing tag of this:
<div class='igHoverContent' />\so that the data is enclosed into the tag instead of being out of the tag!!!; and then just change your CSS to this:See the final output here: http://jsfiddle.net/nAfxc/6/