This is the entire page of code. You can view the code and save it as an HTML file. After you try it out, you can see it. The main function is CSS + DIV.
The above items are moved to the template, and the following items are the same ~ It's enough ~
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> solution for advertisement floating on the top left corner of the article content page </title>
<Style type = "text/css">
. Container {
Display: table;
Width: 500px;
Background: #66 FFCC;
}
. Main {
Display: table-row;
Width: 100%;
Background: #669933;
}
. Left {
Float: left;
Width: 165px;
Display: table-cell;
Background: #663399;
}
. Right {
Background: #33 CCFF
Display: table-cell;
}
</Style>
</Head>
<Body>
<Div class = "container">
<Div class = "main">
<Div class = "left"> ad section.
</Div>
<Div class = "right">
Article content <br/>
Article content <br/>
Article content <br/>
Article content <br/>
Article content part article content part <br/>
Article content <br/>
Article content <br/>
Article content <br/>
Article content <br/>
<Br/> </div>
</Div>
</Div>
</Body>
</Html>