Gordon
2009-04-15 11:45:55 UTC
I'm revamping the user interface of our CMS and want to put the
controls for sorting content in its own column. My design entails
having an up arrow at the top of the cell and a down arrow at the
bottom. The rows can vary in height, which complicates things
somewhat.
My first thought was to set the cell that contains the up and down
arrows position: relative and then set the arrow graphics themselves
position: absolute with the top set to 0 for the up arrow and the the
bottom set to 0 for the down arrow. I was expecting I'd run into some
trouble in IE, but ironically it turns out that IE is the only browser
that this functions in as I had expected it to.
I suspect I'm doing something really dumb, but whatever it is that's
wrong just isn't jumping out at me. If anyone else can spot it, or
suggest another approach that'll work cross-browser (including IE6 :
( ), I'd appreciate any help you can offer.
I've built a mockup at http://library.merus.co.uk/newbrowser.html
controls for sorting content in its own column. My design entails
having an up arrow at the top of the cell and a down arrow at the
bottom. The rows can vary in height, which complicates things
somewhat.
My first thought was to set the cell that contains the up and down
arrows position: relative and then set the arrow graphics themselves
position: absolute with the top set to 0 for the up arrow and the the
bottom set to 0 for the down arrow. I was expecting I'd run into some
trouble in IE, but ironically it turns out that IE is the only browser
that this functions in as I had expected it to.
I suspect I'm doing something really dumb, but whatever it is that's
wrong just isn't jumping out at me. If anyone else can spot it, or
suggest another approach that'll work cross-browser (including IE6 :
( ), I'd appreciate any help you can offer.
I've built a mockup at http://library.merus.co.uk/newbrowser.html