background preloader

CSS

Facebook Twitter

24 полезных инструмента для создания адаптивных сайтов. Традиционный дизайн с фиксированной шириной уже не в моде, многие хотят, чтобы сайт отображался одинаково на всех устройствах: мобильных телефонах, планшетах, смартфонах и т.д. ? Сегодня, как никогда, популярна технология адаптивного веб-дизайна (responsive web design), поэтому мы предлагаем Вашему вниманию подборку полезных инструментов, которые значительно упростят создание «универсального» сайта. Надеемся, Вы найдёте здесь что-то нужное. Вкратце, согласно Итану Маркотту, основными состaвляющими создания responsive web design являются: Использование резинового типа макета;Резиновые изображения и видео;Использование media queries;Подход Mobile First – «Сперва мобильные».

Итак, вот некоторые инструменты, которые помогут Вам в созданиии адаптивного дизайна. Инструменты для создания резинового типа макета 1.Golden Grid System — модульная сетка, которая использует правила «золотого сечения». 2.Tiny Fluid Grid — генератор CSS-файлов для сеточной разметки страницы. 12.Blueberry 19. Комментарии. Font2Web - Your Online Font Converter Converting .ttf and .otf to .woff, .eot and.svg. 50 полезных скриптов и плагинов на jQuery. Code Snippets. 5 приемов для разработки динамических сайтов. Идеальный сайт — это тот, который одновременно прост и интересен. Лучшие вебсайты создают впечатление того, что будущее наступило, и пользователи идут в ногу со временем. Это пробуждает у пользователей желание снова и снова заходить на сайт, просто потому что он классно загружается и по нему весело гулять.

Веб-дизайн — это искусство, а с современными техниками программирования стало так просто создавать сайты, которые радуют и вдохновляют пользователей. Этот урок научит, как создать особый эффект, не только любителей, ранее использовавших чистый HTML, но и настоящих профессионалов, желающих научиться создавать простые, приятные, эффектные сайты. Вертикальные скрывающиеся панели Если на вашем сайте есть информация, которую вы не хотите открывать в новом окне, но и не хочется, чтоб она вечно было на виду, поместите ее на вертикальную панель, которая будет открываться и скрываться при нажатии на кнопку. У HTML блока div будет id = “frame” и class = “content”.

SpyreStudios Пример Пример. Пример: HTML5 Playground. HTML5. HTML5 Demos and Examples. HTML5 Rocks - A resource for open web HTML5 developers. HTML5 Video. Introduction In modern browsers, adding a video to your page is as easy as adding an image. No longer do you need to deal with special plug-ins or require crazy markup, you can do it with a single element. The Markup Let's jump in with a really simple example: That's all you need to embed a simple video on your page and show the basic controls so that a user can play, pause or otherwise control the video.

Specifying Sources You can specify multiple source files by using the <source> element. When the browser parses the <source> tag, it uses the optional type attribute to help decide which file to download and play. It's also a good idea to make sure that your videos are being served with the right MIME type. Media Fragments Adding a media fragment to the media URL, you can specify the exact portion you want to play. You can also specify the times in hours:minutes:seconds, such as #t=00:01:05 to start the video at one minute, five seconds in. Providing captions and subtitles Attributes Styling. Реалистичные тени при помощи CSS3 без использования изображений. Google Переводчик. Vertical Navigation Menu: CSS3 Coded. Все в одном знамени-JQuery Rotator-Content Slider Preview - CodeCanyon. Кнопки в стиле сайта YouTube » Скрипт.я1.ру.

Кнопки в стиле сайта YouTube Последняя вариация дизайна сайта YouTube имеет интересный вид кнопок (большей частью они расположены в нижнем колонтитуле), которые в обычном состоянии имеют еле различимую рамочку, но при наведении курсора мыши на них как бы "всплывают", побуждая посетителя нажать их. Такой дизайн кнопок очень выразителен и отлично работает. 1) Состояние по умолчанию не бросается в глаза посетителя, соревнуясь за его внимание с другими достойными элементами интерфейса. 2) Посетитель все равно получает призыв нажать их, когда становится необходимо. 3) Они выражают другой функционал, в отличие от ссылок, расположенных рядом (нажатие на них не приводит к переходу на другую страницу).

Такие кнопки открывают выпадающие панели для выбора установок.. Разметка для кнопок вполне обычная: Кнопка #1 А стили нужно установить для всех трех состояний: . button { border : 1px solid #DDD; border - radius : 3px ; text - shadow : 0 1px 1px white ; - webkit - box - shadow : 0 1px 1px #fff; Резиновая верстка по высоте DIV - Блог Кировского строителя Интернет. Многие неопытные веб-мастера сталкиваются с проблемой, когда верстают резиновый макет. Как правило, если макет тянется, то тянется он и по высоте, но тут возникает трудность. Трудность заключается в том, чтобы «прилепить» подвал (footer) внизу макета. С табличной версткой не у кого не возникает проблем, а вот с модной дивной люди ломают голову. Итак, что мы имеем. Макет, состоящий из двух основных частей, область контента и подвал.

