473,513 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fixed Positioning!

12 New Member
I've tried to create a sidebar that uses the fixed positioning property. However after looking through various tutorials and how to's of the web I can't find a bugger wrong with my code.

This is good i hear you say.... well no its not. The problem is that the frigging sidebar isn't fixed!

You maybe able to tell but this is pissing me off to say the least. So i'm praying that someone with much superior CSS knowledge then I can solve the problem.

Expand|Select|Wrap|Line Numbers
  1. <html>
  2.  
  3.  
  4.  
  5. <head>
  6.  
  7. <style type="text/css">
  8. *** i did have .sidebar here with the css code i've currently got in the style but it didn't affect it at all....!***
  9. </style>
  10.  
  11. </head>
  12.  
  13. <body style = "background: black url(HeaderBG.png) repeat-x top left">
  14.  
  15. <div class = "Sidebar" style = "position: fixed; top: 10%; left: 2%; border-color: white;">
  16. <table width = "150" height = "500" border = "1">
  17.     <tr>
  18.         <td>
  19.             Some Text
  20.         </td>
  21.     </tr>
  22.     <tr>
  23.         <td>
  24.             Some Text
  25.         </td>
  26.     </tr>
  27. </table>
  28. </div>
  29.  
  30. </body>
  31.  
  32. </html>
  33.  
I've included the header graphic for use if you want to test it out.

(( Please note that im using IE.7 to test this so as far as i'm aware the position: fixed; property should work no problem. ))

Please help someone !?!?
Attached Images
 
Feb 15 '09 #1
9 2557
Mr Prister
12 New Member
By the way before anybody says.... i've already added a load of content to make the page longer. So the problem isn't that "i can't see that the sidebar is working because the page isn't long enough." If that makes sense?
Feb 15 '09 #2
Dormilich
8,658 Recognized Expert Moderator Expert
which browser are you using? (IE doesn't know position: fixed)
Feb 15 '09 #3
Mr Prister
12 New Member
@Dormilich
IE 7.... as far as i was aware IE 7 supported position: fixed;

"Note that IE 7 from beta 2 upwards does support position: fixed; "

And i can happly view other people's fixed positioned divs....

I'm confused =[
Feb 15 '09 #4
drhowarddrfine
7,435 Recognized Expert Expert
Where are you adding the text? If you create a <p> and fill the screen with text, it works fine in FF. Not on Windows right now so can't check IE.
Feb 15 '09 #5
hsriat
1,654 Recognized Expert Top Contributor
IE considers it to be position:fixed only if accomplished with an XHTML strict doctype.
Feb 15 '09 #6
Dormilich
8,658 Recognized Expert Moderator Expert
@hsriat
which is kind of paradox since IE doesn't handle XHTML natively.......
Feb 15 '09 #7
David Laakso
397 Recognized Expert Contributor
Please see Tarquin for one opinion regarding browser support for, and the implementation of position:fixed;
http://www.howtocreate.co.uk/fixedPosition.html
Feb 15 '09 #8
drhowarddrfine
7,435 Recognized Expert Expert
No, it does not need to be XHTML Strict but HTML Strict will do just as well.
Feb 15 '09 #9
hsriat
1,654 Recognized Expert Top Contributor
OK.... "strict dtd" was my main point. :)
Feb 16 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

9
17700
by: Paul Trautwein | last post by:
I'm trying to get an image to float in a window despite scrolling. I've gotten it to work on my Mac using IE 5.2, Netscape, and Safari, but it goes wonky when I test it on a PC. (testing with IE...
6
5394
by: Mason A. Clark | last post by:
Masters: On two or three-column layouts, one column often has a list of links. Scrolling the page hides them. I'm aware there's supposed to be the ability to fix the column (frame-like). I...
10
2422
by: CMAR | last post by:
Mason C. posted an here an innovative technique for using Javascript and CSS to accomplished fixed positioning that works with IE. Does anyone have the URL of his homepage? Thanks, CMA
1
2450
by: Frances Del Rio | last post by:
don't know if I'll succeed, have spent a lot of time already trying to figure this out: I would like to position a footer (co. name, address, etc..) at the bottom of browser page, in such a way...
25
36325
by: Michael Schuerig | last post by:
I'm trying to do something seemingly very simple, but it's brought me close to crushing my head on the keyboard. All I want is a table where the head row is fixed and the body columns below are...
3
1966
by: Axel Siebenwirth | last post by:
Hi, I would really love to get some help from you since I am starting to become completely desperate with something quite simple... I am trying to transfer a fixed-positioning-implementation...
5
4200
by: msubodh | last post by:
I have been able to piece together the following code to created a fixed div so that it stays in place even when scrolling (and does it smoothly as opposed to other approaches that have jerky...
31
3046
by: Sarita | last post by:
Hello, this might sound stupid, but I got a really nice homepage template which unfortunately is a 3-Column Fixed Width CSS format. Now I don't have any content for the right column and would...
2
2187
by: soulmach | last post by:
Hello forum friends. I performed a search on this topic, but I couldn't find anything useful. I wasn't really sure what to search. First I'll state what I am trying to do. I recently agreed to...
0
7267
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7175
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7391
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7553
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7120
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5697
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.