I wanted to make the img part have it’s own div for styling purposes, so I did this… basically a mirror of the div style of the (working) first part of the code:
You’ll need to post just the HTML that is generated from the PHP for us to help with this. (We need to see what the browser sees, and PHP is removed before the page reaches the browser.)
Ideally,post a live link, or at least the full page code with CSS embedded, to make it easier to examine the page. Also try to account for any missing images.
really rough, but I’m hurried and have to shut down in a minute… but here is the output of the first (working version) and the second (not working) version.
works:
<div id="container">
<div id="genre">Thriller
<div id ="status">Unwatched: 0, Watched: 1</div>
</div>
<div id='movie' class='WATCHED'>
Movie Name
<img src='status_watched.jpg'>
</div>
<br/>
</div>
doesn’t work:
<div id="container">
<div id="genre">Thriller
<div id ="status">Unwatched: 0, Watched: 1</div>
</div>
<div id='movie' class='WATCHED'>
Movie Name
<div id="moviestatus">
<img src='status_watched.jpg'>
</div>
</div>
<br/>
</div>
Sorry if that doesn’t help at all but I don’t have a live example just yet…
The only difference is that I have put a div around the <img> tag so that I may style the img separately from the movie name, but the img is not displaying on the same line as the movie name (it IS displaying correctly in the first version).
Again sorry if my examples are not helpful.
CSS is the same as in the original post obviously…
Please let me know if I can clarify anything else… if it is really too hard to help without a live example though, I understand.
Sorry, I’m an idiot, and what I am trying to do is THIS:
<div id="container">
<!-- these appear next to eachother... -->
<div id="genre">Thriller
<div id ="status">Unwatched: 0, Watched: 1</div>
</div>
<!-- these do not appear next to eachother -->
<div id='movie' class='WATCHED'>
Movie Name
</div>
<div id="moviestatus">
<img src='status_watched.jpg'>
</div>
<br/>
</div>
Because I need to style the moviestatus separately and NOT have it affected by the class on the movie div…
But it always appears on the next line… is there any way at all to make it appear on the same line as the div above it?
I’ve tried just having the img outside of the movie div, but not within a div itself, but it still appeared on the next line. Gotta be some sort of CSS I am missing? Or am I just going to have to give it a negative top margin to put it in place…