Галерея ввиде портфолио. Плагин для создания портфолио Голосование на Ajax «TinyEditor»

Жаропонижающие средства для детей назначаются педиатром. Но бывают ситуации неотложной помощи при лихорадке, когда ребенку нужно дать лекарство немедленно. Тогда родители берут на себя ответственность и применяют жаропонижающие препараты. Что разрешено давать детям грудного возраста? Чем можно сбить температуру у детей постарше? Какие лекарства самые безопасные?

by Dmitry Semenov
is a jQuery image gallery and content slider plugin. It’s completely responsive, touch-friendly and has modular architecture that allows you include only features that you need to optimize file size and performance.


by Andy – The Coffeescripter
A highly customizable gallery/showcase plugin for jQuery.

by Trent
Galleriffic is a jQuery plugin that provides a rich, post-back free experience optimized to handle high volumes of photos while conserving bandwidth.

Tonic Gallery – jQuery XML Portfolio Gallery | $6

by Aino
Galleria is a JavaScript image gallery framework built on top of the jQuery library. The aim is to simplify the process of creating professional image galleries for the web and mobile devices.

by CatchMyFame
The other day I went looking for a simple way using jQuery to fade between a set of images on a page. So, being a coder, I set out to create my own plugin.

by Thomas Kahn
Smooth Div Scroll is a jQuery plugin that scrolls content horizontally left or right. Apart from many of the other scrolling plugins that have been written for jQuery, Smooth Div Scroll does not limit the scrolling to distinct steps.

by Victor Zambrano – frwrd.net
Minishowcase is a small and simple php/javascript online photo gallery, powered by AJAX that allows you to easily show your images online, without complex databases or coding, allowing to have an up-and-running gallery in a few minutes.

by Caspar David Friedrich
EOGallery is a web animated slideshow gallery made with jQuery. It only uses basic jQuery functions and Cody Lindley’s Thickbox to display larger pictures.

by Arnault Pachot
A multi-format carousel for jQuery, Non obstrusive and accessible portfolio supporting multiple media: photos, video (flv), audio (mp3). This plugin for jQuery will automatically detect the extension of each media and apply the adapted player.

The Wall – Media Gallery – jQuery powered | $5

by Stefan Petre
Another image gallery plugin with space effect, very light and simple plugin.

by Moreno Di Domenico
jmFullWall is a jQuery plugin for the creation of an impressive portfolio.

by Fabrizio Calderan
Mosaiqy is a jQuery plugin for viewing and zooming photo working on Opera 9+, Firefox 3.6+, Safari 3.2+, Chrome and IE7+. Photos are retrieved from a JSON/JSONP data structure and randomly moved inside the grid. All expensive animations are taken over by your GPU on recent browsers using CSS3 transitions, minimizing the CPU overhead.

by Cody
The following jQuery plugin transforms a set of images into a tiny gallery with several options. The Micro Image Gallery allows to switch between a grid view which shows a preview of the images as thumbnails and a single view showing one image only.

VION – jQuery Image Gallery Plugin | $7

by Malihu
A simple, yet elegant fullscreen image gallery created with the jQuery framework and some simple CSS.

Навигация по фотографиям в портфолио с возможностью перемещаться вверх, вниз, влево или вправо. Используется jQuery .

HTML

Используется основная DIV обертка внутри которой находятся: фон, стрелки навигации и сама галерея с картинками:

Вверх Вниз Назад Вперед

CSS

В начале определим стиль основного контейнера. Устоновим фиксированную позицию и отцентрируем по середине экрана с помощью left и top и margin :

#portfolio { position:fixed; top:50%; left:50%; z-index:1; width:1000px; height:500px; margin:-250px 0 0 -500px; }

Контейнер с фоном тоже сделаем фиксированным и добавим эффект точечного освещения с помощью bacground-image:

#background { position:fixed; top:0; left:0; width:100%; height:100%; z-index:2; background:url(../images/bg.png) no-repeat center; }

Галерею позиционируем абсолютно:

#portfolio .gallery, #portfolio .gallery .inside { position:absolute; top:0; left:0; }

Галерея будет занимать всё пространство нашей странички с портфолио:

