Jump to content

Need to remove hidden div from the flow SOLVED with thanks in the last post


niche
 Share

Recommended Posts

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 by niche
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...