The problem is not the margin but that the text doesn’t flow around the right side of the image. I have gone into the classic visual editor, selected the image, and clicked the icon that shows the image to the left with text on the right. Here is the code copied from the text editor (please note that the code extends to the right of the window – you need to scroll to view it all.):
<figure><img class="alignleft" style="margin: -.5em .5em .5em -.1em; padding: .5em .5em .5em .5em; border: solid #910000;" src="https://scruffydog.org/wp-content/uploads/2020/11/beer.jpeg" alt="Beer Sign" width="200px" />
<figcaption>Beer Sign</figcaption>
</figure>
You can see that the first statement is “alignleft”. That is supposed to force text into the empty space on the right of the image.
Everything else works great: border, colors, caption placement, etc. There’s something that I’m not seeing.
Thanks for any advice!
Tod
]]>I have a strange situation with applies only with my chrome mobile vertical browser (android). Using the image align left option on my posts (class=”alignleft size-full…) works perfectly with all desktop browsers and android and firefox mobile browser, but on chrome mobile there is always a text line above the image. In order to illustrate this strange issue, here some screenshots:
chrome desktop –> ok
chrome desktop mobile preview –> ok
firefox mobile –> ok
chrome mobile vertical –> NOK
chrome mobile horizontal –> ok
I disabled all plugins, so it can’t come from any plugin. You can also check it yourself on chrome mobile here
css for alignleft:
.alignleft {float:left; margin-right:15px;}
The first image with the caption aligns nicely to the right. The second image at the bottom with no caption is set to aligncenter. But, as you can see, it doesn’t. It also doesn’t alignright either. I can’t get any of the photos (without captions) to align center or right. They all just align left no matter how I’ve set them in either the Image Details or the actual code.
I have added code to the .css file to align the photos with captions and that has worked. I’ve similarly added code for aligncenter et al and that hasn’t. Below is my entire .css file. Maybe some snippet of code is blocking the align styles from working…?
/* apply a natural box layout model to all elements */
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
body{
margin:0px;
padding:0px;
height:100%;
min-height:100%;
width:100%;
}
#container{
position: absolute;
top: 0;
padding: 0;
height: auto !important;
height: 100%; /*for ie6*/
width:100%;
min-height: 100%;
}
/*Float clearing fix*/
.clearfix:after {
content: ".";
display: block;
height: 0px;
clear: both;
visibility: hidden;
}
* html .clearfix {height: 1%;}
/*reset default padding*/
/*img{
padding:0px 0px 0px 0px;
margin:0px 0px 0px 0px;
border:none;
}*/
form{
margin:0px 0px 0px 0px;
}
ul{
padding-left:1em;
margin-left:0;
margin-bottom:0;
}
h1{
margin:0 0 0 0;
padding:0 0 0 0;
}
p{
margin:15px 0 0 0;
}
/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
margin: 5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
display: block;
margin: 5px auto 5px auto;
}
.alignright {
float: right;
}
.alignleft {
float: left;
}
.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
a img.alignright {
float: right;
margin: 5px 0 20px 20px;
}
a img.alignnone {
margin: 5px 20px 20px 0;
}
a img.alignleft {
float: left;
margin: 5px 20px 20px 0;
}
a img.aligncenter {
display: block;
margin-left: auto;
margin-right: auto
}
.wp-caption {
background: #fff;
border: 1px solid #f0f0f0;
max-width: 96%; /* Image does not overflow the content area */
padding: 5px 3px 10px;
text-align: center;
}
.wp-caption.alignnone {
margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
margin: 5px 0 20px 20px;
}
.wp-caption img {
border: 0 none;
height: auto;
margin: 0;
max-width: 98.5%;
padding: 0;
width: auto;
}
.wp-caption p.wp-caption-text {
font-size: 11px;
line-height: 17px;
margin: 0;
padding: 0 4px 5px;
}
Anyone see where the issue is?
]]>for troubleshooting reasons, i cross-checked every settings, deactivated most other plugins, verified the issue is the same in Safari on ios, on mac and on firefox. finally i deinstalled and reinstalled collapse-o-matic.
All with the same result.
checking the collapse-o-matic settings, i also found, that changing duration, animation effect and entering some custom style information had no effect. of course i saved and reloaded). Only the style settings was a little responsive because sometime it changes the arrow icon, sometimes not. and sometimes it tells light style for a dark arrow icon. very strange. hope, this it’s a snap for you to fix this issue?
btw, is it also possible, to let the image part of the title? so that a click on the text or on the image will expand?
and is it possible, to have the text being highlighted instead of underscored?
if it helps, her is the frame of code, i used on both sites:
<img src=”image.jpg” width=”200″ height=”220″ /> Picture title
[expand title=”“ Title in large …“” tag=”h5″ excerpt=”Subtitle in small”]
expanded text in small[/expand]
how can i assign the different text different attributes? with targtag i didn’t got it to work …
Thanks in advance for your support,
Klaus
https://www.ads-software.com/extend/plugins/jquery-collapse-o-matic/
]]>Website: Awake at Midnight
Thanks for any advice!
]]>this plugin is pretty awesome because I can create a grid-like index of my child pages including the thumbnail image. However, the plugin inserts the ‘leftalign’ class in the image, which caused me great annoyance when it messed with some other css I was trying to do.
Hoping a future release will remove any embedded class names so that it’s even easier to cutomize.
Thanks
https://www.ads-software.com/extend/plugins/sb-child-list/
]]>https://www.ads-software.com/extend/plugins/smart-youtube/
]]>Please help!
Thanks,
D
]]>the content does not wrap underneath and the page navigation is also restrained to the portion of the site that remains to the right of the top left image.
the footer, however, takes up the full width.
can anyone help? I have used img class=”alignleft” for an image in the post itself and this aligns perfectly, so it’s just something not working with an image in a template file as far as i can tell.
here is my code:
[Code moderated as per the Forum Rules. Please use the pastebin]
I cant send the page link as its not available to those not logged in. any help will be greatly appreciated!
cheers!
]]>