#portfolio .gallery { width:100%; height:100%; overflow:hidden; }

Для DIVа inside установим z-index:1;

#portfolio .gallery .inside { z-index:1; }

Теперь поработаем над стилем стрелок. Определим сначала общий стиль:

#portfolio .arrows a { position:absolute; z-index:3; width:32px; height:32px; background-image:url(../images/arrows.png); background-repeat:no-repeat; outline:none; text-indent:-9999px; }

И затем стиль всех стрелочек индивидуально:

#portfolio .arrows .prev, #portfolio .arrows .up { display:none; } #portfolio .arrows .up, #portfolio .arrows .down { left:50%; margin-left:-16px; } #portfolio .arrows .prev, #portfolio .arrows .next { top:180px; } #portfolio .arrows .up { background-position:0 -64px; top:20px; } #portfolio .arrows .down { background-position:0 -96px; bottom:120px; } #portfolio .arrows .prev { background-position:0 -32px; left:60px; } #portfolio .arrows .next { background-position:0 0; right:60px; } #portfolio .arrows .up:hover { background-position:-32px -64px; } #portfolio .arrows .down:hover { background-position:-32px -96px; } #portfolio .arrows .next:hover { background-position:-32px 0; } #portfolio .arrows .prev:hover { background-position:-32px -32px; }

Для DIV с классом item , которые являются оболочками наших изображений, стили будут такие:

#portfolio .item { position:absolute; top:0; width:1000px; height:400px; }

Каждая оболочка изображений будет абсолютно позиционироваться и занимать все пространство:

#portfolio .item div { position:absolute; left:0; width:100%; height:100%; }

Каждое изображение будет по центру. Имейте ввиду , что в Демо у нас изображения шириной в 600px , поэтому если у вас изображения разных размеров, то их нужно привести к одной и той же ширине.

А это стиль маленьких квадратиков, которые также выполняют роль навигации по изображениям портфолио, как и стрелки (добавляться они будут динамически):

#portfolio .paths { position:absolute; bottom:60px; left:50%; margin-left:-30px; z-index:4; } #portfolio .paths div { position:absolute; top:0; } #portfolio .paths a { background:#333; display:block; position:absolute; left:0; outline:none; } #portfolio .paths a:hover, #portfolio .paths .active { background:#fff; }

jаvascript

В шапке подключаем скрипты:

Сначала jQuery , затем плагин и скрипт инициализации.
По умолчанию у плагина portfolio.js такие параметры:

$("#portfolio").portfolio({ image: { width: 600, height: 400, margin: 20 }, path: { width: 10, height: 10, marginTop: 5, marginLeft: 5 }, animationSpeed: 400 });
Размеры изображения и отступ вокруг. Далее размеры и отступы навигационных квадратиков. И последнее это скорость анимации в мс .

An experimental web layout where several image columns get animated out when a menu item is clicked.The idea is based on the current trend of a grid layout where the columns are animated. In our demo, we animate a decorative image grid and make the columns move away in an alternating way, revealing some content underneath. We use a playful hover effect for the menu items and mimic the animating when they fly away. We also added some slight mouse move interaction for the columns.

Some experiments with the new staggering system of Anime.js where we try different effects for hiding and showing thumbnails in an image grid.

Recently, a new version of anime.js was released. One of the great new features is its staggering system that makes complex follow through and overlapping animations really simple. We wanted to give it a try and experiment with this new feature on an image grid with many thumbnails.

Today we’d like to share a little artsy effect with you. The idea is to show a fast fullscreen preview of images when hovering over a special link. In our demo we use the concept of a photographer’s website where the link to their works triggers the effect. On hover, some photos are shown rapidly in a loop. Once the link is clicked, the current image scales down and moves to its place in the grid. The animations are made using TweenMax.

Today we’d like to share a Masonry-powered grid layout with you that has a motion hover effect on the items and a content preview that is scrollable. Once a grid item is clicked, we animate the image to the center of the page and scale it up. The background of the item also scales up, filling the whole page and forming the new background of the content preview. The content preview is scrollable, with some more text showing beneath the image. The animations are powered by TweenMax .

