Advertisement

08.20.2007 at 07:46AM PDT, ID: 22774119 | Points: 50
[x]
Attachment Details

CSS image position

Asked by goretti in Cascading Style Sheets (CSS), Extensible Markup Language (XML)

Tags: , ,

Here is my CSS code inside XML

<?xml version="1.0" encoding="UTF-8" ?>
<Content type="html">
<![CDATA[
<style type="text/css">
body
{
background-image: url('http://www.abc.com/BG.jpg');
BACKGROUND-POSITION : left top;
background-attachment: fixed;
background-repeat: no-repeat;
}
#Layer1 {
      position:absolute;
      width:43px;
      height:29px;
      z-index:3;
      left: 158px;
      top: 313px;
}


</style>
<script type="text/javascript">
function showtable1()
{

}

</script>
<body>
<center>


<div id="Layer1">
<img src="http://www.abc.hk/button.jpg" onclick="javascript:showtable1()">
</div>


</body>
 ]]>
 </Content>
 </Module>

The code is very simple, I just have 1 background image and 1 image inside.
I would like to control the position of the image but seems the style part doesnt work.  The image always in one position Why?Start Free Trial
[+][-]08.20.2007 at 07:53AM PDT, ID: 19730780

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.20.2007 at 08:00AM PDT, ID: 19730832

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.20.2007 at 08:17AM PDT, ID: 19731002

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.20.2007 at 08:29AM PDT, ID: 19731113

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.20.2007 at 08:34AM PDT, ID: 19731147

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.20.2007 at 08:45AM PDT, ID: 19731241

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.20.2007 at 09:47AM PDT, ID: 19731720

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_1_20070628