Задача ясна, начинаем верстать. Первая строка объявляет браузеру, какой спецификации придерживаться при формировании документа. Четвертая в принципе не нужна, она указывает браузеру Internet Explorer 8 отображать содержимое документа как в 7 версии, практика показывает некие отклонения 8 от 7 при более масштабной верстке. Пятая объявляет браузеру выбранную нами кодировку, в данном случае используем UTF-8. Девятая строка подключает файл с нашими стилями. Двенадцатая и четырнадцатая начало и конец нашей области контента. Пятнадцатая область подвала. The Perfect 3 Column Liquid Layout: No CSS hacks. SEO friendly. iPhone compatible. Download this layout (25kb zip file). Percentage dimensions of the holy grail layout All the dimensions are in percentage widths so the layout adjusts to any screen resolution.

Vertical dimensions are not set so they stretch to the height of the content. Maximum column content widths To prevent wide content (like long URLs) from destroying the layout (long content can make the page scroll horizontally) the column content divs are set to overflow:hidden. 800 x 600 Left & right columns: 162 pixels Center page: 357 pixels 1024 x 768 Left & right columns: 210 pixels Center page: 459 pixels The nested div structure I've colour coded each div so it's easy to see: The header, colmask and footer divs are 100% wide and stacked vertically one after the other. No CSS hacks The CSS used for this layout is 100% valid and hack free.

SEO friendly 2-1-3 column ordering Full length column background colours In this layout the background colours of each column will always stretch to the length of the longest column. «Резиновая вёрстка»: используем отрицательные поля - Вёрстка - Webmascon. Я недавно столкнулся с задачей, в которой надо было создать двухколоночный макет страницы с "шапкой" и "подвалом", причём в коде страницы контент должен был быть расположен перед блоком боковой колонки. Я решил воспользоваться возможностью продемонстрировать малоизвестный приём CSS-вёрстки: отрицательные поля (negative margins).

Отрицательные поля позволяют нам сместить область контента за границы окна браузера, освободив место для боковой колонки. Постановка задачи Итак, чтобы показать, как полезны могут быть отрицательные поля для создании резиновой вёрстки, давайте-ка сделаем резиновый двухколоночный макет с "шапкой" и "подвалом". Область основного содержимого (контента) будет слева, вторая колонка - справа. Зная, как работают "плавающие" блоки, проще всего было бы разместить боковую панель перед блоком контента, позволив ей обтекать (float) контент с правой стороны. Исходный код Давайте-ка взглянем на код двухколоночной страницы с "шапкой" и "подвалом", с которым мы будем работать:

Mozilla Firefox (Build 20111220165912) Резиновая верстка - Блочный подход - Верстка на div-ах - Прижатие футера к нижней части окна браузера. Уважаемый читатель, устраивайтесь поудобнее и я познакомлю вас с принципами резиновой блочной верстки сайта. Ранее рассмотренная нами фиксированная модель превращается в резиновую всего-на-всего заменой пикселной ширины блока <div id=»wrapper»> на процентную. Таким образом, ширина сверстанного сайта будет изменяться в зависимости от размера окна браузера. В видеоуроке я установил ширину блока <div id=»wrapper»> в 100% от ширины окна браузера. Можно задавать и меньшее количество процентов, тогда сайт будет занимать лишь часть окна браузера. Без определенных стилей выравнивания блока сайт съедит в левую часть окна. Первое, что приходит в голову — это указать у элемента body свойство text-align:center.

Правильным будет указать равные левый и правый внешние отступы для элемента <div id=»wrapper»> и значение их — auto. CSS-инструкция для блока wrapper будет иметь такой вид: Или в сокращенной форме: В этом случае вы будите четко видеть границы верстаемого блока. Видео с сервиса RuTube: Резиновая по ширине и высоте верстка (заготовка) « Блог о верстке. В современной практике верстки веб страниц используется два варианта. Резиновая верстка и фиксированная. Вариант резиновой верстки мы с вами и рассмотрим поподробнее. Нашей целью будет создать вот такой макет Начать стоит со стуктуры макета. <div class="wrap"><div class="header"> Шапка </div><div class="sidebar-left"> Левая колонка </div><div class="sidebar-right"> Правая колонка </div><div class="content"> Центральная колонка </div><div class="clear"></div><div class="empty"></div></div><div class="footer"> Футер </div> В файле стилей зададим странице и основному контейнеру высоту в 100% Теперь зададим слою empty высоту 100 пикселей (равна высоте подвала).

Все вместе это дает нам прижатый к низу футер, вне зависимости от высоты страницы (если конечно контента не больше) Далее зададим остальные стили. Результат работы можно посмотреть по ссылке: тыц. CSS3 Generator. Box Shadows. 960 Grid System. Ultimate CSS Gradient Generator - ColorZilla.com. Add and delete vertical space in measured intervals. “Headings, subheads, block quotations, footnotes, illustrations, captions and other intrusions into the text create syncopations and variations against the base rhythm of regularly leaded lines. These variations can and should add life to the page, but the main text should also return after each variation precisely on beat and in phase.”

