I am using media queries and div will not centre on desktop version

Hi,
I am building a site for the first time using media queries. My problem is that I cannot get the header div (#layoutDiv1) to centre on the desktop version.
I have pasted my code below, am I missing something?
Any help would be great.
Thanks, Alex.
/* Mobile Layout: 480px and below. */
.gridContainer {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  color: #FFF;
  background-color: #000;
#LayoutDiv1 {
  clear: both;
  float: left;
  margin-left: 0;
  width: 90%;
  display: block;
  padding-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
/* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */
@media only screen and (min-width: 481px) {
.gridContainer {
  width: 100%;
#LayoutDiv1 {
  clear: both;
  float: left;
  margin-left: 0;
  width: 90%;
  display: block;
  padding-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
/* Desktop Layout: 769px to a max of 1232px.  Inherits styles from: Mobile Layout and Tablet Layout. */
@media only screen and (min-width: 769px) {
.gridContainer {
  width: 100%;
  text-align: left;
#LayoutDiv1 {
  width: 1000px;
  padding: 20px;
  margin-right: auto;
  margin-left: auto;

Because you don't have max-width to constrain the responsive design attributes from the tablet and phone are also then applied to the desktop because they are true.  Have you tried either setting a max-width or setting the clear and float to none in the desktop CSS?

Similar Messages

  • I just downloaded a few ITunes Apps to my PC using windows 8 and they will not work.  Suggestions?  Thank you.

    I just downloaded a few ITunes Apps to my PC using windows 8 and they will not work.  Suggestions?  Thank you.

    The apps can only be run on an iOS device.   They will not run on your PC.

  • I have a mac pro g4 when i load a cd or dvd there is no start up noise from drive and icon will not show on desktop or in itunes. How should i troubleshoot? pioneer 105 mirror door

    I have a mac pro g4 when i load a cd or dvd there is no start up noise from drive and icon will not show on desktop or in itunes. How should i troubleshoot? pioneer 105 mirror door

    PIONEER DVD-RW  DVR-105:
      Firmware Revision:          A506
      Interconnect:          ATAPI
      Burn Support:          Yes (Apple Shipping Drive)
      Cache:          2000 KB
      Reads DVD:          Yes
      CD-Write:          -R, -RW
      DVD-Write:          -R, -RW
      Write Strategies:          CD-TAO, CD-SAO, CD-Raw, DVD-DAO
      Media:          Insert media and refresh to show available burn speeds
    yes its a power mac thanks its been a long month and Merry Christmas thanks for checking my question im hoping its a driver problem but not liking some other stuff looking like replace drive

  • Media Encoder and DeviceCentral will not open

    Adobe Media Encoder will not launch from Premiere Pro and (along with Device Central) will not open as a stand alone.  I went through all of my Web Premium CS4 programs and they all open except for the programs mentioned above.  I added Premiere Pro CS4 last week.
    Error messages:
    Adobe Media Encoder.exe - entry point not found.  The procedure entry point - ??NewHandlerInitializer@ErrorManager@config@dvacore@@QAE@XZ could not be located in the dynamic link library dvacore.dII.
    DeviceCentral.exe - ordinal not found.  The ordinal 10526 could not be located in the dynamic link library SCL.dII.
    Any suggestions would be much appreciated.
    Randy

    Did you manage to sort this Randy?  I'm getting the same problem
    Cheers

  • Downloaded 4.0 and it will not run on my version of OS X

    I have a MAC OS X 10.4.11. I downloaded Firefox 4.0 and when I went to run it, it says "can not run with current version of OS X".
    I need to either get to run 4.0 or to run the Firefox version I way previously using. I am at a loss and really would appreciate help to get back to Firefox.
    Thanks, Don Costanzo

    You can get an unofficial, community-supported version of Firefox for 10.4 here:
    http://www.floodgap.com/software/tenfourfox/

  • I have the CC photography and it will not download the CC version of Lightroom, only the Lightroom 5.

    why will my Lightroom in CC only download version 5, not the Lightroom 6?

    Hi Nancy,
    Since you have thePhotography plan, you should be able to download and install Lightroom CC 2015 from the Creative Cloud site.
    Lightroom CC is a new product rather than an update,so it will not show as an update in the Adobe Application Manager. Instead, press the  install button next to Lightroom in the Application manager.
    If you don't see "install" by Lightroom in the application manager, please first try signing out and back in: sign in and sign out of the Creative Cloud desktop app
    If you still have issues, see option 2 in this link:
    Lightroom doesn't launch or quits automatically after splash screen
    Regards,
    Pattie

  • Using Adobe Forms and document will not convert to a PDF file

    I just purchased the Forms add on pack today and I was able to create a form with no trouble.  I would like to have the form downloaded as a PDF (which is an option in this package) and I keep getting and error message that says Adobe is unable to download the form at this time.  I tried opening and downloading the form on different computers at my work, all generating the same error message.  Is there an Adobe issue, or could this be a security feature that is not enabled on my highly blocked/monitored work computer that I have limited control over?  I can view the form as a link, embedded URL, and web form, just having so much difficulty getting it to open as a PDF, really the only way I want to use this program.  If this is a temporary problem, then I can wait until its resolved, however, if I can never open any forms I create as a PD, the package is useless to me. 

    OS
    Version
    What are your steps to create a PDF?
    PDF settings?
    What is the content of your file?
    What graphic did you use?

  • HT204053 I tried to use a card and it will not work for my App Store

    I tried to put a different card on file but it won't let me

    By not letting you, you mean ... ?
    If you are trying to use a debit card then I don't think that they are still accepted as a valid payment method - they are not listed on this page and there have been a number of posts recently about them being declined
    If it's a credit card then is it registered to exactly the same name and address (including format and spacing etc) that you have on your iTunes account, it was issued by a bank in your country and you are currently in that country ? If it is and it's being declined then you could check with the card issuer to see if it's them that are declining it, and if not then try contacting iTunes support and see if they know why it's being declined : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management
    If it's something else then some info as to what happens and when would be useful.

  • I am using Firefox 4 and Firefox will not load Twitter or igoogle.

    I have reinstalled Firefox, so I have the latest version. All I get is a blank page for twitter, and my gmail will come up with igoogle but none of my homepage content. This started yesterday. Both pages are working fine on Chrome.

    The problem may not be directly related to the Firefox 4 upgrade.
    To downgrade see
    * [[installing a previous version of firefox]]
    * also see [[firefox consumes a lot of CPU resources]]
    Presumably you have for some reason already uninstalled any previous version of Firefox so see now [[installing firefox on windows]]

  • I have been using my iphone and it will not allow me to reset my security qeustions and i have not gotten a email on how to reset it yet please help

    i have asked to have my security qeustions reset but have not gotten a email from them yet

    If it hasn't arrived after a few hours and isn't in a spam filter, you need to contact Apple. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (91624)

  • I ripped audio cd into media player and they will not playo

    hp pavilion g6 notebook  x16-96072  windows 7 home premium . after ripping audio cd's into media player i can't play
    any music

    Hi
    Please find the link given below might help you to resolve your issue.
    Troubleshoot problems in Windows Media Player
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • We use p2 cameras and fcx will not import the footage. so my question is why does p2 format cause me so much grief when it comes to importing in X

    Can someone tell me the secret in importing p2 footage into fcx. Never had a problem until now.

    thanks but when i went to download additional content it did not give me an option to download anything with new codecs

  • Calendar and Address will not sync between Desktop and Centro after removing CompanionL​ink Pro

    I did the 14-day trial of CompanionLink Pro software for syncing my ACT! 2010 with my Palm Centro.  When the 14-day trial ended, my Palm Address and Calendar applications ceased syncing between the Palm Desktop and Palm Centro.  I spent 1-1/2 weeks in chat sessions with both CompanionLink tech support and Palm tech support without any success to resolve the problem.  Has anyone experienced this problem, and, if so, how did you resolve it?
    I use the following:
    Palm Desktop by Access ver. 6.2.2
    Windows 7, 64-bit
    Palm HotSync Manager ver. 7.0.2
    Palm Centro
    I have installed and uninstalled both CompanionLink Pro - 14-day trial and the Palm Desktop over a dozen times each.  Also, when I first install the Palm Desktop, the HotSync Manager shows the Palm apps for Calendar, Address, ToDo List, and Memo.  However, when I reboot my computer, those same apps no longer show on the HotSync Manager.
    Thanks for any suggestions you might have for me to try to fix this problem.

    When you uninstalled Palm Desktop did anyone suggest a "clean uninstall" where you pull out the registry keys? Also when you restart your computer what shows under the hotsync manager (If you can list everything that would be very helpful)?

  • My iPad is an older model with version 5.1.1 and it will not install a new version.  Is there anything I can do.  Some apps require a new version?

    MY iPadnurses version 5.1.1 and I cannot install a new version.  What can I do besides buying a new I pad?

    Nothing

  • Itunes and quicktime will NOT install

    I have been trying to re-install itunes and now quicktime onto my computer.
    I get 3 messages. 1st one says that the install cannot find a file that does not seem to exist on my system. I tried find the file through its directory, cant find it!! It is a long directory with lots of numeric, very little alpha characters.
    Next message is "error 1714" The older version of itunes cannot be removed. Contact tech support.
    Next message "error 1603" Fatal error during installation. consult window installer help (msi.chm) or MSDN for more info.
    I have looked for help on many posts and apple's site. I have tried to manually remove quicktime and itunes and it will not remove the old versions????
    Someone please help me!!!!

    windows installer has stopped working
    a problem caused the program to stop working correctly.
    windows will close the program and notify you if a solution is avabilable.
    ... and that's one that I wasn't thinking of ...
    Head into your Windows Update. Are there any new updates available for you? If so, and you install, does that clear up the error message?

Maybe you are looking for

  • Firefox redirects me to wrong sites 50% of the time. Only on Firefox

    I get redirected when on the Firefox brwser 50% of the time == This happened == Every time Firefox opened == User Agent == Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4

  • No restore option in the summary page

    hi im trying to restore my ipod's factory setting's but it seem's to be frozon in the summary page .. i have downloaded itune's 7.2 but it can't read the content's of my ipod .. which has been wiped anyway .. any help would be greatly appreciated mac

  • Comparision

    Hello Experts, I have one package present in higher as well as lower release, Now i have to compare all the obects of the package acrors both the system . I have created the RFC Connection also and done the comparision by transaction SCU0 but that tr

  • Program is giving dump now

    hi , i got syntax error like below passing the formal parameter "SUBRC" to the fields SY-SUBRC is not appropriate since SY-SUBRC is set by statement the code is like below, FORM view_sap_locks. DATA: l_num_locks LIKE sy-tabix. CALL FUNCTION 'ENQUEUE_

  • What do you do when you forgot ur login password but it's your imac is on sleep mode

    What do you do when you forgot ur login password but it's your imac is on sleep mode?