Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Responsive Issues

  • This topic is empty.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #162883
    jaswinder
    Participant

    hey friends

    i am trying to make the website responsive.. the website shows proper responsiveness in chrome extension – Responsive Web Design Tester. but when i check it on mobile it shows a gap on right-side and also footer is bad… i made changes to css alot but not getting any result..
    media queries used for mobile are

    @media (max-width:480px)
    @media (max-width:320px)

    here is the website – http://webiworld.com/

    thanks

    #162884
    Paulie_D
    Member

    Not sure as it’s hard to inspect but I suspect that this is not being overriden at @media (max-width:320px)

    .header_mid,.widget-area,.site-info,.content_middle,.services,.site-footer,.sidebar-container
    {
        width:400px;
       }
    
    #162886
    jaswinder
    Participant

    its overriding..

    #162887
    Paulie_D
    Member

    With what?

    #162890
    jaswinder
    Participant

    width: 240px;

    #162893
    Paulie_D
    Member

    Where is that width applied?

    I couldn’t see a media query for 360px.

    #162894
    jaswinder
    Participant

    how you checking it out ?
    there is a media query for 320px..

    #162897
    Paulie_D
    Member

    I’m using Web Inspector

    Are you defining a width for the element in the media query…if you are, it isn’t working.

    #162899
    jaswinder
    Participant

    yes i am using width.
    are you using the inspector in mobile device. if so how ?

    #162900
    jaswinder
    Participant

    i think the problem is with 480px media query..

    i tried to open the website in more smaller device.. 320px is working great..

    #162901
    Senff
    Participant

    Things look fine on my iPhone 5.

    Also, you don’t need a special extension for Chrome to test on mobile devices, it’s already built in Chrome and also takes pixel density into account: http://www.senff.com/front-end/you-already-have-a-retina-screen-emulator/

    #162954
    jaswinder
    Participant

    hey senff. thanks for this useful information… will you help me with that …

    help me to fix this-

    when i emulate it for the device Sony Xperia Z, Z1.. the website shows margin on right.. so what media query should i take ?

    should i use
    @media
    only screen and (-webkit-min-device-pixel-ratio : 3),
    only screen and (min-device-pixel-ratio : 3)

    if so how pixel ratio is calculated

Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘CSS’ is closed to new topics and replies.