Posted By

assbach on 01/03/07


Tagged

css browser hacks


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

assbach
basicmagic
stoker


different browserhack ways


 / Published in: CSS
 

different ways to use different styles for different browsers :-)

  1. #content {
  2. background-color: #FFFFFF; /* used in all browsers */
  3. padding:20px; /* used in all browsers */
  4. width: 768px; /*IE*/
  5. }
  6.  
  7. html>body #content {width: 728px;} /* FF, -40 pixels from padding */
  8.  
  9.  
  10. /* =========================== another way DSGV-way ==================== */
  11.  
  12. .fullwidth {
  13. width: 500px; /*FF*/
  14. width: expression(540 + "px"); /*IE*/
  15. padding: 0px 20px 0px 20px;
  16. }

Report this snippet  

You need to login to post a comment.