Forums

[resolved] All Post and Page content images wont align right (8 posts)

  1. TheNateums
    Member
    Posted 2 years ago #

    On my site, http://thenateums.com
    On the home page and any posts I write, if I try to include an image, it wont align right with the word content wrapping it like I know I have been able to do with other themes.

    I really like my current them and I know it has issues with it (including not supporting widgets!) but I would really like to be able to at least do something like right align an image!

    Help please!

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    does your theme have the basic/standard classes for that?

    img.centered {
    	display: block;
    	margin-left: auto;
    	margin-right: auto;
    	}
    img.alignright {
    	padding: 4px;
    	margin: 0 0 2px 7px;
    	display: inline;
    	}
    
    img.alignleft {
    	padding: 4px;
    	margin: 0 7px 2px 0;
    	display: inline;
    	}
    .alignleft {
    	float:left;
    	padding:2px 0 0 10px;
    	}
    .alignright {
    	float:right;
    	padding:2px 10px 0 5px;
    	}

    in your style.css? Older themes are missing this stuff a lot of the time....

  3. TheNateums
    Member
    Posted 2 years ago #

    Nope! Thats it!

    Does it matter where I put it? I tried dropping it in a couple times, never works though...

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    it shouldn't matter where you put it in the style.css

    if it isn't working...a couple things

    first, have you cleared your browser cache? Changes to css usually don't show up without doing that. Press ctrl+f5 while looking at your site

    Then, do you have any other image styling in your css that may be conflicting?

    finally, and this is a bit more advanced...but you can install the firebug developer addon to firefox, which will let you inspect elements of your page to see what css is applying.....I use that to check out conflicts, etc

  5. TheNateums
    Member
    Posted 2 years ago #

    Awesome. I just opened the page in chrome and it works. My Firefox has been giving me issues with cache and not viewing all my changes, I always forget to try chrome or safari. I will definitely get firebug though anyway, sounds like something I could have used a couple times before.

    Great Help! Thanks so much, I knew it wouldnt be to hard for anyone with more CSS knowledge than me.

    PS. Just got it all clear in firefox also.

  6. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    super! go ahead and mark this topic resolved please, and enjoy the firebug plugin...I've learned a tonne using that

  7. hgrebe
    Member
    Posted 2 years ago #

    Thanks, this entry helped solve my image alignment problem too, as I've been using an old version of Shaded Grey.

  8. TheNateums
    Member
    Posted 1 year ago #

    Haha, glad my failures help other people!

Topic Closed

This topic has been closed to new replies.

About this Topic