Home > Web Front-end > HTML Tutorial > Looking for experts, css typesetting problem_html/css_WEB-ITnose

Looking for experts, css typesetting problem_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:59:00
Original
1126 people have browsed it

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


Reply to discussion (solution)


$page_id = 221;
$page_data = get_page( $page_id );
echo apply_filters ('the_content', $page_data->post_content); //Call the page content
?>




By the way, post my dynamic code and pictures

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
? >


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template