sugafree Posted June 17, 2014 Share Posted June 17, 2014 Anyone got some useful idea how to create a div and give it an X on the top right corner, so if user clicks on it, it will fold away with jquery. Should i just create another div within the main one and position it?? It sound too cheap to me, anyone got a better idea? Thanks Link to comment Share on other sites More sharing options...
dsonesuk Posted June 17, 2014 Share Posted June 17, 2014 yes, but not just limited to div, an anchor, or span giving display: block; using position: absolute; within main container given position: relative; will work, with textual 'X' or background image, or img tag itself. Link to comment Share on other sites More sharing options...
sugafree Posted June 17, 2014 Author Share Posted June 17, 2014 Thanks 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