DoFilter is a Full Responsive Bootstrap Multipurpose Filtering and Shorting plugin built on Latest Version of Bootstrap Framework (v3.3.7), HTML5, CSS3 and jQuery. Its wonderful features can be used to Filtering and Shorting your website content as like Portfolio, Service, Team, Blog, Products, Pricing, FAQ etc. Also you can customize it for Filtering and Shorting any your website content.

  • 19 Different Style Isotope Filtering
  • Grid and Masonry Filtering and Shorting
  • Lightbox Image Gallery
  • Image Hover Effect
  • W3C Valid HTML Code
  • HTML5 ,CSS3 & jQuery
  • 100% Responsive & Mobile-Friendly Layout

jQuery filter plugin is a must have element for any kind of website which through you will be able to present portfolio works fantastically. Here I am going to show you some of the best free & premium filter jquery portfolio plugins. These plugins can be used for business, corporate, creative, portfolio or any other related to portfolio works showcasing purposes.

I assume you are a web designer & finding a best portfolio filterable jquery gallery plugin for your next project. If I am right then you are in the right place. You will find here some best free & premium filter jQuery plugins. As a web designer I also used lots of time these types of plugins into my project for fulfill my client’s requirements.
Most of the theme you will see portfolio filtering gallery where anyone can display their works. It’s a great way to present portfolios at this time. These plugins below have all those features that can be fulfill your requirements as well. Some features I must mention for you if you don’t have enough knowledge about jquery filter plugins .

Most of the plugins are responsive, comes with multiple filtering animations & effects, unique css3 animations, beautiful hover effects, some plugins are expandable & also each item has separate carousel slider which through you can showcase more images. If you want to see a demo then you can view our Bootstrap template which is we released for our users for 100% free. We added the Elastic Grid filterable plugin into SinglePro which you will find below. Hope this collection will help you to find a best jquery filterable plugin. If you found this helpful & think it can be helpful for others then don’t hesitate to share this collection in social media. Thank You!

Free Filter/Filterable Plugins Isotope – Filter & sort magical layouts Jquery Plugins

Isotope is a well know jquery filter plugin in the web. This filtering will allow you to implement an amazing smooth filtering gallery into your website or template. Most of the web designer used this plugin into their projects. It’s free for open source & personal use only. If you use this plugin for commercial projects then you have to purchase a commercial license.

Mixitup – Free Animated Filtering And Sorting Jquery Plugins


Mixitup is another excellent filtering jquery plugin which can be perfectly used for any kind of portfolio galleries, image galleries & any other filtering gallery purposes. It has beautiful & unique filtering animation with smoothness. Mixitup is an open source project under Creative Common license . You can use it for personal or open source projects. If you want to use it for your commercial projects then you must purchase a commercial license.

Shuffle – Jquery free Responsive Filtering And Sorting Plugins


Shuffle is an amazing free filter jquery plugin which is inspired by the most popular filter plugins Isotope & Packery. If you are looking for a jquery filtering for showcasing your portfolios beautifully then Shuffle can be your right choice. It’s a free jquery portfolio filter plugin.

Elastic Grid – Responsive JQuery Portfolio filter Plugin


Elastic Grid is a fantastic free js filter plugin which will allow you to add an expandable filtering gallery for showcasing any kind of portfolios. It has beautiful filter animation. Each item also has a carousel slider with text contents. By using Elastic Grid you can give a extra powerful & unique look into your project.

jPList – Free flexible jQuery plugin for sorting, pagination and filtering


jPlist is a advance jquery filtering plugin which is giving some advance features for filtering any kind of data. You can filter or short data’s by pages, pagination, searches etc.

Quicksand – Free reordering and filtering items jquery Plugin


Create a filterable gallery using Quicksand. This plugin allow you to filter your contents by name, size & types. It has beautiful filtering animation which can be present your contents nicely. It’s a completely free jquery filter plugin.

Filtrify – Advanced tag filtering free jquery Plugin


Filtrify is a fantastic sorting & filtering plugin which is comes with advance search functionality. It builds with html5 & jQuery. It has run time search functionality. You will be able to filter your contents by category. Not only that, also you can show how many contents are available in each category.

Content Filter – CSS3 and Jquery Powerful Filter Plugin Free


