scroll using css
-
hi, i have a scrollable datagrid(using div tag).i have made the header row fixed using cssClass which i added in the tag in <head> section of the page's html.i added another cssClass in a second <style> tag just below the first one to make the first two columns (which are template columns and cssClass added using itemStyle-cssClass property in the header)fixed while scrolling horizontally. but the problem is when i run it, the internet explorer hangs.it just freezes and i have to close it using ctrl+alt+del.i am having this problem only after i added the second style tag.i am givin the code for the second style below <style type="text/css">.FreezingCol { Z-INDEX: 1; LEFT: expression(document.getElementById("freezingDiv").scrollLeft); POSITION: relative } the other style to make the header fixed is .DataGridFixedHeader { POSITION: relative; TOP: expression(this.offsetParent.scrollTop); BACKGROUND-COLOR: white } is there anything wrong with the style?can i achieve the functionality (i.e. having a fixed header and making the first two columns fixed while scrolling horizontally) with the two styles note: i tried adding the cssclass in a separate style sheet but it threw an error saying "expression(this.offsetParent.scrollTop is not a valid value of TOP property thanks in advance vinodh -- modified at 23:57 Sunday 19th February, 2006
-
hi, i have a scrollable datagrid(using div tag).i have made the header row fixed using cssClass which i added in the tag in <head> section of the page's html.i added another cssClass in a second <style> tag just below the first one to make the first two columns (which are template columns and cssClass added using itemStyle-cssClass property in the header)fixed while scrolling horizontally. but the problem is when i run it, the internet explorer hangs.it just freezes and i have to close it using ctrl+alt+del.i am having this problem only after i added the second style tag.i am givin the code for the second style below <style type="text/css">.FreezingCol { Z-INDEX: 1; LEFT: expression(document.getElementById("freezingDiv").scrollLeft); POSITION: relative } the other style to make the header fixed is .DataGridFixedHeader { POSITION: relative; TOP: expression(this.offsetParent.scrollTop); BACKGROUND-COLOR: white } is there anything wrong with the style?can i achieve the functionality (i.e. having a fixed header and making the first two columns fixed while scrolling horizontally) with the two styles note: i tried adding the cssclass in a separate style sheet but it threw an error saying "expression(this.offsetParent.scrollTop is not a valid value of TOP property thanks in advance vinodh -- modified at 23:57 Sunday 19th February, 2006
-
hi, im not a pro in asp.net...pretty new to it...can you be more explanative? i dint get u... thanks vinodh
I'd give you a link but this comes from my desktop MSDN so heres the text sTop Variant that specifies or receives one of the following values: auto Default. Default position according to the regular HTML layout of the page. length Floating-point number, followed by an absolute units designator (cm, mm, in, pt, pc, or px) or a relative units designator (em or ex). For more information about the supported length units, see CSS Length Units Reference. percentage Integer, followed by a percent sign (%). This value is a percentage of the height of the parent object. 1 line of code equals many bugs. So don't write any!!