This is a discussion on "Useful CSS "hacks" - Post any you have!" within the Web Page Design section. This forum, and the thread "Useful CSS "hacks" - Post any you have! are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Useful CSS "hacks" - Post any you have!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Useful CSS "hacks" - Post any you have!
The idea of this topic is to just post however many hacks you have found useful. Links or sample code (with explanations) are helpful.
Here are a couple to get you started:
Internet Explorer Conditional Comments (IE5+/Win only):
|
|
|
|
||||
|
Personally, I hate hacks.
There are in most cases a way to get around the need for hacks. As a resource for web developers and designers, I feel I would be doing everyone an injustice if I didn't point out my loathing for them. My 2 cents.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Not really a hack, just a good starting point...
First line of your style sheet; * ( margin:0;padding:0 } Pros - Simplicity (ie. not a complictated hack), Forces most-all browsers to render your styles in exactly the same way. Cons - You need to re-define your paddings and margins for all your elements. May not be supported in some older browsers. more on this subject here: http://www.meyerweb.com/eric/thought...doing-htmlcss/ |
|
||||
|
Hey D3m0n....
You really should write us a CSS article you know.... you are full of these tips
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
But where to find the time these days?
|
|
||||
|
I've been designing sites for a while now, using tons of CSS, no tables, bla bla, and I've never used a CSS hack.
They've never been necessary for the 100+ sites I've made. |
|
|||
|
I've never (knowingly) had a problem with the margin element. What problem does it cause between browsers? I find the border and padding elements to be the big pariahs since IE incorrectly includes them in the width/height calculations.
oh, wait, maybe to do with the collapsing (!not) of vertical margins in IE? I think I had that problem once. |
![]() |
| Tags |
| useful, css, quothacksquot, post |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Noobish question regarding IE css "hacks" | danielreid | Web Page Design | 4 | Mar 25th, 2008 11:33 |
| Creating a "tag" system to find relevant "related" pages | MrQuestions | PHP Forum | 3 | Mar 20th, 2008 23:06 |
| [SOLVED] Show "Image" Depends On User "Status"? | Monie | Classic ASP | 6 | Oct 16th, 2007 01:22 |
| ? IS "meta name="robots" content="?" necessary in pages ? | Love2Java | Starting Out | 6 | Aug 8th, 2007 13:48 |
| window.opener.document["nameForm"].getElementById("someid").value; doesnt work | drpompeii | JavaScript Forum | 0 | Feb 17th, 2007 23:09 |