-
Posts
13707 -
Joined
-
Last visited
-
Days Won
58
Content Type
Profiles
Forums
Calendar
Store
Everything posted by psywalker
-
Верстка горизонтального меню с вертикальными полосками по краям
psywalker replied to skiph's question in HTML Coding
возможно, но как сэмулировать справа фон? Точно ведь не угадаешь сколько нужно пикселей. В той же опере будет по другому выглядеть. А ты можешь сделать тестовую страницу с примером. И показать скриншоты того, как нужно, чтобы было, во всех состояниях и как не нужно. Чтобы я точно увидел, что за картинки и т.д. И ещё вопрос: О каких пикселях идёт речь? Что ты имеешь ввиду? -
Вот в общем придумал такой вариантик, немного косячный с полосой прокуртки. Очень надеюсь, что кто нибудь из Экспертов покажут хорошее решение, на чистом CSS. <!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>Документ без названия</title> <style type="text/css"> html {overflow-x: hidden;} html,body {height: 100%; min-height: 700px; margin: 0; overflow: hidden; } .fixed {width: 200px; height: 500px; background: red; float: left;} .wrap { position: relative; height: 100%; overflow: auto; margin-left: 250px;} .basis {position: relative; min-height: 100%; } .content { padding-bottom: 120px;} .foot { height: 100px; position: absolute; background: black; bottom: 0; left: 0; width: 100%; }/**/ </style> </head> <body> <div class="fixed"></div> <div class="wrap"> <div class="basis"> <div class="content"> <p>Carpet Removal Shortly about us 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. 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). There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc. Wood Floor Sanding Wood Floor Varnish Wood Floor Repairs and Restorations Gap Filling Wood Floor Polishing Wood Floor Oiling Wood Floor Waxing Carpet Removal </p> <p>Carpet Removal Shortly about us 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. 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). There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc. Wood Floor Sanding Wood Floor Varnish Wood Floor Repairs and Restorations Gap Filling Wood Floor Polishing Wood Floor Oiling Wood Floor Waxing Carpet Removal </p> <p>Carpet Removal Shortly about us 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. 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). There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc. Wood Floor Sanding Wood Floor Varnish Wood Floor Repairs and Restorations Gap Filling Wood Floor Polishing Wood Floor Oiling Wood Floor Waxing Carpet Removal </p> </div> <div class="foot"></div> </div> </div> </body> </html>
-
Я позже освобожусь, покажу решение.
-
Верстка горизонтального меню с вертикальными полосками по краям
psywalker replied to skiph's question in HTML Coding
skiph, Не подойдёт? http://forum.htmlbook.ru/index.php?showtopic=28635&view=findpost&p=216104 -
http://screencast.com/t/3dsU7gdvf да, заметил. Значит не прошло предположение с прибитым футером. Однако, если сделать ему релатив, то фиксед под ним будет скрываться. Ну можно вообще его прибить абсолютом, тогда никакие релативы и з-индексы не нужны будут. На самом деле суть не в этом. Решение мне самому интересно, попробую позже покопаться, отпишу, если что. Тут эмуляцию надо делать, я полагаю...
-
http://screencast.com/t/3dsU7gdvf
-
Да с чего бы? А с чего бы нет? Оно будет прокручиваться, но до определенного предела. Т.е. фиксед не упадет в самый футер, если он не позиционрован именно с bottom:0; Так, погоди-ка. Мы говорим о разных вещах или нет? Я говорил про то, что фиксед не прокручивается вместе с остальным сайтом, а всегда остаётся на месте. Т.е. на том месте экрана, где он находится. Пляшет от экрана короче. Да, все правильно ты говоришь. И я говорю про то, что если задать блоку top:100, то он всегда будет на этом месте, но при этом, он будет находиться в пределах страницы. Т.е. страница-то не бесконечная, вот я о чем. Поэтому и выдвинул гипотезу с прибитым футером, т.е. чтобы на нем страница заканчивалась. А всё равно будут косяки. Попробуй сделай вариант, покажи плиз.
-
Тогда футер полюбому будет на него наезжать при чуть плохой игре.
-
Да с чего бы? А с чего бы нет? Оно будет прокручиваться, но до определенного предела. Т.е. фиксед не упадет в самый футер, если он не позиционрован именно с bottom:0; Так, погоди-ка. Мы говорим о разных вещах или нет? Я говорил про то, что фиксед не прокручивается вместе с остальным сайтом, а всегда остаётся на месте. Т.е. на том месте экрана, где он находится. Пляшет от экрана короче.
-
Да с чего бы? А с чего бы нет?
-
Всё, что не фиксед, будет прокручиваться. Выход: сделать футер тоже фикседом.
-
Да не работает у тебя нихрена. Попробуй в хроме экран сделать меньше, сразу косяки полезут. В общем решение следующее. У тебя блоки фикс по высоте, а значит в ячейки дивы, им высоту, релатив и уже внутрь этих дивов клади кнопки, на абсолюте и их по низу выравнивай координатами.
-
sigma77, Спасибо Оксан, хорошо объяснила прям На счёт бордер-имедж слышал, ага
-
Да и с размытием можно - http://jsfiddle.net/fainz777/WN8vL/1/ В Мозилле можно в принципе, если толщина границы больше 1px закрашивать каждую линию в свой цвет - http://jsfiddle.net/fainz777/WN8vL/2/ Не помню, есть ли аналоги в других браузерах. Оксан, спасибо. А объясни плиз, как работает вот эта вещь? 1) -moz-border-top-colors: #e00 #c30 #c50 #c60 #c70 #c80 #c90 #ca0 #cb0 #cc0; 2) А можно ли задавать свои изображения?
-
К счастью, IE самовольно в обход спецификации позволяет задавать гораздо больше. Поэтому из комбинации first/last/nth-child и col можно слепить достаточно кроссбраузерную штуку. Дружище, а можешь перечислить те вещи, которые позволяет делать ИЕ с col
-
Абсолют не пашет для ячеек таблицы. Поэтому я удивляюсь, как все, кроме фф, смогли поддасться на этот трюк. Дай ссылку посмотреть.
-
А фаербаг слабо открыть? border: 8px solid transparent; box-shadow: 0 0 8px rgba(0, 0, 0, 0.15); А если человеку нужны ИЕ6-8, то твой код не поможет. Прикольно кстати. Слушай, а вместо тени можно как нить свою картинку вставлять?
-
фиксированный бекграунд при определенной высоте
psywalker replied to sergeyvolk's question in HTML Coding
А покажи скриншоты того, как должно быть и как не должно. -
Google chrome min-height , height:auto не робит!
psywalker replied to danial72's question in HTML Coding
А как должно работать? Цель? -
Underline, Зацени тут, дружище, похожая задача была: http://psywalker.ru/SAITS/Izoprint2/main-page.html
-
Я предлагаю прям изначально грузить картинки в кэш браузера. Вот тебе пример http://psywalker.ru/Forum/JS/Primitive/Dom-Zadachi/MultFilm/MultFilm2.html
-
Отрубал, без него работает. Но он нужен, т.к. галерея — главный элемент страницы. Тогда думай, что тебе важнее, либо ищи другой скрипт, либо попробуй сверху написать свой на чистом ЖС для подвала. Сразу бы сказал, что не знаешь, как решить поставленую задачу. Зачем форум мусором заполнять, ты же администратор? А насчет гибкости — не вижу разницы между контейнерами body и div... да и html можно еще задействовать... Где ты увидел мусор в полезных советах? Гибкость заключается в том, что: 1) body - это тело документа, а т.е. в нём должен находится сайт, т.е. блок с сайтом, а не отдельные куски. 2) Сайт без обёртки часто сулит проблемы с джиквери, уже не раз это замечал. И не только по твоему случаю. 3) Обёртке можно легко назначить фон, отцентрировать её и т.д. Что с body не прокатит. Вот тебе обычный пример: <!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>Документ без названия</title> <style type="text/css"> * { margin: 0} html{ height: 100%;} body { width: 600px; margin: 0 auto; background: red url(children.jpg); min-height: 100%; position: relative;} </style> </head> <body> fsfjdsdf jsdkjdskjd slkdsjkljds kldsj </body> </html> Тут видно, что фон-картинка всё равно распространяется на всё окно, не смотря на то, что у твоего body стоит ширина. 4) Покажи мне хоть ОДИН источник, где футер прибивали, пользуясь только body? Это только цветочки...
-
Откуда такие цифры? Да по ощущениям. Кого не спроси - Москва или подмосковье. И это логично, так как количество людей имеющих нормальный инет в одной только Москве чуть ли не больше, чем во всей остальной России вместе взятой. Да нее, человек 200 максимум из 20000 москвичи.
-
В том, что, например, ему можно задавать размеры, а так же верхние, нижние маргины и всё это будет работать.