Quantcast
Channel: Peng's Blog » CSS
Browsing all 9 articles
Browse latest View live

IE Quirks with CSS Sprites

The idea of using CSS Sprites to implement button states can easily go wrong as I found out. And I spent quite some time trying to figure out the problem. Here is what I found: in the :hover CSS...

View Article



IE’s Quirks with CSS Pseudo Class :hover

If the <a> tag does not contain a href attribute, the :hover CSS pseudo class does not work in IE 6. The same <a> tag without the href attribute would work just fine in Firefox. I found out...

View Article

Image Tag and a Layout Problem in IE7

I found out the hard way that when you use divs to lay out part of a page instead of tables, if there is no width and height attributes in the IMG tag, in IE 7, the right most div that contains an IMG...

View Article

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

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...

View Article

Chinese Text Displays With Mixed Fonts

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...

View Article


IE7′s Clear Both Issue

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...

View Article

jQuery Selector with Attribute Filtering Does not Work in IE

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. No related...

View Article

Fixing Background Color for Sharepoint List Dataview

I modified the alternate css file attached to the root site /ist/. Below are the modifications: Thanks to this web article. Related posts:Cannot Edit or Delete a Sharepoint List Item Copying and...

View Article


CSS background-color does not show

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...

View Article

Browsing all 9 articles
Browse latest View live




Latest Images