Hi, I’m baffled. I’m trying to make my picture sit beside my text. Set up 2 divs one 70% the other 30% and the image gets pushed down under when I specify padding 20px beside my text. Any help greatly appreciated!
CSS code:
#speaker {
}
.speaker-details {
width: 70%;
float: left;
padding-right: 20px;
}
.speaker-picture {
width: 30%;
float: right;
}
PHP code:
`
<?php
// get an image field (return type = object)
$image = get_sub_field('picture');
// each image has a custom field (link)
$link = get_sub_field('link', $image['id']);
// render
?>
<img src="" alt="" />
<p>
<!-- END .entry-content -->`
</p>