Nawshad Ghannoo
Nawshad Ghannoo

Reputation: 57

Wordpress mobile devices logo resize

Hi I'm having a small media queries problem. The logo on the website I am working on does not resize when on mobile devices. So I've tried to add the code below but it doesn't do anything. Is there a way to set it up so that it works on mobile devices as well?

link : http://eyeandretina.com.au/

.header_left a img
{
    float: left;
    margin-right: 20px;
    width:612px;
}

media {

/* Smartphones (portrait and landscape) ----------- */
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 480px) {
    .header_left a img {
        width:100px;
    } 
/* Smartphones (landscape) ----------- */
@media only screen 
and (min-width : 321px) {
/* Styles */    .header_left a img {
        width:100px;
    } 
}

/* Smartphones (portrait) ----------- */
@media only screen 
and (max-width : 320px) {
/* Styles */    .header_left a img {
        width:100px;
    } 
}

/* iPads (portrait and landscape) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) {
/* Styles */    .header_left a img {
        width:100%;
    } 
}

/* iPads (landscape) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape) {
/* Styles */    .header_left a img {
        width:100%;
    } 
}

/* iPads (portrait) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait) {
/* Styles */    .header_left a img {
        width:100px;
    } 
}

/* Desktops and laptops ----------- */
@media only screen 
and (min-width : 1224px) {
/* Styles */    .header_left a img {
        width:100%;
    } 
}

/* Large screens ----------- */
@media only screen 
and (min-width : 1824px) {
/* Styles */    .header_left a img {
        width:100px;
    } 
}

/* iPhone 4 ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* Styles */ 
    .header_left a img {
        width:100px;
    } 
}

Upvotes: 0

Views: 328

Answers (1)

Mr. Go
Mr. Go

Reputation: 577

just go through your website link and I found your this css is not calling

http://eyeandretina.com.au/wp-content/themes/medicenter/style/responsive.css?ver=4.1

this css is overwriting you current css.

try to do your all code in this responsive.css or make your style.css as a prioroty

http://eyeandretina.com.au/wp-content/themes/medicenter/style.css?ver=4.1

Upvotes: 1

Related Questions