M
Mr. X.
Thanks a lot !
One problem has been solved.
(Maybe as I use IE7, thing work bit differently,
and my code work only with first line : <!DOCTYPE ...>
It may not be necessary for IE6, so I persume it look good for Jonathan.
I want a global solution, fits for IE 5.5 and more)
The other one :
==========
When I want an element to be at relative position to its owner, I usually
used <div>.
He following code doesn't do as expected (the inner <div> should be relative
to it's owner).
Here is my code (only without the bitmaps, related in advanced to other
thread I have openned) :
html code :
index1.html
========
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles.css" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
</head>
<body>
<div id = "wrap">
<div id = "picture1">
</div>
</div>
</body>
</html>
css code (styles.css)
==============
#wrap
{
top:0;
height:850px;
width:760px;
margin:auto;
visibility:visible;
background-image:url('bk_img.gif');
background-repeat:no-repeat;
}
#picture1 {
position: absolute;
top:0px;
left:20px;
height:100%;
width:150px;
background:url('img1.gif');
background-repeat:no-repeat;
background-size:auto;
}
The above doesn't work properly.
Picture1's position is relative to the viewport, and not to the outer div
"wrap".
Maybe the whole problem is just a comma ...
Why the above dosen't work properly ?
Thanks
One problem has been solved.
(Maybe as I use IE7, thing work bit differently,
and my code work only with first line : <!DOCTYPE ...>
It may not be necessary for IE6, so I persume it look good for Jonathan.
I want a global solution, fits for IE 5.5 and more)
The other one :
==========
When I want an element to be at relative position to its owner, I usually
used <div>.
He following code doesn't do as expected (the inner <div> should be relative
to it's owner).
Here is my code (only without the bitmaps, related in advanced to other
thread I have openned) :
html code :
index1.html
========
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles.css" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
</head>
<body>
<div id = "wrap">
<div id = "picture1">
</div>
</div>
</body>
</html>
css code (styles.css)
==============
#wrap
{
top:0;
height:850px;
width:760px;
margin:auto;
visibility:visible;
background-image:url('bk_img.gif');
background-repeat:no-repeat;
}
#picture1 {
position: absolute;
top:0px;
left:20px;
height:100%;
width:150px;
background:url('img1.gif');
background-repeat:no-repeat;
background-size:auto;
}
The above doesn't work properly.
Picture1's position is relative to the viewport, and not to the outer div
"wrap".
Maybe the whole problem is just a comma ...
Why the above dosen't work properly ?
Thanks