It’s an amazing content filter jquery plugin which comes with some advance & fantastic features. You can filter your content by category, checkbox & radio buttons. It also has a run time search functionality which through you can filter your contents on fly. This can be used for any kind of content or portfolio filtering gallery.

Portfolio – Free Interactive and Filterable Jquery Plugin


Are you creating a website template? Want to add a filterable portfolio gallery for showcasing portfolio works? Then this plugin will exactly do this for you. You can filter your images, portfolios, your amazing works by using this plugin. It is easy to implement & can be perfectly used for portfolio filtering gallery.

jQuery ListNav – Free letter based jQuery Filtering Plugin


ListNav is a simple plugin which can be used for filtering listed content. If you have lots of contents in a list style & want to add a simple filtering functionality for those contents then ListNav is perfect for you. This plugin has no animation. It will just simply filter you contents in listing view.


It’s not a filtering gallery plugin like isotope, Mixitup. It’s a fantastic real time jquery search filter plugin. You will be able to add real time search functionality with text highlighting into your website by using this plugin.

jQuery TickBack – Animated List filtering free jQuery Plugin


Add a simple filterable image or content gallery by using TickBack. It can be used for filtering portfolio works or any other related to showcasing any kind of galleries. It’s a simple lightweight portfolio filter jquery plugin which is comes with a nice shuffle animation.

Guggenheim – Animated filtering, reordering and pagination free Plugin


Guggenheim is comes with tons of filtering features which through you can implement an excellent image or content filter gallery. This plugin packed with a slider means you are not only able to add filter functionality also you can add a slider for your content gallery. You can filter your contents in some multiple ways like category, checkbox, radio buttons etc with a carousel slider.

Premium Filter/Filterable Plugins Colio – Content Expander jQuery Portfolio Filter Plugin


Colio is not only a simple jquery filter plugin. It comes with a modern & unique design. You will be able to implement a filterable gallery with item expander which is also have a carousel content slider & images with lightbox. If you are designing a business, corporate or portfolio website then this is a must have plugin for your project. Your project will be more creative & powerful by implementing this portfolio filter jquery plugin.

Magnet – Layouts jQuery Filter plugin


Magnet is a very nice jquery layout filter plugin which through you will be able to create filterable layouts. It comes with smooth filtering animation & effects. This plugin can filter & adapt your layouts fantastically in any kind of viewport.

bootFolio – Most Lightweight Portfolio Filtering jQuery Plugin


BootFolio is a bootstrap compatible portfolio filter plugin which is build with pure css3 animations. It’s very easy to use & lightweight. It comes with 14+ filtering animation, 76+ portfolio item layouts, 167+ portfolio item hover effects, 10+ options for setting up properly.

Cube Portfolio – Responsive jQuery Grid Filter Plugin


Cube can be your best choice for your portfolio gallery filtering. It comes with extensive features. You will be able to setup multiple style filtering functionality into your project. You can show how many contents available in each category alone with the category item & popover also. This plugin packed with carousel slider, testimonial slider, 15 ready to use templates, css3 animations, responsive design, grid & slider layouts, tabs, masonry, lightbox gallery & much more.

Live Swear – Comments Words Filter jQuery Plugin


Megafolio – Filterable Pro Responsive Grid jQuery Plugin


Megafolio is amazingly designed & developed js filtering plugin which can be used for multiple purposes like portfolios, blogs, galleries shops etc. It has drag & drop visual skin editor, 30+ pre-made skins, responsive grid & lots more.

Nova Gallery – Responsive HTML5 Multimedia Filter Gallery Plugin


Nova is a beautiful image gallery jquery plugin. You can create image gallery for any kind of portfolio works in thumbnail or fullwidth view. It’s fully responsive & easy to implement.

Dimension – 3D Animation Filter Portfolio Gallery Plugin


uSquare – Universal responsive grid Filtering html5/jquery Plugin


It’s a beautiful & uniquely created portfolio filter plugin which through you can showcase your awesome works in such a nice way. If you are creating a website template for business, creative, corporate, portfolio then showcasing portfolio is the must element you need to implement. So by using Dimension filter plugin you can do that perfectly.

