1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Browser compatiable

Discussion in 'CSS' started by ershadit, Aug 17, 2011.

  1. #1
    hi,


    some of css property is not working on all web browsers. can anyone give alternate code for such property to make it compatible.

    if u knows any links and material kindly post..
     
    ershadit, Aug 17, 2011 IP
  2. Toycel

    Toycel Peon

    Messages:
    243
    Likes Received:
    11
    Best Answers:
    4
    Trophy Points:
    0
    #2
    Do you have some example code?
    Without it the question is a little vague...
     
    Toycel, Aug 18, 2011 IP
  3. Sonamseo

    Sonamseo Member

    Messages:
    206
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #3
    You must adjust your code like that it will compatible on all web browser.
     
    Sonamseo, Aug 19, 2011 IP
  4. markup

    markup Peon

    Messages:
    116
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    please post example code, we can help you
     
    markup, Aug 20, 2011 IP
  5. Martin K

    Martin K Active Member

    Messages:
    262
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Go to w3.org and validate your code. If any errors correct them and test your site again. If you worry about IE6, don't, forget about it, its dead :)
     
    Martin K, Aug 20, 2011 IP
  6. xira

    xira Active Member

    Messages:
    315
    Likes Received:
    8
    Best Answers:
    4
    Trophy Points:
    68
    #6
    IE7 handles some measurements differently (usually off a few pixels) it also isn't too fond of inline-block usage with <ul><li> menus. IE6 is full of inconsistancies. Regardless you can target both browsers by using CSS just for those browsers.

    .mycode{
    width: 100px; /* ALL BROWSERS */
    #width: 110px; /* IE7&6*/
    _width: 120px; /* IE6 ONLY */
    }

    The problem with doing this is:
    1. your CSS won't be validated by the W3C standards
    2. your users have to download extra code, so use it sparingly

    What about targeting IE8? FF? or another broswer?
    There are ways to do this, but it's only for specific CSS3.0, like rounded corners.

    If you are determined to have working code for each browser type, you can have different CSS for each browser using a media query, but old browsers don't know what these are (IE7 & 6) so you're back to coding for them using the # or _ signs.

    Good luck
     
    xira, Aug 20, 2011 IP
  7. ershadit

    ershadit Member

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #7
    i know that we have to adjust, but question is how to adjusts
     
    ershadit, Aug 21, 2011 IP