Layout question

D

duzhidian

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? When I printed it, the sidebar will not be
printed.

Thanks.

Z. D.
 
J

J.O. Aho

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;
}
 
J

Jonathan N. Little

is displayed on the right side. How did they control the position in
When I printed it, the sidebar will not be
printed.

in the print CSS

..netscape4, #sidebar, #navigation-bar, #fsflinks, #gnulogo, #dbdlogo,
#links, #translations, #searcher {display: none !important;}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top