Posted by J.O. Aho on 05/13/07 11:02
duzhidian@gmail.com wrote:
> Hello:
>
> When I check the source code of
> http://www.gnu.org/
>
> I found that the source code of
>
> <div id="sidebar" class="boxbox">
>
> is displayed on the right side. How did they control the position in
> this part of div?
#sidebar {
position: absolute;
top: -1em;
right: 1em;
margin-top: 1em;
font-size: 0.9em;
float: right;
margin-left: 1.5em;
margin-bottom: 1em;
padding: 1em;
background-color: #e5e5e5;
border: 3px solid #ddd;
}
--
//Aho
Navigation:
[Reply to this message]
|