Where Is The Mistake?

Discussion in 'HTML & Website Design' started by kertoon, Apr 9, 2015.

  1. #1
    When I test my site with a responsive tester, I notice there is a horizontal slider beneath for 240 size. Is something at fault with my media query?
     
    kertoon, Apr 9, 2015 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    How are we supposed to know - you're not providing any code... at all. However, generally speaking, it can be many things - for instance something that is wider than the visible content - depends on what is being reassigned inside the media-query. Without a page-link, or code, we can't really do much...
     
    PoPSiCLe, Apr 9, 2015 IP
  3. kertoon

    kertoon Well-Known Member

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #3
    Site: http://bestlifequotesblog.com/

    This is the customized code which you did for me before:

    #main {
    padding: 10px;
    }
    .main-wrap {
    float: left;
    margin-left: 1rem;
    margin-right: 21rem;
    }
    #sidebar-primary-wrap {
    float: left;
    margin-left: 1rem;
    margin-right: -21rem;
    width: 20rem;
    }

    #sidebar-secondary-wrap {
    float: left;
    margin-right: -20rem;
    position: relative;
    width: 20rem;
    }

    This is my my media query:
    @media (max-width: 320px) {
    .main-wrap {
    float: none;
    width: auto;
    }
    }
     
    kertoon, Apr 9, 2015 IP
  4. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #4
    Hm - did you do something? Because now it works as intended...?
     
    PoPSiCLe, Apr 9, 2015 IP
  5. kertoon

    kertoon Well-Known Member

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #5
    No. From me over here, when I test it with http://mattkersley.com/responsive/, there is a slider at the bottom for 240x 320 size.
     
    kertoon, Apr 9, 2015 IP
  6. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #6
    Ah - I checked it in Chrome (without Adblock) and yep, there it is - it's the ads on the page - either you have to hide them for 240px devices, or change the ads to text-ads or something else.
     
    PoPSiCLe, Apr 9, 2015 IP
  7. kertoon

    kertoon Well-Known Member

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #7
    Would you mind share with me as how to hide ads as you suggested? Another thing is how to have the sidebars having the same width as the content?
     
    kertoon, Apr 9, 2015 IP
  8. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #8
    Really, dude, you need to do some of this yourself ;) Find whatever container the ads have, and set that class or id or whatever container they're in to display: none; within the @media-rule
     
    PoPSiCLe, Apr 9, 2015 IP
  9. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #9
    Again, endless pointless DIV for NOTHING, endless pointless classes for NOTHING, static scripting in the markup, little if anything resembling logical document structure, massively painful select that I'd sooner eat a bullet than put on a website, and the typical train wreck disaster one can expect from the steaming pile of manure known as turdpress...

    The question is not "where's the mistake?": the question is "what part of it ISN'T a mistake?"
     
    deathshadow, Apr 9, 2015 IP
  10. kertoon

    kertoon Well-Known Member

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #10
    Alright. Thank you. By the way, when I use the site URL (homepage), the responsive test results are fine. The problems are only with single posts and pages.
     
    Last edited: Apr 9, 2015
    kertoon, Apr 9, 2015 IP
  11. kertoon

    kertoon Well-Known Member

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #11
    I have just tested it out with this tool: http://responsivetest.net/, there is no problem, except the width of both sidebars.
     
    kertoon, Apr 9, 2015 IP
  12. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #12
    If so, I would suggest finding the @media-rules again, and set the width of the sidebar-classes to the same as the main-container within them - that should in theory fix the issues with sidebars.
     
    PoPSiCLe, Apr 9, 2015 IP
  13. kertoon

    kertoon Well-Known Member

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #13
    When you say main-container, which one is that? From the style CSS file there are two of them:
    #container {
    max-width: 95%

    and
    #container {
    background: #fff;
    width: 1200px;
    margin: 2rem auto;
    padding: 0
     
    kertoon, Apr 10, 2015 IP
  14. kertoon

    kertoon Well-Known Member

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #14
    Anyway, thank you all. All my issues have been fixed and it is working fine now. No more mistakes.
     
    kertoon, Apr 11, 2015 IP