www.webdeveloper.com
Results 1 to 2 of 2

Thread: fixed positioning isn't staying fixed in IE

  1. #1
    Join Date
    Sep 2008
    Posts
    104

    fixed positioning isn't staying fixed in IE

    I have a span tag that I need to keep in a fixed position so when I scroll the page it stays put. It just won't stay put though, and the example I have works on the example page at w3 schools. This is driving me nuts. It works fine in Firefox, but not in IE8 or IE7. Any help is appreciated. My code is below...

    Code:
    <style type="text/css">		
    		#leftcolumn { 
    		float: left
    		}
    		
    		#rightcolumn { 
    		padding-top: 40px; 
    		margin-left: 20px;
    		}
    		
    		#content {
    		position:fixed;
    		top:30px;
    		right:5px;
    		}
    		
    		#main {
    		overflow: auto
    		}
    
    		</style>

    Code:
    <div id="main">
    	<div id="leftcolumn">
    	<%
    	dim fs, f
    	set fs=Server.CreateObject("Scripting.FileSystemObject")
    	set f=fs.GetFile("C:\filepath\file.xml")
    	response.write("Last Updated: " & f.DateLastModified)
    	set f=nothing
    	set fs=nothing
    	%>
    
    	<span id="output"></span>
    	</div> 
    	
    	<div id="rightcolumn">
    	<span id="content"> </span>
    	</div>	
    </div>
    </fieldset>

  2. #2
    Join Date
    Sep 2008
    Posts
    104
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">

    just had to switch my doc type to the above. works now.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles