• I would like my post images to be a set size and not their full size.

    i have tried

    .post img {
        max-width: 550px; /* Adjust this value according to your content area size*/
        height: auto;
        }

    which sounded very reasonable.
    but nothing changed.

    I am following this video tutorial for creating your own theme

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Your theme is not putting the standard classes into the HTML, so the post class does not exist, so the CSS is not applied to anything.

    Why are your images so huge to start with?
    Why aren’t you using a better theme? It’s easier to learn from something already coded and tested than to create some mangled thing from scratch. Pick any theme in the WordPress repository and modify from there (or just use it). You have to learn how CSS works before you can understand any tutorial on building a theme.

    Thread Starter mechaniac

    (@mechaniac)

    thanks..
    glad I could help in making you feel superior

    when you upload a image to wp you generate 3+ a thumbnail a mid size a big size you can choose what to use, avoid write code and use the user view editor.

    glad I could help in making you feel superior

    What a strange reply. I don’t, in case you wondered…

    All I’m saying is that the tutorial is lacking. A better way to learn is to start with working code and CSS that matches it, because the HTML and the CSS have to match.
    You could read the Theme Developer Handbook, but it is geared toward acquainting you with WordPress functions for themes. It doesn’t have anything about CSS. I send people to https://developer.mozilla.org/en-US/docs/Web/CSS/Reference for learning CSS.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘post Image Size’ is closed to new replies.