Ie6 Relative Positioning Bug - how to avoid

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > CSS (Cascading Style Sheets)

Ie6 Relative Positioning Bug - how to avoid

realthor
i have the following definition in my style and i'd like all elements in site to be relatively positioned against their parents so i can position any of them absolute when i need to:

CODE
{     margin:0; padding:0;
          font-family:verdana,arial,sans-serif;
     font-size:11px;
     text-align:left;
     background:none;
     color:black;
     position:relative;
    }


All good in opera9 and FF2beta but IE6 stills the page without the possibility of scrolling it down.
Any ideas?

Reply

jlhaslip
Position:relative is the default positioning and should not have to be declared there.
Also, Absolute positioning is a problem child in many situations. Best to avoid it unless absolutely required (pun intended) for the purpose.
Having said that, I would be tempted to remove the position:relative from the Universal selector and declare it on the direct ancestor to affect the elements you want positioned absolutley. And any descendants should be reset to position:relative.
Might work.

*edit*
I knew I had a link...

http://www.positioniseverything.net/abs_relbugs.html

And also, check the CSS Creator site for their discussion about 'haslayout'. Simply stated, trigger the 'haslayout' condition using their hack. Typically, add a height to the Parent contiainer, but read about it first, there might be something else that would work better for you. Since you haven't posted a particular example, it is difficult to say for sure which trigger you should use to set 'haslayout'.

See also: http://www.satzansatz.de/cssd/onhavinglayout.html

 

 

 


Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. ie6 positioning bugs padding - 14.17 hr back. (1)
  2. ie6 problems padding absolute relative positioning - 42.18 hr back. (1)
  3. ie 6 relative - 48.39 hr back. (1)
  4. ie bug absolute relative - 67.55 hr back. (1)
  5. ie6 position relative - 68.57 hr back. (1)
  6. ie position relative random bug - 69.83 hr back. (1)
  7. ie6 absolute position - 70.22 hr back. (1)
  8. css hr ie6 - 70.28 hr back. (1)
  9. ie6 haslayout position relative absolute problem - 76.87 hr back. (1)
  10. position relative hack in ie6 - 85.93 hr back. (1)
  11. css ie6 relative - 89.68 hr back. (1)
  12. ie6 relative positioning bug - 44.64 hr back. (2)
  13. ie6 relative position fix - 96.14 hr back. (1)
  14. ie6 padding affects child elements - 107.81 hr back. (1)
Similar Topics

Keywords : ie6 relative positioning bug avoid

  1. Looking For A Fix To Use "fixed" Positioning In Ie - (8)
  2. New Css Ideology - avoid ie hacks (12)
    According to this article we should stop hacking our css in a given way, so that future versions
    of browser agents will always display our sites correctly. Its mainly about IE, older and newer
    versions. And, it bassically shows how to 'hack down' the holly hack (A IE only css hack)
    so that it becomes standard according to the above article, so that our css will work in past
    versions of IE and the feared IE7. So i started coding a 'lesser' site (its not a big
    project, yet i want to start doing the things right) and did what i thought was correct but ha...
  3. Css Positioning Trouble - in FIREFOX! yet IE displays it as i want (6)
    Wait wait! im not complaining about firefox! i couldnt ever do it, but the fact is that for
    the very darn first time IE is actually showing the thing as i want it... I have a table inside a
    div, and i want the table to be right aligned, and IE6 does so (not the same for ie for mac though)
    but firefox keeps it to the left, the best thing i've achieved with this is a fixed position
    which does not look good while resizing...... ive also tried floating and even adding a wrapper...
    so i dont know what to do... this is the site: http://www.cucea.udg.mx/cucea/gr...



Looking for ie6, relative, positioning, bug, avoid

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for ie6, relative, positioning, bug, avoid

*MORE FROM TRAP17.COM*
advertisement



Ie6 Relative Positioning Bug - how to avoid



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE