Notices

Great community. Great ideas.

Welcome to ASP/Free, a community dedicated to helping beginners and professionals alike in improving their knowledge of Microsoft's development and administration technologies. Sign up today to gain access to the combined insight of tens of thousands of members.

Thread: CSS Div offset

Results 1 to 3 of 3
Share This Thread →
  1. #1
    rico1931's Avatar
    rico1931 is offline Contributing User
    Join Date
    Jun 2008
    Location
    Buffalo
    Posts
    78
    Rep Power
    7

    CSS Div offset

    Howdy folks,

    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
    Code:
    <div id="pic">
       <div style="a whole lot of inline style that is dynamic">
          <img src="a dynamic pic" />
        </div>
                <div id="popup">
                    txt in pop
                </div>
    </div>
    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"


    Thanks
    -X
    Last edited by rico1931; January 19th, 2009 at 03:13 PM.

  2. #2
    icoombs's Avatar
    icoombs is offline Moderator
    Join Date
    Dec 2006
    Location
    West London, UK
    Posts
    2,715
    Rep Power
    931
    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

  3. #3
    rico1931's Avatar
    rico1931 is offline Contributing User
    Join Date
    Jun 2008
    Location
    Buffalo
    Posts
    78
    Rep Power
    7
    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

    Code:
    <div id="Graphic">
    
            <div style="border:2px solid #FF9900; position:absolute; 
    
            top:350px; left:150px;">
             
           <img src=" SiteImages\BVAL_Images\BVAL-XL.jpg"  
    width="100px" height="100px"  /> 
          
      	</div>
            
    <div id="DESCRIPTION">
          Some kind of text here      	
    </div> 
          <!-- End of DESCRIPTION -->
    
               
                   
          </div><!-- End of Graphic tag -->
    And here is the CSS
    Code:
    #MIDDLE {
    	position: relative;
    	width: 800px;
    	overflow: auto;
    	border: 2px solid #FF9900;
    	float:left;
    	margin-left: 20px;
    }
    #DESCRIPTION{
    	width: 200px;
    	border:2px dotted #FF990;
    	background-color:#FFCC00;
    	position:relative;
    }
    Please note that the div tag "Graphic" is not defined here in the CSS, but in the asp code to make it dynamic.

    Description is withing the div Graphic as you can see.

    Thank you for your time and help

Share This Thread →

Become Part of This Conversation

Join NowFor Free!

Similar Threads

  1. Stocks up as deals, oil offset downgrades (Reuters)
    By RSS_News_User in forum Business News
    Replies: 0
    Last Post: August 25th, 2005, 12:03 PM
  2. Stocks rise as deals offset oil (Reuters)
    By RSS_News_User in forum Business News
    Replies: 0
    Last Post: August 22nd, 2005, 06:03 PM
  3. Stocks edge up as deals offset oil (Reuters)
    By RSS_News_User in forum Business News
    Replies: 0
    Last Post: August 22nd, 2005, 05:03 PM
  4. Stocks Flat, CPI Concerns Offset Oil (Reuters)
    By RSS_News_User in forum Business News
    Replies: 0
    Last Post: March 23rd, 2005, 01:01 PM
  5. Stocks Flat as Oil Prices Offset Earnings (Reuters)
    By RSS_News_User in forum Business News
    Replies: 0
    Last Post: March 17th, 2005, 09:00 AM

ASP Free Advertisers and Affiliates