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.

CSS on safari and mobile ?

Discussion in 'CSS' started by ngky7, Apr 3, 2011.

  1. #1
    Hi there. I'm using Mal's fiverr script.

    I do not have any problem viewing with firefox. It's 100% what i want. But I noticed when i view it with safari my search button image was out of way and so is my footer text.

    i even tried if browser is safari. i set search button image -10px on top it doesnt move at all. any ideas? my site is getfeat.com

    Please do not register. It is not a live site yet until everything is fixed. thanks
     
    ngky7, Apr 3, 2011 IP
  2. ngky7

    ngky7 Active Member

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    I dont think i can use <!--[if safari]> ?

    Is there any other way to read if user is using safari? then it will use style.safari.css on my side.
     
    ngky7, Apr 3, 2011 IP
  3. Divisive Cottonwood

    Divisive Cottonwood Peon

    Messages:
    1,674
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #3
    There are ways of targeting CSS at Safari only by using PHP or JavaScript but I wouldn't recommend it.

    If your CSS has problems in Safari or Chrome but not in any other browser then the problem doesn't lie with these browsers but with your code.

    Instead of the searchbutton css class as so:

    .searchbutton
    {
        position: absolute;
        margin-top:0px;
    	margin-left:19px;
    	z-index:100;
    }
    Code (markup):
    Try this:

    .searchbutton
    {
        position: absolute;
    top : 0;
    left : 170px;
    	
    }
    Code (markup):
     
    Divisive Cottonwood, Apr 4, 2011 IP
  4. hdewantara

    hdewantara Well-Known Member

    Messages:
    536
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #4
    May be you can use style = float:right to the your button.
     
    hdewantara, Apr 4, 2011 IP
  5. ngky7

    ngky7 Active Member

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #5
    You code works! Thanks alot! i've no idea about my footer text. Do you have other solution? thanks alot! :D :D
     
    ngky7, Apr 4, 2011 IP