css - Wordpress: I want to set p max-width but images to ignore it -
this on portfolio website (using side full width theme , ebor portfolio) on wordpress 4.0.
my text full width images. makes line-length far long comfortable. have added p {max-width: 800px;}
custom.css file, includes images (which placed inline in portfolio edit page , fall under p tag).
i want images remain full width. how can this?
edit
thank tplummer. didn't work though. went text editor, entered wrote. img writeup however, not inside same p tag text.
edit 2
i tried placing images inside unused h6 tag , left full width. seems have worked!
floating in center....which doesn't bad actually...but titles still left....ahhh code tricky...
if they're nested within <p>
tags you're going have bad time.
if it's content based, try wrapping text want style inside span, inside <p>
tag.
css
.limit-size { max-width: 800px; }
html
<p><span class="limit800">text text text</span><img src="pic.jpg"></p>
Comments
Post a Comment