Preview More Info WP Version 450 Hazel H https://www..png Hazel H 2015-02-13 19:07:19 2016-12-15 20:17:20 30+ Brilliant Portfolio jQuery Filter Plugins Free & Premium

Грамотно составленное и визуально оформленное , в нашем случае, это отдельная страница, является важным элементом личного сайта или блога, любого специалиста, достигшего определенного уровня мастерства в своей профессиональной деятельности.
Страница портфолио, это такой своеобразный отчет, или визуальное резюме, с помощью которого, вы сможете наглядно продемонстрировать читателям и посетителям сайта/блога, набор наиболее удачных реализованных работ, будь-то фотографии, статьи, публикации, элементы дизайна и т.п.
У меня такой странички нет и, это с моей стороны, досадное упущение, которое нужно, как можно скорее исправить, над чем собственно в данный момент и работаю.
На бескрайних просторах глобальной сети, можно найти огромное количество готовых шаблонов страниц для организации портфолио, и разнообразие таких страничек, по-настоящему впечатляет. Так что, кому в лом вникать во все тонкости веб-дизайна и разработки, всегда смогут найти подходящий для себя вариант. Ну, а для страждущих познаний в сайтостроительстве, предлагаю разобрать пример адаптивной верстки, простой страницы портфолио, с фильтрацией выполненных работ по категориям, выполненной на , разбавленной привлекательным эффектом перехода, с элементами анимации .

Макет странички, исполняемый javascript и некоторые элементы оформления, выдал «на гора», замечательный веб-дизайнер и разработчик Kevin Liew (queness.com). При выборе оптимального решения, для меня было важно, это простота исполнения, функциональность плагина jQuery, корректная работа во всех современных браузерах, и учитывая всевозрастающую популярность использования различных мобильных устройств, для интернет-серфинга, адаптивность дизайна будущей страницы. Никаких вычурных, дизайнерских наворотов и тяжеловесных плагинов.

Базовый макет состоит из двух основных элементов пользовательского интерфейса, которые нам предстоит построить, это навигации по вкладкам для фильтрации категорий представленных работ, и сама сетка миниатюр с эффектом всплывающей подписи при наведении.
Для начала, чтобы все в итоге заработало, будет необходим jQuery не ниже версии 1.7.0. Если он у вас еще не подключен, то добавьте следующую строку перед тегом :

Запустите плагин MixItUp в работу, этот код вставьте после вышеуказанных файлов:

