当前位置: 动力学知识库 > 问答 > 编程问答 >

wordpress theming - Images arent displayed inline and rather on separate lines

问题描述:

For some reason, images that I set to be displayed aligned to the left or right, arent inlined (I mean they do not appear surrounded by the text, so is that indeed called "inlined"), and rather occupy the whole height in the text, and the text continues only after the image, not in same line with it.. Please See link below to understand what I mean.

http://alkotab.net/?p=120

The content img CSS properties are:

.content img {

display: inline !important;

padding: 5px;

background: none;

}

.content img.alignleft, .content .wp-caption.alignleft {

float: none;

display: inline;

margin: 5px 15px 10px 0;

}

.content img[align $='left'] {

float: left;

display: inline;

margin: 5px 15px 10px 0;

}

.content img.alignright, .content .wp-caption.alignright {

float: right;

display: inline;

margin: 5px 0 10px 15px;

}

.content img[align $='right'] {

float: right;

display: inline;

margin: 5px 0 10px 15px;

}

网友答案:

Not sure if this is your desired effect but try removing the float: right declaration for .content p from your screen.css (line 814)

分享给朋友:
您可能感兴趣的文章:
随机阅读: