Jump to content

Тёмик

Newbie
  • Posts

    29
  • Joined

  • Last visited

Everything posted by Тёмик

  1. Имеется Div фиксированного размера. Нужно равномерно по ширине расположить в нём несколько картинок. Мой вариант: <div width="800px" style="padding: 0; text-align: justify;"> <img width="100px" height="50px"></img> <img width="100px" height="50px"></img> ... <img width="100px" height="50px"></img> </div> К сожалению не работает. Как правильно это сделать?
  2. Одна картинка, а на ней вторая.
  3. Подскажите, как установить позиционирование одной картинки относительно другой? Я вот как-то так пробовал: <html> <body> <div id="D"></div> <script> Img = new Image(); Img.src = './Img1.png'; Img.style.position = 'relative'; Img.id = "Img1"; document.getElementById('D').appendChild(Img); Img = new Image(); Img.src = './Img2.png'; Img.style.position = 'absolute'; document.getElementById('Img1').appendChild(Img); Img.style.top = '50%'; Img.style.left = '50%'; </script> </body> </html> Знаю, что не правильно, но как правильно, не знаю.
  4. Почему кнопка с текстом лезет куда-то наверх? <style type="text/css"> button {width: 32; height: 32;} </style> <button></button> <button>1</button> <button></button>
×
×
  • 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