Archive for December 2008

CSS Fact of the Day

December 31st, 2008

I spent the last two days trying to use the overflow:auto property for a div but I kept running into a problem. I had the following class declaration:


.scrollComments {
position: relative;
top: 2px;
left: 0px;
height: 46px;
width: 376px;
overflow-y: auto;
border: solid 1px #dabd61;
}

Pretty simple and also valid; there is nothing special about it. I defaulted the scroll bars to let the browsers define them (which is the only behavior allowed in Safari). It should have worked. I should have seen a vertical scroll bar. But I didn’t. And I couldn’t, for the life of me, figure out why.

After struggling with various decorations and shifting of content, I realized my error. The problem had nothing to do with the content of the div. It also has nothing to do with any other class declarations, layers, javascript, or what have you. The whole problem has to do with Safari and Firefox and how they handle their default scroll bars. The problem was fixed by merely changing the height from 46px to 80px. The div was too small for the scroll bars to appear. It seems that Firefox and Safari do not scale their scroll bars to anything smaller than this.

Man. What an annoying little “feature”.

CSS Fact of the Day | December 31st, 2008 | No Comments »

365 #52: Best reason for New Years btw

December 31st, 2008

365 #52: Best reason for New Years btw | December 31st, 2008 | No Comments »

365 #51: EYES

December 30th, 2008

365 #51: EYES | December 30th, 2008 | No Comments »

365 #50: Wasting away the hours before the Gym

December 29th, 2008

365 #50: Wasting away the hours before the Gym | December 29th, 2008 | No Comments »

365 #49: Kate and Some PCAA people

December 28th, 2008

365 #49: Kate and Some PCAA people | December 28th, 2008 | No Comments »

365 #48: Lee and Jon

December 27th, 2008

365 #48: Lee and Jon | December 27th, 2008 | No Comments »

365 #47: Kate needs a new hat

December 26th, 2008

365 #47: Kate needs a new hat | December 26th, 2008 | No Comments »

365 #46: Sarah wants a present

December 25th, 2008

365 #46: Sarah wants a present | December 25th, 2008 | No Comments »

365 #45: Lee models Twinkie’s Christmas Present

December 24th, 2008

365 #45: Lee models Twinkie’s Christmas Present | December 24th, 2008 | No Comments »

365 #44: KCS necklace

December 23rd, 2008

365 #44: KCS necklace | December 23rd, 2008 | No Comments »

« Older Entries