< script type= "text/javascript" > $(function () { var filterList = { init: function () { $("#portfoliolist" ) . mixitup({ targetSelector: ".portfolio" , filterSelector: ".filter" , effects: [ "fade" ] , easing: "snap" , // call the hover effect onMixEnd: filterList. hoverEffect() } ) ; } , hoverEffect: function () { $("#portfoliolist .portfolio" ) . hover( function () { $(this) . find(".label" ) . stop() . animate({ bottom: 0 } , 200 , "easeOutQuad" ) ; $(this) . find("img" ) . stop() . animate({ top: - 30 } , 500 , "easeOutQuad" ) ; } , function () { $(this) . find(".label" ) . stop() . animate({ bottom: - 40 } , 200 , "easeInQuad" ) ; $(this) . find("img" ) . stop() . animate({ top: 0 } , 300 , "easeOutQuad" ) ; } ) ; } } ; filterList. init() ; } ) ;

$(function () { var filterList = { init: function () { $("#portfoliolist").mixitup({ targetSelector: ".portfolio", filterSelector: ".filter", effects: ["fade"], easing: "snap", // call the hover effect onMixEnd: filterList.hoverEffect() }); }, hoverEffect: function () { $("#portfoliolist .portfolio").hover(function () { $(this).find(".label").stop().animate({bottom: 0}, 200, "easeOutQuad"); $(this).find("img").stop().animate({top: -30}, 500, "easeOutQuad"); }, function () { $(this).find(".label").stop().animate({bottom: -40}, 200, "easeInQuad"); $(this).find("img").stop().animate({top: 0}, 300, "easeOutQuad"); }); } }; filterList.init(); });

Отдельно рассматривать все опции плагина, смысла нет, по умолчанию выставлен довольно оптимальный вариант. Ну, если уж кого вставит на эксперименты с параметрами, пожалуйста, все в ваших силах.

Для формирования макета страницы и внешнего вида элементов, подключаете к документу парочку файлов . , один для базовых стилей, обзовем его например: layout.css и еще один маленький CSS файл normalize.css , для обеспечения лучшей согласованности браузеров в стандартном оформлении элементов:

< link rel= "stylesheet" href= "css/normalize.css" > < link rel= "stylesheet" href= "css/layout.css" >

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

< ul id= "filters" class = "clearfix" > < li>< span class = "filter active" data- filter= "app card icon logo web" > Все < li>< span class = "filter" data- filter= "app" > Приложения < li>< span class = "filter" data- filter= "card" > Визитки < li>< span class = "filter" data- filter= "icon" > Иконки < li>< span class = "filter" data- filter= "logo" > Логотип < li>< span class = "filter" data- filter= "web" > Веб- Дизайн

  • Все
  • Приложения
  • Визитки
  • Иконки
  • Логотип
  • Веб-Дизайн

На панели навигации, размещаем весь список работ, разбитый на категории. Нам необходимо каждую категорию портфолио через атрибут data-cat связать с тем или иным пунктом панели навигации в соответствии со значением в атрибуте data-filter . Путем сопоставления значений data-filter с data-cat , и будет выполняться фильтрация элементов портфолио по категориям.
Кроме этого, добавим к миниатюре, спрятанную до поры до времени, небольшую панель с названием работы и заголовком категории, всплывающую только при наведении на картинку. А чтобы легче сформировать внешний вид всей этой конструкции в CSS, пропишем соответствующие классы элементам:

< div id= "portfoliolist" > < div class = "portfolio logo" data- cat= "logo" > < div class = "portfolio-wrapper" > < img src= "img/portfolios/logo/5.jpg" alt= "" /> < div class = "label" > < div class = "label-text" > < a class = "text-title" > Хостинг Beget. Ru < span class = "text-category" > Логотип < div class = "label-bg" > .........

Хостинг Beget.Ru Логотип .........

Обратите внимание, что вы можете добавить ссылки к картинке или непосредственно в подпись, для того чтобы пользователь смог в полном объеме лицезреть все ваши труды.

CSS

Теперь, тихим сапом, переходим к самому интересному, к формированию в CSS общих стилей пользовательского интерфейса нашей странички портфолио и адаптивной её версии. В статье укажу лишь базовые (по умолчанию) значения, то есть без каких-либо фоновых картинок и подключенных шрифтов, все это, кому оно надо, можно увидеть в демо, или найти в архиве с исходниками.

.container { position : relative ; width : 960px ; margin : 0 auto ; /* Вы сможете видеть цепь переходов при изменении размеров окна браузера */ -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; transition : all 1s ease; } #filters { margin : 1% ; padding : 0 ; list-style : none ; } #filters li { float : left ; } #filters li span { display : block ; padding : 5px 20px ; text-decoration : none ; color : #666 ; /* добавляем немного тени для текста */ text-shadow : 1px 1px #FFFFFF ; cursor : pointer ; } /* изменяем фон категории при наведении */ #filters li span: hover { background : #34B7CD ; text-shadow : 0 0 2px #004B7D ; color : #fff ; } /* фон активного пункта категории */ #filters li span.active { background : rgb (62 , 151 , 221 ) ; text-shadow : 0 0 2px #004B7D ; color : #fff ; } #portfoliolist .portfolio { -webkit-box-sizing: border-box ; -moz-box-sizing: border-box ; -o-box-sizing: border-box ; width : 23% ; margin : 1% ; display : none ; float : left ; overflow : hidden ; } .portfolio-wrapper { overflow : hidden ; position : relative !important; background : #666 ; cursor : pointer ; } .portfolio img { max-width : 100% ; position : relative ; } /* по умолчанию подписи скрыты */ .portfolio .label { position : absolute ; width : 100% ; height : 40px ; bottom : -40px ; } .portfolio .label-bg { background : rgb (62 , 151 , 221 ) ; width : 100% ; height : 100% ; position : absolute ; top : 0 ; left : 0 ; } .portfolio .label-text { color : #fff ; position : relative ; z-index : 500 ; padding : 5px 8px ; } .portfolio .text-category { display : block ; font-size : 9px ; }

Container { position: relative; width: 960px; margin: 0 auto; /* Вы сможете видеть цепь переходов при изменении размеров окна браузера */ -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease; } #filters { margin:1%; padding:0; list-style:none; } #filters li { float:left; } #filters li span { display: block; padding:5px 20px; text-decoration:none; color:#666; /* добавляем немного тени для текста */ text-shadow: 1px 1px #FFFFFF; cursor: pointer; } /* изменяем фон категории при наведении */ #filters li span:hover { background: #34B7CD; text-shadow: 0 0 2px #004B7D; color:#fff; } /* фон активного пункта категории */ #filters li span.active { background: rgb(62, 151, 221); text-shadow: 0 0 2px #004B7D; color:#fff; } #portfoliolist .portfolio { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -o-box-sizing: border-box; width:23%; margin:1%; display:none; float:left; overflow:hidden; } .portfolio-wrapper { overflow:hidden; position: relative !important; background: #666; cursor:pointer; } .portfolio img { max-width:100%; position: relative; } /* по умолчанию подписи скрыты */ .portfolio .label { position: absolute; width: 100%; height:40px; bottom:-40px; } .portfolio .label-bg { background: rgb(62, 151, 221); width: 100%; height:100%; position: absolute; top:0; left:0; } .portfolio .label-text { color:#fff; position: relative; z-index:500; padding:5px 8px; } .portfolio .text-category { display:block; font-size:9px; }

Во второй части, прямо в этой же таблице стилей, с помощью нескольких медиа запросов создадим альтернативные секции CSS. Чтобы макет нашей страницы корректно отображался на экранах различных мобильных устройств, добавим и альтернативные правила CSS для разных экранов в эти секции. Тем самым мы запросто переопределяем любые правила, установленные ранее в нашей CSS таблице для обычных браузеров и добьемся той самой, вожделенной адаптивности.

/* Планшет */ @media only screen and (min-width : 768px ) and (max-width : 959px ) { .container { width : 768px ; } } /* Мобильный - Примечание: Дизайн для ширины 320px*/ @media only screen and (max-width : 767px ) { .container { width : 95% ; } #portfoliolist .portfolio { width : 48% ; margin : 1% ; } } /* Мобильный - Примечание: Дизайн для ширины 480px */ @media only screen and (min-width : 480px ) and (max-width : 767px ) { .container { width : 70% ; } }

/* Планшет */ @media only screen and (min-width: 768px) and (max-width: 959px) { .container { width: 768px; } } /* Мобильный - Примечание: Дизайн для ширины 320px*/ @media only screen and (max-width: 767px) { .container { width: 95%; } #portfoliolist .portfolio { width:48%; margin:1%; } } /* Мобильный - Примечание: Дизайн для ширины 480px */ @media only screen and (min-width: 480px) and (max-width: 767px) { .container { width: 70%; } }

Вот и все. Наша замечательная страничка под емким названием «Портфолио» готова, остается лишь наполнить её своими не менее замечательными и выдающимися работами, и выставить на обозрение всему миру. Можно еще по тихому, скромно так, гордиться собой. Главное не переусердствовать в этом деле.
Смотрите еще раз пример и при необходимости забирайте исходники, на досуге, в тихой домашней обстановке, сможете довести до совершенства эту работу.

При создании урока использовался материал: . Оригинальная, девственно чистая, только что из под пера автора, страница портфолио, находится там же.

Удачи всем и с пользой для тела, провести остатки короткого лета!

Поддержите проект — поделитесь ссылкой, спасибо!
Читайте также
Тенденции на современном телевидении Тенденции на современном телевидении Армейская сумка-планшет Что должно быть в сержантской полевой сумке Армейская сумка-планшет Что должно быть в сержантской полевой сумке Подключение флешки к смартфону: Четыре способа (плюс бонус) Двухсторонняя флешка для телефона и компьютера Подключение флешки к смартфону: Четыре способа (плюс бонус) Двухсторонняя флешка для телефона и компьютера