How can I load different CSS rules according to the browser?

Basically I have background images set in place and when the page is scrolled on a desktop computer, the images are locked in place that their holders scroll upward and down, so I have a very simple parallax effect going on. Problem is that when I view on mobile devices and especially Apple iPhone, iPad, or iPod, the background is fixed yet, but it's huge!

To after my research, background-attachment: fixed rule that is what creates the effect of simple Parallax seems to destroy the background-size rule: cover, simple force the image to view full size.

So what I think is, to see what browser uses the user and through PHP or Javascript have a separate css file load with the rule background-attachment: fixed if the user is on a laptop Desk/computer or hide if they are on an apple device. I can't understand how do however. Is this possible?

I don't want to use media queries as they are about to be unusable for this instance based on the screen size of a part of the device that are now producing people like Apple.

I just your thoughts and or possible examples that you may have encountered.

Thank you.

Mobile Detect - Lightweight PHP class for detecting mobile devices (including tablets)

Nancy O.

Tags: Dreamweaver

Similar Questions

  • How can I get my site to automatically fill the browser on different screen sizes?

    I conceive on a Macbookpro 15'. and when I saw the site, everything looks good, but I've noticed that, in the view of my site on the other screen sizes, it doesn't look good. something always snaps out of the browser according to the computer I see it in. is there any option on muse to make the site look the same on all screen sizes?

    Advice to solve this problem?

    Hello

    As muse are not sensitive sites, I'm afraid it is not possible to create the page that is compatible with the screen sizes but you can refer to the suggestions provided by Zak in the forum below to make sensitive post type.

    https://forums.Adobe.com/thread/1198978

    Concerning

    Vivek

  • How can I get my SVG is displayed in the browser? With the help of Adobe Muse.

    I created an SVG in Adobe Illustrator CC with all of the recommended settings (Yes, I unchecked "reagent"), and then placed in my site in Muse CC and it does not appear on my site.  It simply shows a broken link photo icon where the image is supposed to be.  I thought that at the very least, it would show the PNG image since it is supposed to automatically create the PNG.

    It seems perfectly mode overview of Muse.

    Any advice?  Are also images of the parameters of SVG that I use, and how he made his appearance in the browser.

    Here is a link to the online site, in case you want to take a look: design.mattgrajcar.com (I can have returned back to just put a PNG in for now).

    Thank you!

    Screen Shot 2015-02-16 at 12.58.55 PM.png

    Screen Shot 2015-02-20 at 10.23.49 AM.png

    This may be due to your not having hosting provider is not the right file MIME to view the .svg files.

    See the link.

    http://CSS-tricks.com/snippets/htaccess/serve-SVG-correct-content-type/

  • How can I make an image tile length of the browser without using it as a background image?

    I understand that if you use the rectangle tool and stretch it to the edge of the page, triggerring the red margin, the tile image is supposed to stretch the length of the browser. While this works for width, coating horizontally, for some reason, it doesn't work for the length, Tile vertically. When I saw my work in the browser, the tile image stretches with the footer that I scroll to the bottom of the page.

    When I use the image as the background fill and tile it, it works, but I need to use a different image for the background.

    Hello

    As you said you can either use your browser complete with fitting tile or design the background image browser outside the Muse using any image editor like Photoshop and then use as fill for browser that would include the two images that you want to use as a background image and you want to use as tile on the section of the page.

    Thank you

    Sanjit

  • How can I load my stylesheets of businesscatalyst on the worldsecuresystems domain?

    Helllo,

    Here's the problem:

    You use Muse to build a site and tweak things until it is just about perfect.

    You fill the others using the administrator of Site Catalyst Business options - change the module templates and corresponding CSS styles.

    You manage to keep your separate CSS files generated by Muse, so things haven't crushed.

    ...

    Now, you get all your workflow and are on the actual cash finally (see also: registration-Buy) model. That's when it hits you - the field going in:

    < your_unique_site >. businesscatalyst.com

    ... for:

    < your_unique_site >. worldsecuresystems.com

    FIrefox no longer load your custom stylesheet.

    Safari gives some indication as to why it is a failure: "could not load the resource: the certificate for this server is invalid." You could connect to a server that is pretending to be "< your_unique_site >. businesscatalyst.com"that could put your confidential information at risk. »

    Chrome displays a message "Unable to load the resource" generic in the Javascript console.

    ...

    Is there a way to get around this?

    Is this only a problem if you don't have your own domain name registered for a site - funnel queries HTTPS through the new domain and jump the cross-domain issues that seem to be popping up between the areas of default businesscatalyst/worldsecuresystems that the site currently has?

    Any help would be greatly appreciated.

    Muse is clearly by adding a full url of the site for each file reference. To make this work 100% between subfolders and secure and non-secure URL, that you must have a path...

    SRC="/CSS/MyStylesheet.CSS" that is called a relative path.

    Not sure if you can change, or force the Muse to do.

  • How can I load several languages?

    How can I load different languages for my application?

    can I load different languages for a single application, so I can share it with students of ESL?

    Thank you

    First Clip comes with several strings of languages already built in.

    Go to the preferences iOS app to change the language of the user here: settings/general / 'language & Region '.

    For example, when I updated the Japanese and then run first Clip, the entire application in Nihongo.

  • How can I write this small function to create the number of strips, please?

    Guys,

    How can I have a create table according to the argument passed. I'm doing this right?

    function createArray(n:int):Array

    {

    for (var i: int = 0; i < n; i ++)

    {

    nArr var = new Array();

    }

    return nArr [i];

    }

    Thank you very much.

    var aArraySet:Array = createArraySets (5); create 5 paintings

    Table 1-> aArraySet [0]

    Table 2-> aArraySet [1]

    Table 3-> aArraySet [2]

    Table 4-> aArraySet [3]

    Table 5-> aArraySet [4]

    function createArraySets(n:uint):Array

    {

    var aArraySet:Array = new Array();

    for (var i: uint = 0; i

    {

    aArraySet.push (new Array();

    }

    Return aArraySet;

    }

  • files and folders: How can I load all my files and folders to my new account of my external hard drive?

    Who can help, I just put a new account on my computer and deleted the old account. I backed up the old files on my external hard drive. I want to know is how can I load all my files and folders to my new account of my external hard drive? I thank you for your time and knowledge have a very nice evening, Shawn

    Because it's a new account (even if with the same name), the restore procedure is unable to put files and folders in the same place, they came (because this place technically no longer - if yes, then the process is done and the transfer is complete). It can create a set of separate files (maybe even under a new user name, if it has been stored in this way).  If so, all you need to do is copy the data as you would copy any other files and folders (not the main files of the user profile themselves but the data in them) on the new files in your user account and who will take care of the transfer. Here is more information about the restore procedure which may help you in the process.

    Here is an article on the restore procedure:http://www.vista4beginners.com/How-to-restore-files to make sure you do this right.  It's a selective restore of a full or selective backup (not a full restore from a full backup) - but since you did a full backup, it matches your process more closely than would a full restore.

    This is a GREAT article on the backup and restore processes in Vista http://technet.microsoft.com/en-us/magazine/2007.09.backup.aspx , but he won't go into detail about the restoration process - considering almost as easy, of course.  But it teaches you a lot about what is possible and how to do it.  It also focuses primarily on the full backup process, but he did mention the full backup and restore process as well.

    Here is an article on the advanced use of restoration (during normal restore does not work):http://www.mayankraichura.com/post/2009/08/06/Avdvanced-Restore-via-Windows-Vista-Backup-and-Restore-Center.aspx.

    Restore files from a backup
    http://Windows.Microsoft.com/en-us/Windows-Vista/restore-files-from-a-backup

    Back up and restore: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions

    I also found the following (but don't know if it of true or not):

    1. after the start of "backup and Restore Center."

    2. I chose "Advanced Restore"

    3. I was did not an administrator password... maybe because my account is an administrator account.

    4 choose "files from a backup made on a different computer.

    5. in the dialog box indicating "Select the location of the backup to restore", select "hard drive, CD or DVD...". »

    6. under the drop-down list box, select your drive/partition and continue

    7. If all the backups on your drive, it will show a list of them.

    8. in my case, he showed a backup, but in the backup location, it will show "backup location is not available."

    9. I was frustrated, but then I somehow just select this backup (Yes... even if he said that thebackup location is not available " ")

    10. and you press "next".

    11 guess what... no error!

    12. a window appeared asking me if I wanted to do a full restore, or I want to select specific folders or files.

    13. I selected the folders I wanted to restore and bingo... it their restored smoothly.

    14. so that the next time see a mistake, try to continue with him... ;)

    I don't know if this will help, but it does not provide much information about the process (when it works).

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How can I load the security updates that Belarc suggests?

    HOW CAN I LOAD THE SECURITY UPDATES BELARC SUGGESTS?

    Hello jobtoo,

    You may have already solved this problem, but my suggestion would be to contact Belarc support.

    You can use the link below:
    e-mail: * address email is removed from the privacy *

    http://www.Belarc.com/contact.html

    Thank you!

  • How can I load updates from pilot to another pc using the ethernet cable?

    How can I load updates from pilot to another pc using the ethernet cable?

    You would be better to use a flashdrive rather than an Ethernet cable. To connect using an Ethernet cable you need a crossover cable and then configure the network cards.

    I hope this helps.

  • How can I load or restore my original profile due to the absence of issue of the original rights of Windows?

    How can I load or restore my original profile due to the absence of issue of the original rights of Windows? My XP version is original and can not finish loading registry.

    Hi, route 66 Rock band,

    In addition to that suggested the PML, try this:

    Error message: "Windows cannot load the locally stored profile".

    http://support.Microsoft.com/kb/812339

  • How can I load Windows Mail on Win 7 system of the windows.old folder

    How can I load Windows Mail on Win 7 system of the windows.old file win7 made during installation.

    Windows 7 does not include an email Client.

    You have great choices of Email client
    MS Outlook (continued from part of MS Office)
    Windows Live Mail
    Thunderbird

    To download and install Windows Live Mail:
    http://download.live.com/wlmail
    During installation, you will receive a list of programs to install, choose "E-mail" buy uncheck all items except "Mail".

    Mail from Vista to Windows 7 Live Mail:
    Look for the following folders in the Windows.old folder.

    (1) find the program files > Windows Mail
    (2) copy all files and folders in Windows Mail folder to a new folder (name the folder: VistaMailExport)
    (3) in Windows Live Mail, use the "Import" and point to the folder "VistaMailExport".

    Import your emails, contacts and calendar in Windows Live Mail
    http://Windows.Microsoft.com/en-us/Windows7/importing-your-e-mail-contacts-and-calendar-into-Windows-Live-Mail

    Thunderbird:
    http://www.mozillamessaging.com/en-us/Thunderbird/

    Public discussion group Windows Live Mail:
    News://msnews.Microsoft.com/Microsoft.public.Windows.live.mail.desktop

    JS
    http://www.PAGESTART.com

    Never be afraid to ask. This forum has some of the best people in the world to help.

  • How can I load bbc iplayer on a surface

    How can I load bbc iplayer on a surface

    You go to the BBC iPlayer site and use it.

    There is no application iPlayer but the site works. You can listen to (but not download for later).

    PS: you should contact the BBC to request an app store of windows for the iPlayer... Let them know you want it, and maybe if enough people do the same thing they will begin to pay more attention to the platform.

  • How can I load Windows 8 so that I have the windows 10?

    How can I load Windows 8 so that I have the windows 10?

    Windows 8 is not available, you can get Windows 8.1 now.

  • How can I load my photoshop CS6 cd to a new Macbook that has no cd slot and does not support the cd drive external mac.

    How can I load photoshop CS6 on a new macbook, which doesn't have a cd slot and does not support the cd drive external mac? I have the original cd of the program.

    Jake

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a link to access a page to download the Adobe programs if you do not have a disk or drive

    -you will need to enter your original serial number during the installation for non-Cloud programs

    - or kglad links in response to #1 here can help https://forums.adobe.com/thread/2081216

    Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq

    - and also read https://forums.adobe.com/thread/1146459

Maybe you are looking for