QUOTE(b.ihde @ 29 Sep, 2008 - 07:21 AM)

another question:
is it possible to fix the problem that way?? :
Create another div (like div.center) in CSS with
text-align: center;
and put the content to center in this div element..
thanks for comments!
I believe that should work just fine. text-align: center; should apply to any child elements in the div. So if you have:
CODE
.center {
text-align: center;
width: 100%;
}
.image {
background-image: url(image.jpg);
width: 60px;
height: 60px;
}
[...]
<div class="center">
<div class="image">
</div>
</div>
the div that is the image will be centered within the div "center." Beyond that any text inside of "image" will NOT be centered... It's its own element and you can apply it's own style to it. I suggest that instead of creating a div to center something as this can cause problems down the line if you have super complex code, is instead do this:
CODE
.image {
background-image: url(image.jpg);
width: 60px;
height: 60px;
margin: 0 auto;
}
[...]
<div class="image">
</div>
hope that makes sense, and I'm right as well... heh. been a while since I've designed websites.
edit: nevermind. this doesn't work because the image is a background.... don't listen to me.. 
it's times like these where it would be beneficial to memorize the box model. http://www.w3.org/TR/CSS2/box.htmlThis post has been edited by jaxx751: 29 Sep, 2008 - 08:16 AM