Archive for the ‘Templates’ Category

The joy of styling embedded objects

Friday, October 2nd, 2009 by Jonathan Shroyer

Oh the fun we have working on so many different projects! Today I had to put a style on the actual embedded object since the div around it didn’t work out for it. Obviously, it couldn’t be as easy as it sounds so I thought I would pass on my workarounds for all of you. The following code assumes you are using the conditional IE CSS code from our blog at http://www.corephp.com/blog/easy-ie-conditional-css-with-no-hacks/

(more…)

Creating a horizontal cross-browser menu

Tuesday, September 29th, 2009 by Jonathan Shroyer

I know there are a million and one examples out there about how to create horizontal menus using unordered lists.  The issue is that most don’t center and have no fixes for menu items that break in the middle of the phrase. This example is for a “typical” horizontal footer menu. (more…)

Forcing IE7 display in IE8 (updated)

Wednesday, June 10th, 2009 by Jonathan Shroyer

I have been developing for IE8 since it was first released. Although they say it’s a final build, it’s actually in a late beta stage. There are several key CSS commands that haven’t been completed yet (such as :first-letter) and some calculations that still aren’t right in the browser. This is why they built the compatibility mode into it. This creates a major issue for web developers because any conditional statements for IE8 that are put in will break the page once it is fixed. I have thought about every possible fix and the only reasonable solution that I’ve found is… kill it!

(more…)

Easy IE Conditional CSS with No Hacks!

Thursday, January 15th, 2009 by Jonathan Shroyer

Any serious CSS person has hacked their way through more ‘Internet Exploder’ issues than they care to talk about. Even if there are only a few small issues to fix in an area, it can be difficult to track them through multiple style sheets (ie. conditional sheet for IE6 & 7). Hacks are just bad practice, so what can you do? There is a better way! I came up with a neat little piece of code that has greatly simplified my life when dealing with cross-browser compatibility.

(more…)

Fixing IE: Stacking classes correctly

Monday, November 17th, 2008 by Jonathan Shroyer

I am once again thoroughly disgusted with IE6. I was working on a CSS template architecture and I needed to stack classes within the same div (ie. div class=”selector1 selector2″). Ordinarily, you can control your styles easily by simply writing in your CSS .selector1.selector2, which lets you stack styles using much less code. Of course, since IE6 is a piece of crap browser, it doesn’t work with stacked classes. If you want to know how to work around it… keep reading!

(more…)


Socialize with us

Visit 'corePHP' on these social networking sites!