how to use css hacks

Discussion in 'CSS' started by yogendramishra, Aug 9, 2007.

  1. #1
    hey guys,
    sorry to disturb you all. But I have one query is that how can i make my template compatible for all browser and how can i use css hacks in my coding. Excatly i want to learn how to use css hacks to make our template compatible for all browser. Because i m getting good preview in firefox but same time template is scattering in IE6 and IE7.
    hope i will get solution soon
     
    yogendramishra, Aug 9, 2007 IP
  2. deques

    deques Peon

    Messages:
    206
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    instead of asking how to use, tell us what the problem is instead
     
    deques, Aug 9, 2007 IP
  3. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #3
    According the Crusty Old Dudes here, writing valid html and css will remove the need for most hacks. If done right, there end up being only a few things you need to be aware of, mostly for IE. Better to have nice code that works and as FEW hacks as possible.
     
    Stomme poes, Aug 9, 2007 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Exactly. Don't worry about hacking, but instead code to the standards, taking a browser-agnostic approach (meaning don't design for one browser and check against the rest when you're done) while testing and validating your code against the W3C HTML Validator and W3C CSS Validator as you go along (add or change a section of code, check for validation and then look in each of the major browsers).

    Browsers to test on are Internet Explorer 6/7, Firefox, Opera and Safari at the very least.

    If you're running Windows, you can get the IE standalones at http://tredosoft.com/Multiple_IE (for IE 5/6) and http://tredosoft.com/IE7_standalone (IE 7 standalone). Linux users can test on IE by going to http://www.tatanka.com.br/ies4linux/page/Main_Page (Mac users can load Windows into Parallels Workstation or VMware, in fact, they can load Linux into it as well).

    Firefox and Opera can be downloaded at www.firefox.com and www.opera.com/download respectively, while Apple's Safari (which uses the WebCore/Kit port of the KHTML rendering engine) can be downloaded (Windows and Mac) at www.apple.com/safari

    With all that out of the way, why don't you show us your design (note I said the design, not the code)?
     
    Dan Schulz, Aug 9, 2007 IP