niche Posted May 17, 2012 Share Posted May 17, 2012 (edited) I just discovered that hover doesn't work on my mobile device. So, I'm trying to create a similar effect with JS. My problem is I can't get my hidden div out of the flow. I load my page like this and the hidden div disrupts all the placement around the button when it appears. What to do? echo '<button class="button0" onclick="showDiv(this.value)" value="xyz">Item Info</button>';echo '<div id="linkContainer2" style="display:none;"></div>'; CSS:#linkContainer2 { background-color: yellow; width: 300px; height: 50px; margin: 0px 0px 0px 105px;} Edited May 17, 2012 by niche Link to comment Share on other sites More sharing options...
ShadowMage Posted May 17, 2012 Share Posted May 17, 2012 Are you sure that its the div and not something else? 1 Link to comment Share on other sites More sharing options...
niche Posted May 17, 2012 Author Share Posted May 17, 2012 I see it. I needed to close the div. I also changed the position to absolute. On to the next issue. Thanks for keeping me on track ShadowMage! Link to comment Share on other sites More sharing options...
justsomeguy Posted May 17, 2012 Share Posted May 17, 2012 How do you hover on a mobile device? Do you just kind of point at it? Cast a furtive glance? 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now