The Css for new wordpress theme

Hi,
I am a newbie developer trying to learn wordpress theme development and I have designed and converted it into HTML/CSS.

My query is I would like to know what additional CSS styles I need to put into the style,css file apart from the one that I have made from my design as I have seen many theme tutorials and found that there any many more classes added pertaining to wordpress.

I would like to know is there any specific guideline that the theme must be having at least these CSS classes in order to work it properly.

Thanks for help.
ST

There are some classes added by default due to the insertion of media library items such as images, and image captions, etc that should have some css styling applied to them. I usually start with something like this, and then adjust it as needed:

/*** WordPress basic styles ***/
.wp-caption {
    padding: 10px;
}

.wp-caption-text {
    font-size: 0.9em;
}

.sticky {
    padding: 10px;
    background: #ccc;
}

.gallery-caption {
    font-size: 0.9em;
}

.bypostauthor {
    font-style: italic;
}

.alignright {
    float: right;
    padding: 0 0 10px 10px;
}

.alignleft {
    float: left;
    padding: 0 10px 10px 0;
}

.aligncenter {
    margin: 0 auto 10px auto;
}

But you can use whatever classes you want in your theme - it will still work. There are no minimum requirements. Just be careful that you don’t use the same class names as the core WordPress or the plugins that you use have.

Hello Webmachine,
Thanks a lot for guidance. Are there any tutorials that can guide me on working with the wordpress theme.

Thanks
ST

Have you looked at the WordPress Codex on theme development?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.