go41

Re: center align problem :: Reply by Joern

von Joern am 23. Jul. 2011 | Keine Kommentare

the problem with Comppress theme you currently use: In Firefox and IE (not in Chrome) I see the content of your site moved to the right, sidebar disappeared.
This happens due to a one pixel error in your div id="topmenu"

the content stucks beside the last category you list there (Technology)
Two ways could help, no. one would be:

via style.css:

get stuff in your menu bar smaller by changing in style.css under
#topmenu .menu li a

the font-size: 14px; to font-size: 13px;

or

margin-bottom: 2px; to margin-bottom: 1px;
no. two could be:

add below the closing /div of div id="topmenu" in header.php a new line with:

<div style="clear: both;"></div>
to clear the stuff above
coming back to your question about images not aligned: You mean in single post view I guess, I look at your "Fruit Ninja free version Download .." entry with two images.
these images stay left because in style.css is given:

.excerpt .entry p img {

border: 0 none;

margin: 0 1em 1em 0 !important;

}

.excerpt .entry img {

max-height: 175px;

max-width: 175px;

}
any aligncenter… is not in your style.css
to get images like in this post aligned to center add:
.excerpt .entry p img.aligncenter {

display: block;

margin: 0 auto;

}
I think if you would go and just change .excerpt .entry p img you will also change the look of the frontpage.
Did it help?
____________________
you find me on Google+, Twitter and Facebook

(von: Joern)

Hier noch 6 weitere Ergebnisse dieses Threads:

center align problem

23. Jul. 2011 (von: geekprison)

Hello,my site is http://geekprison.com/ i am facing problem with images of the post,the post looks greats in the editor as well as in other themes,but it gets messed up when i activate compress thememy images are not center align,can you…

Re: center align problem :: Reply by geekprison

23. Jul. 2011 (von: geekprison)

hello, thanks for your generous reply,i tried adding both the codes one at a time.aligncenter {display: block;margin-left: auto;margin-right: auto;}.excerpt .entry p img.aligncenter {display: block;margin: 0 auto;}but there was no effect on image, they... Weiterlesen →

Re: center align problem :: Reply by geekprison

23. Jul. 2011 (von: geekprison)

hello, thanks for your generous reply,i tried adding both the codes one at a time.aligncenter {display: block;margin-left: auto;margin-right: auto;}.excerpt .entry p img.aligncenter {display: block;margin: 0 auto;}but there was no effect on image, they... Weiterlesen →

Re: center align problem :: Reply by Joern

23. Jul. 2011 (von: Joern)

it will never be 'harmfull', it might just change the look of the images on frontpage too.I can't test this, you should keep a backup of the old entries and just try..or tryimg.aligncenter {display: block;margin-left: auto;margin-right: auto;}always ch... Weiterlesen →

Re: center align problem :: Reply by geekprison

24. Jul. 2011 (von: geekprison)

hi i even tried that codeimg.aligncenter {display: block;margin-left: auto;margin-right: auto;}but did not work,though if i modify the existing code into.excerpt .entry p img {border: 0 none;margin: 0 auto;}.excerpt .entry img {max-height: 640px;max-wi... Weiterlesen →

Re: center align problem :: Reply by Joern

24. Jul. 2011 (von: Joern)

first time I use my public folder in dropbox,here a firefox 5.0 screen printhttp://dl.dropbox.com/u/33739066/firefox50.jpgno idea why you see it different, my IE 9 shows it like this tooChrome and old FF show all..??____________________you find me on G... Weiterlesen →

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: