Old 11-10-2006, 06:14   #1 (permalink)
weldo
now with added beard
 
weldo's Avatar
 
Join Date: Mar 2004
Location: Liverpool
Posts: 5,432
conditional comments vs hacks ??

whats better ??

maintaining 2 or 3 style sheets with conditional comments or using a single sheet with one or two teeny-weeny hacks ??

... and why ??

any thoughts .. ?
__________________
fuck signatures
  Reply With Quote
Old 11-10-2006, 06:24   #2 (permalink)
Alexanda
European Champions 2008
 
Join Date: Feb 2005
Location: Amsterdam
Posts: 2,399
3, because bigger is better
__________________
whats facebook?
  Reply With Quote
Old 11-10-2006, 06:44   #3 (permalink)
funkyprem
For all your goober needs
 
funkyprem's Avatar
 
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,531
keep em seperate, then when you decide not to support any particular browser anymore, you can just get rid of one conditional comment et viola. Your main stylesheet for any browser that works properly is left untouched.
  Reply With Quote
Old 11-10-2006, 06:50   #4 (permalink)
d*d
Moderator
 
d*d's Avatar
 
Join Date: Oct 2004
Location: Bristol
Posts: 3,299
I can see why you may not decide to support a browser when you start the project, but removing support that you have already implemented seems a little stupid
  Reply With Quote
Old 11-10-2006, 07:01   #5 (permalink)
mx
fucksocks™
 
mx's Avatar
 
Join Date: Jun 2005
Location: in the boosh
Posts: 1,622
it's so much easier to debugger using a conditional stylesheet. and you don't run the risk of screwing the css on the non-ie browsers with your ie tweaks.

Apart from that, I've had very few hacks that actually work!
__________________
  Reply With Quote
Old 11-10-2006, 07:47   #6 (permalink)
freelancr
Senior Member
 
freelancr's Avatar
 
Join Date: Oct 2006
Posts: 2,173
I think I will start using conditional comments, but usually I only have to use 2 or 3 little hacks so it wouldnt be any more work putting it in a separate stylesheet. But apparently there are issues when testing it? I run IE6 and IE7 Standalone, but I take it IE7 still reports itself as IE6 because there are no registry entries or something?
  Reply With Quote
Old 11-10-2006, 08:31   #7 (permalink)
d*d
Moderator
 
d*d's Avatar
 
Join Date: Oct 2004
Location: Bristol
Posts: 3,299
the only hack I've ever needed is the one to set a min-height in IE, seemed a bit stupid to make a whole new stylesheet for it
  Reply With Quote
Old 11-10-2006, 09:21   #8 (permalink)
freelancr
Senior Member
 
freelancr's Avatar
 
Join Date: Oct 2006
Posts: 2,173
Quote:
Originally Posted by d*d
the only hack I've ever needed is the one to set a min-height in IE, seemed a bit stupid to make a whole new stylesheet for it

Generally those are the ones I use too, if you were meaning this?
Code:
#content { min-height: 400px; } * html #content { height: 400px; }
  Reply With Quote
Old 11-10-2006, 09:24   #9 (permalink)
d*d
Moderator
 
d*d's Avatar
 
Join Date: Oct 2004
Location: Bristol
Posts: 3,299
that's the monkey
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8