"RobG" <rgqld@iinet.net.au> wrote in message
news:URzBf.197$Nv4.38321@news.optus.net.au...
> News wrote:
>>>I have two functions both work in Firefox and Netscape but only one works
>>>in IE. Both are working on different <DIV> tags. My CSS is an external
>>>file, I linked it to the html file.
>>>
>>>CSS
>>>div.a
>>>{
>>>width: 1%;
>>>background-color: #9900FF;
>>>height: 5%;
>>>}
>>>div.b
>>>{
>>>width: 100%;
>>>background-color: #95F209;
>>>height: 1%;
>>>}
>>>
>>
>>
>> I did not know that I was suppose to place [position: absolute;] in my
>> CSS but when I tried it out of dumb luck it worked.
>
> Dumb luck? In other words, you have no idea why it didn't work in the
> first place, nor why your 'fix' has made it work now. There is no need at
> all to put position: absolute in the CSS to make it work (at least as far
> as I can tell).
>
> You never explained what the script was supposed to do, nor what the
> symptoms of not working in IE were. Setting position to absolute in the
> CSS likely has far more consequences than you realise and probably hasn't
> 'fixed' whatever was wrong in the first place.
>
> Your issue is much more likely due to CSS, post in
> comp.infosystems.www.authoring.stylesheets to find out about that and why
> position: absolute should rarely be used.
>
>
> --
> Rob
OK I will thanks
Received on Tue Feb 7 21:23:19 2006