Peng Zhang on August 29th, 2012

Problem Working on a project, I encountered a weird problem where the background-color of a div does not take effect. Cause The parent or ancestor element has been moved beyond its normal position involving a negative pixel amount – in my case, a negative pixel amount to move the div content up to the top; [...]

Continue reading about CSS background-color does not show

Peng Zhang on October 20th, 2011

I modified the alternate css file attached to the root site /ist/. Below are the modifications: Thanks to this web article.

Continue reading about Fixing Background Color for Sharepoint List Dataview

Peng Zhang on October 18th, 2011

I found that $(‘img[src="/images/folder.gif"]‘) works fine in Firefox, but not work in IE. And the workaround is to use this $(‘img[src*="folder.gif"]‘), which will work both in FF and IE.

Continue reading about jQuery Selector with Attribute Filtering Does not Work in IE

Peng Zhang on March 22nd, 2011

IE 7 does not honor the clear:both sytle rule. So the container div’s height does not include the entire height of some divs that are floated left or right inside it. As this seems to be a big common problems, there are too many people offer solutions, which I find are too complicated and somehow [...]

Continue reading about IE7′s Clear Both Issue

Peng Zhang on March 21st, 2011

I have recently encountered this situation where some Chinese text is shown on screen apparently with mixed fonts, and yet I know the text has styles applied to them consistently – at least they are expected to look the same across characters. What I found was there was no specific Chinese font included in the [...]

Continue reading about Chinese Text Displays With Mixed Fonts

Peng Zhang on August 30th, 2010

I have seen articles on how to achieve adding link icons based on the file type of the linked web resource. Two methods exist for the purpose: one through the use of pure CSS, another through the use of both CSS and jQuery. Which is better? Initially I thought if I could achieve the purpose [...]

Continue reading about adding link icon based on file type: pure css or css+jQuery