Jump to content
  • 0

скелет 3 колонки. помогите сделать.


Makcik
 Share

Question

Добрый день, со слоями ни разу не работал, прочитал статьи, но не совсем понимаю как все таки с ними работать..

Вот мне надо сделать такой скелет:

__________________________
|__________header__________|
|_____|_______________|_____|
|_____| |_____|
|_____| |_____|
|_____| content | |
|_____|_______________|_____|
|_________footer____________|

В общем у меня получаются проблемы с позиционированием слоев, все разезжается, либо не станолвиться в ряд ДИВ'ы.

Помогите сделать скелет, дальше я сам буду пробывать разбираться.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

html :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>
<link rel="stylesheet" href="style02.css" type="text/css">
</head>

<body>
<div id="q">
<div id="w">head</div>
<div id="e">
<div>poloska</div>
<div>menu css</div>
</div>
<div id="r">
<div>
<div>menu</div>
<div>news</div>
<div>search</div>
<div>counter</div>
</div>
<div id="t">content</div>
<div id="y">
<div>tah_mal</div>
<div>forma</div>
<div>tah_bol</div>
</div>
</div>
<div id="s">footer</div>
</div>
</body>
</html>

файл css:

#q{
border: 1px;
display: block;
position: absolute;
top: 0px;
left:0px;
}
#w{
border: 1px solid;
width: 800px;
height: 101px;
display: block;
position: absolute;
top: 1px;
left: 1px;
}
#e{
border: 1px solid;
width: 800px;
height: 15px;
display: block;
position: absolute;
top: 101px;
left: 1px;
}
#r{
border: 1px solid;
width: 150px;
display: table;
position: absolute;
top: 121px;
left: 1px;
}
#t{
border: 1px solid;
width: 473px;
display: block;
position: absolute;
top: 121px;
left: 151px;
}
#y{
border: 1px solid;
width:177px;
display: block;
position: absolute;
top: 121px;
left: 624px;
}
#s{
border: 1px solid;
width: 800px;
height: 15px;
height: 20px;
display: block;
position: absolute;
top: 100%;
left: 1px;
}

Link to comment
Share on other sites

  • 0

по вашему коду:

1. давайте осмысленные имена блокам

2. попытайтесь разобраться например с такими вариантами разметки, как - http://layouts.ironmyers.com/, http://blog.html.it/layoutgala/

3. ИМХО - лучше использовать float - проще для старта

Link to comment
Share on other sites

  • 0
Ай совушка, ай удружила! Ссылка чудестная, прям то что надо. Давно искал сие полезное творение.

Чтобы сверстать любой шаблон из представленных вряд ле уйдет более пятнадцати минут. Вы меня пугаете :o

А некоторые даже верстки не стоят...

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

  • Обсуждения

    • Актуальные контакты: Telegram: @Nikker_web E-Mail:   tarasevich.email@gmail.com Портфолио https://www.behance.net/d4d4186e Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ    
    • Актуальные контакты: Telegram: @Nikker_web E-Mail:   tarasevich.email@gmail.com   Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ   Портфолио https://www.behance.net/d4d4186e
    • Доброго всем времени суток. Прошу помощи. Научите принципу изменения футера. Движок Xenforo. Версия 2.2.10. Стиль дефолтный. Что именно нужно в итоге на фото примере. Мой шаблон app.footer less имеет следующее значение.  .p-footer { .xf-publicFooter(); a { .xf-publicFooterLink(); } } .p-footer-inner { .m-pageWidth(); .m-pageInset(); padding-top: @xf-paddingMedium; padding-bottom: @xf-paddingLarge; } .p-footer-row { .m-clearFix(); margin-bottom: -@xf-paddingLarge; } .p-footer-row-main { float: left; margin-bottom: @xf-paddingLarge; } .p-footer-row-opposite { float: right; margin-bottom: @xf-paddingLarge; } .p-footer-linkList { .m-listPlain(); .m-clearFix(); > li { float: left; margin-right: .5em; &:last-child { margin-right: 0; } a { padding: 2px 4px; border-radius: @xf-borderRadiusSmall; &:hover { text-decoration: none; background-color: fade(@xf-publicFooterLink--color, 10%); } } } } .p-footer-rssLink { > span { position: relative; top: -1px; display: inline-block; width: 1.44em; height: 1.44em; line-height: 1.44em; text-align: center; font-size: .8em; background-color: #4682B4; border-radius: 2px; } .fa-rss { color: white; } } .p-footer-copyright { margin-top: @xf-elementSpacer; text-align: center; font-size: @xf-fontSizeSmallest; } .p-footer-debug { margin-top: @xf-paddingLarge; text-align: right; font-size: @xf-fontSizeSmallest; .pairs > dt { color: inherit; } } @media (max-width: @xf-responsiveMedium) { .p-footer-row-main, .p-footer-row-opposite { float: none; } .p-footer-copyright { text-align: left; padding: 0 4px; // aligns with other links } }  
    • Нужны сайты с примерами верстки, типа https://css-tricks.com/. Типовые приемы и нестандартные на все случаи жизни. Накидайте ссылок.
×
×
  • 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