GentlemanSquid Posted May 21, 2011 Share Posted May 21, 2011 (edited) I have set the position to absolute but when I set the top and right to 0 it goes to the top right of the page not the containing div. How do I fix this? Also I don't really get what positioning is, could someone explain? Why does it do this when in dreamweaver? This is not my site. Edited May 21, 2011 by gta_talk Link to comment Share on other sites More sharing options...
nightwalker83 Posted May 21, 2011 Share Posted May 21, 2011 What css/html are you using? Link to comment Share on other sites More sharing options...
GTArv Posted May 21, 2011 Share Posted May 21, 2011 http://www.w3schools.com/css/css_positioning.asp An absolute position element is positioned relative to the first parent element that has the position property set to anything other than static (the default value). If no such parent is found, the element is positioned relative to the <html> block. In your case, set the position property of the container div to fixed/relative/absolute and you'll see the image positioned with the div as reference. Link to comment Share on other sites More sharing options...
GentlemanSquid Posted May 22, 2011 Author Share Posted May 22, 2011 Thanks alot, it really helped 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