background preloader

Website design

Facebook Twitter

The 7 CSS Hacks that we should use. Nov 13 2007 If you are trying to do pixel-perfect cross-browser CSS layout, then you have probably ran into problems with IE . I am going to highlight the top 7 CSS hacks that we often use to have pixel perfect design. 1)Box Model Hack The box model hack is used to fix a rendering problem in pre-IE 6 browsers, where the border and padding are included in the width of an element, as opposed to added on padding: 4em; border: 1em solid red; width: 30em; width/**/:/**/ 25em; 2) Conditional Comments These conditional comments are for IE-only and they’re not supported by any other browser. The typical usage is as follows: <! The above code applies to all versions of Internet Explorer, i.e. 5.01, 5.5 and 6.0, but now we want to apply it to versions of Internet Explorer, i.e. 5.01, 5.5 and 6.0, so we will apply the following condition: <!

After we finish testing, we remove all hacks to separate file(s), so the main CSS is clean and tidy. Condition is one of the following: 4) Easy Selectors Credits Homepage. CSS Sprites - Online CSS Sprite Builder / Generator. 50+ Nice Clean CSS Tab-Based Navigation Scripts. Tab navigation has been one of the most fundamental element in any modern web structure. In order to make sure visitors can properly navigate through the website. One of the biggest challenge web designers and developers faced is to integrate a simple and nice tab navigation that not only don’t confuse, but helps visitors easily understand where they should be clicking. Whether you are running a website or blog, tab navigation is probably one of the element that helps drives traffic to internal pages. Here we’ve compiled a mass list of 50+ nice clean and sleek CSS Tab-Based navigation samples you can adapt on your site.

Full list after jump. If you are web designer / developer, you might be interested in these few articles we’ve previously done: jQuery Coda-Slider<IMG src=" alt="" srcset="" sizes=""> Nice sleek tabs that slides through each tab. ThickBox is a webpage UI dialog widget written in JavaScript on top of the jQuery library. 11 Top CSS Editors – Reviewed. 1. Stylizer Compatibility: WindowsNotable Feature: Code Grid, Size Grips, Bullseye, Two-click Coloring Stylizer is an absolutely unique CSS editor that focuses on real-time CSS editing. You can just enter a web address into its built-in browser that supports Firefox 3.5 and IE7’s style definition, and it would have all related CSS rules loaded for you to edit with its familiar point-and-click interface. The editor comes with a Code Grid feature that makes your CSS editing more convenient as you can view the result immediately after you changed a value.

With Stylizer it’s merely impossible to make a CSS mistake as it would restrict you to put any value that’s not compatible with the corresponding CSS property. Stylizer comes with Basic and Ultimate version. 2. Compatibility: WindowsNotable Feature: Style Inspector, Style Sweeper, CSS Tidy The editor comes as a trial version with limited feature, and you can unlock its full potential by $79.95. 3. 4. 5. 6. 7. 8. 9. 10. 11. Firebug CSS Usage. Learn CSS Positioning in Ten Steps: position static relative absolute float. 1. position:static The default positioning for all elements is position:static, which means the element is not positioned and occurs where it normally would in the document.

Normally you wouldn't specify this unless you needed to override a positioning that had been previously set. 2. position:relative If you specify position:relative, then you can use top or bottom, and left or right to move the element relative to where it would normally occur in the document. Let's move div-1 down 20 pixels, and to the left 40 pixels: Notice the space where div-1 normally would have been if we had not moved it: now it is an empty space.

It appears that position:relative is not very useful, but it will perform an important task later in this tutorial. 3. position:absolute When you specify position:absolute, the element is removed from the document and placed exactly where you tell it to go. Let's move div-1a to the top right of the page: What I really want is to position div-1a relative to div-1. Footnotes 10. Interface Builder for Bootstrap. The Big Badass List of Twitter Bootstrap Resources. Color Scheme Designer 3. BlueGriffon, The next-generation Web Editor based on the rendering engine of Firefox. BlueGriffon, The next-generation Web Editor based on the rendering engine of Firefox.