The most common addition of vertical space on a webpage is that inserted between paragraphs. If the rhythm of the page is to be maintained, the spacing of paragraphs should be related to the basic leading. For example, the text on this page is set at 12 px with a line-height of 1.5 em, making each line 18 px in height.

It should be noted that the default treatment by web browsers of paragraphs (and other block level elements such as blockquotes and lists) is to insert a top- and bottom-margin of 1 em. Variations in text size Headings The subheadings on this page are set to 14 px. Sidenotes Images. Choose a basic leading that suits the typeface, text and measure. “Vertical space is metered in a different way [to horizontal space]. You must choose not only the overall measure – the depth of the column or page – but also a basic rhythmical unit.

This unit is the leading, which is the distance from one baseline to the next.” Leading (pronounced “ledding”) is so called because, in mechanical presses, strips of lead are placed between lines of type to space the lines apart. Leading is achieved in CSS through the line-height property. For example 12 point text can be given 3 points of lead in the following manner: That example will give you the same line-height throughout all your paragraphs, however it does introduce the danger that, when the browser text size is increased by your reader (to 18 pt for example) the line-height may remain at 15 pt. A safer approach is to use a unitless value. In this example the value of line-height is a multiplier: 1.25 x 12 = 15 pt. Line-height spacing is added equally above and below the text. Уроки CSS. Выучить таблицы стилей css не так уж сложно, ведь их не так много, как тегов html или функций php.

К тому же и учить понадобится не все. Главное - вы должны понять, как связать html и css. Для этого пройдите наши уроки css. ! Если этот сайт оказался вам полезен, вы можете помочь в его развитии, поставив одну из этих ссылок на свой сайт. Код кнопки: Скачайте одним архивом видеоуроки по верстке сайта! Теперь нажмите кнопку, что бы не забыть адрес и вернуться к нам снова. CSS Reset | CSS Reset – All the most common CSS Resets in one place with one-click copy/paste, documentation and tutorials. CSS Reset.com - CSS Resets and Free CSS Tutorials & Resources. Google Переводчик. Create An HTML/CSS Mobile Web App Using Sencha Touch - Smashing Coding. Advertisement The world of mobile app development is quickly becoming a crowded and complicated space, especially for those outside of the development niche. “Which development platform should I use?” “Do I go native or Web-based?”

“Which devices should I plan for?” “Can I build my mobile website by hand or should I use a pre-built package?” The questions are endless. As a designer, my job is to help my clients answer these questions. What Is A Mobile Web App? A mobile Web app is an app that you access via a mobile browser (such as iPhone’s Safari). Why Create a Mobile Web App Instead of a Native App? Deciding whether a native or Web-based app is best for your client comes down to the audience they are trying to reach. Your audience is searching for you primarily from a mobile Web browser;Users are on a multitude of devices (iPhone, Android, BlackBerry, etc.)

How To Design A Mobile Web App What does this mean? Technology Analysis: jQTouch or Sencha Touch? Example Project: The Roookies App (kw) An Introduction To Object Oriented CSS (OOCSS) - Smashing Coding. Rapid Prototyping For Any Device With Foundation - Smashing Coding. CSS3 Flexible Box Layout Explained - Smashing Coding. Advertisement The flexible box layout module — or “flexbox,” to use its popular nickname — is an interesting part of the W3C Working Draft. The flexbox specification is still a draft and subject to change, so keep your eyes on the W3C, but it is part of a new arsenal of properties that will revolutionize how we lay out pages. At least it will be when cross-browser support catches up. In the meantime, we can experiment with flexbox and even use it on production websites where fallbacks will still render the page correctly. It may be a little while until we consider it as mainstream as, say, border-radius, but our job is to investigate new technologies and use them where possible.

That said, when it comes to something as fundamental as page layout, we need to tread carefully. The Display Property So what is flexbox, and why was it created? Until last year, most of us were using tables to lay out our pages. The box model worked, and in most cases it worked well. Many Problems, Many Solutions. Resolution Independence With SVG - Smashing Coding. JQuery Web iOS. 7 Useful CSS3 Code Generators | Coding, Tools.

To write CSS manually is not tough, if you know the properties you can easily write CSS. But what if you are too lazy to write your own code then there are lots of CSS code generator available on net, as in CSS3 lots of new porperties introduced which are very helpful, we focused mainly on CSS3 code generators. CSS code generators make it easier to create the wanted code instantly; therefore anyone can do it without having any experience of CSS coding. CSS code generator can help you to learn more about CSS too and you will be able to write it manually too. Below we have listed 7 useful CSS3 code generators and you may also be interested in: 30 Effective CSS3 TutorialsNewest Design Trends with Popular CSS3 TechniquesHow To Develop CSS3 Border Radius ToolEverything You Need to Know about CSS3 Color TechniquesBest Examples of CSS3 Navigations and Menu Tutorials 1. 2. 3.

Helps to generate Linear Gradients, Radial Gradients, Text Shadows, Box Shadows, Transforms and Text Stroke. 4. 5. 6. 7. CSS расширения для движка WebKit. CSS.

CoverFlow