I used a function to call up the graphics and text on a page. I want to format the graphics and text, for example, if the picture is on the left, how to write css
$page_id = 221;
$page_data = get_page( $page_id );
echo apply_filters ('the_content', $page_data->post_content); //Call the page content
?>
that is called up at the same time as the text. Put the picture on one layer, put the text on another layer, and set the width of the two layers (make sure the total width of the two layers is smaller than the width of their outer layers, taking into account the browser Compatible with new technologies, you can set it smaller first), and then set the layer float: left;
The picture and text are called by a function
meaning that the two are on one layer Inside, it cannot be separated. I want to layout the inside of this layer, requiring pictures to be on the left and text on the right
Can you post the page content for a look?
Is your page more fixed with one picture and text, or may there be multiple pictures randomly?
< ;?php
$page_id = 221;
$page_data = get_page( $page_id );
echo apply_filters('the_content', $page_data->post_content); //Call page content
? >