Viewing 11 replies - 1 through 11 (of 11 total)
  • try to use a @media query to overwrite the width of the columns;

    example:

    @media screen and (max-width: 600px) {
       #magazine-columns .column { width: 100%; }
    }
    Thread Starter JeanJensenDK

    (@jeanjensendk)

    Good idea, but without succes πŸ™ Not even with

    @media screen and (max-width: 600px) {
       #magazine-columns .column c3 { width: 100%; }
    }

    This does not turn the div’s into 100 % with, but it turns the site (on PC) into a mobile version…

    your ‘Not even with’ CSS has invalid syntax –

    would need to be:

    #magazine-columns .column.c3 { width: 100%; }

    unfortunately you seem to have removed the edits so I have no way to check why it might not be working for you.

    where exactly did you add the changes?

    general caveat:
    do not edit Twenty Twelve directly – the customisations will be lost when you upgrade the theme – rather create a child theme to work with (for changes to the templates) or use a custom CSS plugin (for formatting chnages only).

    Thread Starter JeanJensenDK

    (@jeanjensendk)

    Thanks. The site is now a mobile version, and on the mobile it didn’t help…

    I’ll leave the CSS untill the problem is solved πŸ˜‰

    I found this in style.css:

    /* =Media queries
    -------------------------------------------------------------- */
    
    /* Minimum width of 600 pixels. */
    @media screen and (min-width: 600px) 
    
    #magazine-columns .column.c3 { width: 100%; }
    
    {

    that cannot work.

    that is not how my suggestion http://wordpress.org/support/topic/looks-awfull-on-smartphone?replies=5#post-4320903 was intended;
    a: the suggested code has to use ‘max-width’;
    b: carefully check how the brackets need to be opened and closed for the @media query.

    Thread Starter JeanJensenDK

    (@jeanjensendk)

    Well, we got rit of the mobile version on the PC, but the 3 columns still shows on the smartphone…

    Maybe the solution is, to make the frontpage as the footer – divs.

    try to locate the broken section:

    /* Minimum width of 600 pixels. */
    @media screen and (min-width: 600px) 
    
    	#magazine-columns .column.c3 {
    	max-width: 100%;
    	}
    	.author-avatar {

    and repair it to look like:

    /* Minimum width of 600 pixels. */
    @media screen and (min-width: 600px) {
    	.author-avatar {

    then add the suggested style at the very bottom of style.css:

    @media screen and (max-width: 600px) {
       #magazine-columns .column.c3 { width: 100%; }
    }

    and remember to clear the browser cache…

    Thread Starter JeanJensenDK

    (@jeanjensendk)

    WOUW!! Thanks dude – your my hero!!!!!

    you are welcome πŸ˜‰

    – once you know what to change where, it is easy.

    Thread Starter JeanJensenDK

    (@jeanjensendk)

    So true πŸ˜‰

    Thread Starter JeanJensenDK

    (@jeanjensendk)

    Closed

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Looks awfull on smartphone!!’ is closed to new replies.