Jump to content
  • 0

Не могу разобраться с CSS шаблона


DenisV
 Share

Question

Добрый день.

Хотел бы спросить знающих как сделать чтобы получить такую структуру дивов.

Нужно чтобы info-head был в самом верху. Элементы внутри этого дива позиционированы относительно.

На info-head нужно наложить со смещением вверх main body.

Фон main-body должен растягиваться по высоте относительно дочерних элементов.

А сразу после Main-body должен идти footer

Должно выглядеть вот так:

22eecfaa8165789af1cccc1d8de51ed5.jpg

Вот код index.php с дивами:

  Reveal hidden contents

и css:

  Reveal hidden contents

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Вот такой вариант: http://jsfiddle.net/bmvCw/2/

Для main-body и footer создается div с абсолютной позицией, который смещается немного вверх.

Про фон не совсем понятно. Залейте куда-нибудь страницу с картинками.

Link to comment
Share on other sites

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