Jump to content
  • 0

Помогите проблема с позиционированием


Palitra
 Share

Question

Вот станичка http://palitra-oil.narod.ru/stoimost.html

вот код из slideshow.js

Object.extend(this.props, props || {});

a = $('aro-' + this.props.n + 'a');
a.style.position = 'absolute';
a.style.border = 'double 5px saddlebrown ';
a.style.left = '1280px';
a.style.top = '-680px';

img = a.cloneNode(true);
img.id = 'aro-' + this.props.n + 'b';
img.style.zindex = '100';

div = a.parentNode;
div.style.display = 'block';
div.style.position = 'absolute';
div.style.border = 'solid 1px black';
div.style.left = '-800px';
div.style.top = '800px';
div.style.width = a.width + 'px';
div.style.height = a.height + 'px';
div.appendChild(img);

вот код из stoimost.html

.block1 { 
max-width: 950px;
min-width: 650px;
width: 950px;
max-height: 900px;
min-height: 750px;
height: 900px;
background: #EDE7E2;
padding-left: 7px;
border: double 5px saddlebrown;
float: none;
margin: 0px auto;
position: relative;
left: 0px;
}
#layer1, #layer2, {
position: relative;
}
#layer1, {
width: 950px;
height: 900px;
left: 0px;
}
#layer2,{
}

#layer1 { z-index: 1; }
#layer2 { z-index: 2; }

Сейчас сделал смотрится нормально только при разрешении 1680/1050

при меньшем картинка естественно уходит вправо

пробую разные варианты , но ИЕ таблица уходит влево, не знаю уже чего наворотить :)

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy