Roy Schestowitz <newsgroups@schestowitz.com> wrote:
>#Div_png_top {
> font-size: 40px;
> text-align: center;
> position:fixed;
> top:10px;
> right: 300px;
> background:url(/IMG/blog_css/up.png) no-repeat top left;
> width:50px;
> height:50px;
>}
>
>My question is: can the line
>
>right: 300px;
>
>be replaced so that the object always appears in the _center_? I tried many
>things to no avail.
It can only be done properly if you set the width as a percentage of the
containing block's width, for example:
width:20%;right:40%;left:40%;
It needs to total to 100%.
--
Spartanicus
|
|