Note that there are some explanatory texts on larger screens.

plurals
  1. POElement moving when on mobile device
    primarykey
    data
    text
    <p>I've been tearing my hair out with this one for a whole day so any help/advice is welcomed!</p> <p>Basically, my new project uses the Detect mobile browsers script, to check if the user is on a mobile device and if so disable the normal style sheet and enable the mobile style sheet. </p> <p>I have managed to work out most of the kinks with it but for some reason I am having a problem with a content slider in one of the sections, it has two inline elements in each slide, one floating left (text) and one floating right (image). For some reason when the second slide is clicked the image moves down below the text. Usually this would happen if there is no room but this is not the case as there is plenty of room for both elements. </p> <p>This only happens on a mobile device, so you can actually see what I mean by going to <a href="http://beta.residencyradio.com" rel="nofollow">http://beta.residencyradio.com</a> and going to the features section, the current version I have working is for tablets, so it is best viewed there.</p> <p>My thoughts are this must be to do with something in this snippet of code in the mobile stylesheet (below), but I'm not too sure what.</p> <pre><code>#feat { width: 60em; margin-top: 3.125em; display: inline-block; } .feat_container { width: 23.4375em; display: inline-block; margin-top: 9.0625em; margin-bottom: 9.0625em; float: left; } .feat_container p { font-size: 1.125em; line-height: 1.2em; margin-bottom: 0; } .feat_logo { width: 23.4375em; display: inline-block; float: right; margin: 0; } #feat_nav { float: left; display: inline-block; } #feat_nav a { background: url('../images/dot.png') no-repeat; font-size: 16px; padding-right: 9px; text-decoration: none; margin-right: 5px; color: rgba(1, 1, 1, 0); } #feat_nav a.activeSlide { background: url('../images/dot_active.png') no-repeat; } #PSM .feat_container { margin-top: 8.375em; margin-bottom: 8.375em; } #PSM, #banger, #hot, #eclectic, #definitive, #guest { width: 60em; } #guest .feat_container { margin-top: 7.6875em; margin-bottom: 7.6875em; } </code></pre> <p>Any help at all would be greatly appreciated!</p> <p>Thanks,</p> <p>Michael</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload