T
Tony Johansson
Hello!
I have some problem to understand some htl code here.
I want to show a background image that is stored in a file called
computer.bmp
If I use this html code no background image is shown.
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
background: url(computer.bmp);
font-family: Verdana;
</style>
</head>
But if change the html code to this it works. Note I must use either the
html or body below <style type="text/css">
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
html,body
{
background: url(computer.bmp);
font-family: Verdana;
}
</style>
</head>
I use IE 6.0.
Can somebody explain why I must use html or body or both below <style
type="text/css"> to makethe background image show.
//Tony
I have some problem to understand some htl code here.
I want to show a background image that is stored in a file called
computer.bmp
If I use this html code no background image is shown.
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
background: url(computer.bmp);
font-family: Verdana;
</style>
</head>
But if change the html code to this it works. Note I must use either the
html or body below <style type="text/css">
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
html,body
{
background: url(computer.bmp);
font-family: Verdana;
}
</style>
</head>
I use IE 6.0.
Can somebody explain why I must use html or body or both below <style
type="text/css"> to makethe background image show.
//Tony