January 19th, 2009, 02:38 PM
CSS Div offset
Just wondering if there was a way to offset div tags. What I am trying to do is a pop up div tag with a show/hide behavior in DW. right now I have the position absolute and top and left sitting right over it in the left top corner. Is there a way to off set it so the pop up shows to the right top corner? I guess i'm being confused with the position attribute and don't even know if I really need it.
Edit: So here is an example of what I have
Now I have the show/Hide function working but how do I get the "popup" to show at the top right corner of the div called "pic"
<div style="a whole lot of inline style that is dynamic">
<img src="a dynamic pic" />
txt in pop
Last edited by rico1931; January 19th, 2009 at 03:13 PM.
January 22nd, 2009, 01:38 PM
Have you tried using float: right; in the pop up div?
Hope this advice helps.
If so please show your appreciation by adding reputation points (click the Give Rep button on the bottom bar of the post).
- Post your code - Post your errors - Be clear - Be courteous -
AND PLEASE...Finalise your thread with a solution or confirmation that the last advice worked or failed.
Visit My ASP Free Members Club Profile
January 27th, 2009, 08:55 AM
can anyone tell me how to make this pop up box work next to this graphic? I just want a pop up box to show up next to a graphic here is the code on the .asp page
And here is the CSS
<div style="border:2px solid #FF9900; position:absolute;
<img src=" SiteImages\BVAL_Images\BVAL-XL.jpg"
width="100px" height="100px" />
Some kind of text here
<!-- End of DESCRIPTION -->
</div><!-- End of Graphic tag -->
Please note that the div tag "Graphic" is not defined here in the CSS, but in the asp code to make it dynamic.
border: 2px solid #FF9900;
border:2px dotted #FF990;
Description is withing the div Graphic as you can see.
Thank you for your time and help