Jump to content
  • 0

Проблемы версткой - надеюсь на помощь


Александр1
 Share

Question

Здравствуйте!

Уже 2 дня пытаюсь сделать задание, но все в пустую. Нашел этот форум и очень надеюсь на помощь, просмотреть весь форум не имею возможности, поэтому если такой вопрос уже и был, то просьба особо не злиться.

Короче, вот что нужно сделать:

Создать макет из 3-ех вертикальных столбцов (допустим left, center, right) и блока(bottom), который будет находиться под ними. Проблема возникает с нижним блоком - на него наползает текст из блоков, которые над ним.

Надеюсь объяснил более-менее нормально.

Буду очень благодарен если кинут ссылку на подобный макет... вобщем любая помощь.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

честно говоря мне лично было влом искать по форуму :(

вот накидал макет блочной версткой:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<style type="text/css">
* {margin:0; padding:0;}
html,body {height:100%; background-color:#eee; font-family:tahoma; font-size:11px; color:#690000;}
div.clear {clear:both;}
div.main {background-color:#ccc;}
div.left-side {background-color:red; float:left; width:256px; _margin-right:-256px;}
div.right-side {background-color:blue; float:right; width:256px; _margin-left:-256px;}
div.center-side {background-color:green; margin:0 256px;}
div.footer {background-color:#690000; color:#fff;}
</style>

</head>

<body>

<div class="main">
<div class="left-side"><b>left side</b>

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div>
<div class="right-side"><b>right side</b>

It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</div>
<div class="center-side"><b>center side</b>

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. </div>
<div class="clear"></div>
</div>
<div class="footer"><b>Footer</b>

The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.</div>

</body>
</html>

Link to comment
Share on other sites

  • 0

Спасибо! Но это немного не то. Нужно чтобы нижний блок все время располагался внизу страницы браузера. А верхние по мере заполнения просто спускались вниз, упираясь в нижный блок и, соответственно, спускали бы его вниз не налезая на него.

Link to comment
Share on other sites

  • 0
Спасибо! Но это немного не то. Нужно чтобы нижний блок все время располагался внизу страницы браузера. А верхние по мере заполнения просто спускались вниз, упираясь в нижный блок и, соответственно, спускали бы его вниз не налезая на него.

а что - таблицы не катят?

Link to comment
Share on other sites

  • 0

Так, теперь я вроде разобрался.

klierik, большое спасибо!

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

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