I'm getting closer but still have a couple of problems laying out some css. See this fiddle.
When you click on a button the info message appears under the video as desired, but it also moves the div
#help-tips-ipaddown. It should stay where it is.For some reason the length of the info message is longer than the video player. I want it to be the same size. I don't understand as I explicitly have it set to
width: 320px?
Same code as the fiddle:
<p><div id="player-ipad">Video player here</div></p>
<div id="quote"><p></p></div>
<div id="help-tips-ipad">
<p>Read our Guide</p>
<p>Visit our Support Forum and ask a question</p>
<ul>
<li>Text.</li>
<li>More text.</li>
</ul>
</div>
<div id="prettytablediv-ipad">
<p>
<table id="webcam-table" class="pretty">
<thead>
<tr>
<th>Camera Name</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<input type="submit" class="play" value="button1">
</td>
</tr>
<tr>
<td>
<input type="submit" class="play" value="button2">
</td>
</tr>
</tbody>
</table>
</p>
</div>
css:
#prettytablediv-ipad {
width: 550px;
float: left;
}
#help-tips-ipad {
width: 320px;
float: right;
}
#player-ipad {
width:320px;
height:240px;
float: left;
margin: 0 0 15px;
border: 5px solid black;
}
jquery:
$(document).on("click", ".play", function() {
$('#quote p').html("INFO").css({'border': '1px solid', 'margin': '10px 0px', 'padding': '15px 10px 15px 50px', 'background-repeat': 'no-repeat', 'background-position': '10px center', 'color': '#00529B', 'background-color': '#BDE5F8', 'width': '320px','display': 'block','clear': 'left'});
});
Thanks in advance.