Форум программистов, компьютерный форум, киберфорум
HTML, CSS
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 5.00/11: Рейтинг темы: голосов - 11, средняя оценка - 5.00
0 / 0 / 0
Регистрация: 06.05.2014
Сообщений: 3

Горизонтальное меню съезжает

13.05.2014, 00:16. Показов 2060. Ответов 1
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
Подскажите начинающему.При уменьшении окна браузера часть меню съезжает вниз.Что нужно поправить,чтобы это не происходило.
Код:
HTML5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html>
<head>
<title>da vinci</title>
<meta charset="UTF-8">
<link href="css/main.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="page_align">
     <div id="header">
     <a href="index.html"><img src="images/logo.png" alt="Логотип" width="100%" /></a>
     </div>
     <div id="slideshow">
     </div>
     <div id="menu">
     <ul>
         <li><a href="#">О салоне</a></li>
         <li><a href="#">Портфолио</a></li>
         <li><a href="#">Услуги</a></li>
         <li><a href="#">Отзывы</a></li>
         <li><a href="#">Контакты</a></li>
         <li><a href="#">Акции</a></li>
     </ul>    
     </div>
     <div id="content">
     Классический текст Lorem Ipsum, используемый с XVI века
 
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
 
Абзац 1.10.32 "de Finibus Bonorum et Malorum", написанный Цицероном в 45 году н.э.
 
"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"
 
Английский перевод 1914 года, H. Rackham
 
"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?"
 
Абзац 1.10.33 "de Finibus Bonorum et Malorum", написанный Цицероном в 45 году н.э.
 
"At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat."
 
Английский перевод 1914 года, H. Rackham
 
"On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains."
 
 
     </div>
     <div class="clr">
     </div>
</div>
</body>
</html>
CSS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
* {margin: 0;
    padding: 0;
    outline: none;}
 
body {background: url("../images/background.png") #d4c9c5 no-repeat;
background-size: cover;
font: 12px Arial, Tahoma, sans-serif;}
 
a {text-decoration: none;}
 
#page_align {width: auto;
           margin:  0 auto;
           overflow-x: hidden;}
 
#header {height: 149px;
         )
}
 
#slideshow {height: 270px;
    margin-top: 148px;
}
 
#menu { height: 80px;
 background: black;
}
#menu ul {
list-style: none; }
 
#menu ul {
text-align:center ;}
 
#menu li {
display:inline-block ; float:none;} 
 
#menu ul li a { 
font: bold 24px/24px Tahoma;
line-height: 0px;
    padding: 40px;
display: block; 
color: #ffffff;}
 
#menu ul li a:hover{ background: #cc6600;
        }
 
 
#content {  width: 984px;
    margin: 0 auto;
    padding: 15px;
    background: white;}
 
.clr {clear: both;}
0
IT_Exp
Эксперт
34794 / 4073 / 2104
Регистрация: 17.06.2006
Сообщений: 32,602
Блог
13.05.2014, 00:16
Ответы с готовыми решениями:

Горизонтальное меню съезжает
Почему горизонтальное меню не накладывается на логотип? и как сделать так, чтобы оба края меню были на уровне краев блока с контентом? ...

Изменить горизонтальное меню - сделать автозакрытие выпадающего меню после отвода курсора
Вообщем что имеем: http://test.aowserv.ru имеется горизонтальное меню, при наведении на кнопку Пример появляется выпадающее меню. вообщем...

Съезжает меню
Здравствуйте. На сайте с ай-пи 37точка143точка10точка133 при масштабировании страницы съезжает вниз пункт главного меню...

1
SF
Boo
142 / 117 / 55
Регистрация: 02.12.2013
Сообщений: 396
13.05.2014, 03:00
holdstred, не вижу проблемы, может это ?
Цитата Сообщение от holdstred Посмотреть сообщение
HTML5
1
<div id="slideshow"></div>
CSS
1
#slideshow {height: 270px; margin-top: 148px; }
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
BasicMan
Эксперт
29316 / 5623 / 2384
Регистрация: 17.02.2009
Сообщений: 30,364
Блог
13.05.2014, 03:00
Помогаю со студенческими работами здесь

Почему съезжает меню?
Здравствуйте! Подскажите пожалуйста почему при увеличении масштаба начинает съезжать меню? &lt;div id=&quot;header&quot;&gt; ...

Фиксированное меню съезжает
Фиксированное меню с кнопками съезжает при выводе новостей, может кто помочь? Скрин &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML...

Съезжает меню на сайте
Всем доброго времени суток! Подскажите как быть с меню на этом сайте. Дело в том что при наведении на пункт меню и при нажатии на пункт...

Съезжает меню в Firefox'e
При просмотре в хроме все нормально, в лисе вот такой косяк(см скрин) &lt;div class=&quot;menu1&quot;&gt; &lt;ul id=&quot;menu&quot;&gt; ...

Выпадающее меню съезжает влево
Добрый день! Вчера решила добавить выпадающее меню. Стили дописала, меню выпадает, но съезжает влево. Выпадение меню можно просмотреть...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
2
Ответ Создать тему
Новые блоги и статьи
Загрузка PNG-файла с альфа-каналом с помощью библиотеки SDL3_image на Android
8Observer8 27.01.2026
Содержание блога SDL3_image - это библиотека для загрузки и работы с изображениями. Эта пошаговая инструкция покажет, как загрузить и вывести на экран смартфона картинку с альфа-каналом, то есть с. . .
влияние грибов на сукцессию
anaschu 26.01.2026
Бифуркационные изменения массы гриба происходят тогда, когда мы уменьшаем массу компоста в 10 раз, а скорость прироста биомассы уменьшаем в три раза. Скорость прироста биомассы может уменьшаться за. . .
Воспроизведение звукового файла с помощью SDL3_mixer при касании экрана Android
8Observer8 26.01.2026
Содержание блога SDL3_mixer - это библиотека я для воспроизведения аудио. В отличие от инструкции по добавлению текста код по проигрыванию звука уже содержится в шаблоне примера. Нужно только. . .
Установка Android SDK, NDK, JDK, CMake и т.д.
8Observer8 25.01.2026
Содержание блога Перейдите по ссылке: https:/ / developer. android. com/ studio и в самом низу страницы кликните по архиву "commandlinetools-win-xxxxxx_latest. zip" Извлеките архив и вы увидите. . .
Вывод текста со шрифтом TTF на Android с помощью библиотеки SDL3_ttf
8Observer8 25.01.2026
Содержание блога Если у вас не установлены Android SDK, NDK, JDK, и т. д. то сделайте это по следующей инструкции: Установка Android SDK, NDK, JDK, CMake и т. д. Сборка примера Скачайте. . .
Использование SDL3-callbacks вместо функции main() на Android, Desktop и WebAssembly
8Observer8 24.01.2026
Содержание блога Если вы откроете примеры для начинающих на официальном репозитории SDL3 в папке: examples, то вы увидите, что все примеры используют следующие четыре обязательные функции, а. . .
моя боль
iceja 24.01.2026
Выложила интерполяцию кубическими сплайнами www. iceja. net REST сервисы временно не работают, только через Web. Написала за 56 рабочих часов этот сайт с нуля. При помощи perplexity. ai PRO , при. . .
Модель сукцессии микоризы
anaschu 24.01.2026
Решили писать научную статью с неким РОманом
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru