I am trying to coding for padding, width based on previousSibbling Div id.
Based On Prev Div id’s Width, Padding, I will calculate current width,padding. It is working in Mozilla. But IE PrevSibbling Div’s Width, padding coming as “auto” and i tried to add 10px to width. But it is not working. Div functionality working as “auto” properties only.
Please suggest me. Code is too simple. two simple divs only.
I am trying to coding for padding, width based on previousSibbling Div id. Based
Share
ok… the question isnt terribly clear. BUT, if its what I think it is, make sure you have a proper DOCTYPE set in your html file. IE will adjust how it handles CSS based on that. Without a DOCTYPE, ‘auto’ will not work in IE the way it does in FF, and some of the spacing behaves differently. So try adding something like this to the top of your html file, if you dont already have it: