Jump to content
  • 0

Как сделать так, чтобы раскрывающееся меню(toggle) сдвигало контент сайта


prweb
 Share

Question

Добрый день!

 

У меня меню себя ведет странно. Не хочет сдвигать вниз остальной контент.  Хотелось бы, чтобы было как в примере:

http://cssr.ru/simpliste/_xtensions/snippets/responsive_navigation/toggle_menu.html

 

Html:

<!DOCTYPE html><html><head>    <meta charset="UTF-8">    <meta http-equiv="X-UA-Compatible" content="IE=edge">    <meta name="viewport" content="width=device-width, initial-scale=1">    <meta name="description" content="Création des sites web responsives, des thèmes WordPress. Intégration HTML, CSS, jQuery. Création et intégration des maquettes pour l’emailing.  Localisation des sites web et des newsletters "/>    <title>Création et localisation des sites web et des newsletters avec Orange web</title>    <link rel="stylesheet" href="styles.css">  <!-- Bootstrap core CSS -->    <link href="css/bootstrap.min.css" rel="stylesheet">    <!-- Custom styles for this template -->    <link href="css/main.css" rel="stylesheet">    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->    <link rel="stylesheet" type="text/css" href="css/magnific-popup.css" />    <script src="js/modernizr.custom.js"></script>    <script type="text/javascript">    document.createElement('header');    document.createElement('nav');    document.createElement('article');    document.createElement('footer');    </script></head><body>    <div class="wrapper">        <header class="headerstandard">            <!--<div class="before-nav">                <a href="tel:0612158780"><img src="img/phone.png">06 12 15 87 80</a>                <a href="mailto:elena.mazuel@gmail.com"><img src="img/mail.png">elena.mazuel@gmail.com</a>                <a href="skype:helenecher"><img src="img/skype.png">helenecher</a>            </div>-->           <div class="headerstandard-inner">            <button id="btn-nav"></button>            <nav class="menu menustandard" id="nav">                <ul>                <li>                    <a class="target-section1 current active" href="#section1">ACCUEIL</a></li>                      <li><a class="target-section2" href="#section2">SERVICES</a></li>                          <li><a class="target-section1 logo" href="#section1"><img src="img/logo.png"></a></li>                     <li><a class="target-section3" href="#section3">PORTFOLIO</a></li>                      <li><a class="target-section4" href="#section4">CONTACT</a></li>            </ul>            </nav>        </header>    <div class="main" id="main">    <section id="section1" class="home">    <div class="vide"></div>            <img class="big-orange" src="img/big_orange.png" />            <h1 class="slogan">Webdesign + <span class="orange">Intégration</span> + <span class="blue">Contenu  Multilingue</span></h1>            <h2 class="slogan2"> Pour des sites et des newsletters.</h2>        </section>            <!---Services-->         <section id="section2" class="service">            <h2 class="services">DÉCOUVREZ NOS SERVICES</h2>            <div class="row orange-b">            <div class="shirina">                <div class="col-perso">                    <h3 class="title-services">Webdesign</h3>                    <img src="img/icone1.png">                    <p>Le webdesign consiste à la création des maquettes de sites internet.  Le but ultime du webdesign est de trouver une solution pour le besoin d’un utilisateur. Orange Web réalise des sites en responsive design  afin d’avoir un rendu optimal sur les mobiles et les tablettes.</p>                </div>                <div class="col-perso">                    <h3 class="title-services-sp">Intégration  & Développement</h3>                    <img src="img/icone2.png">                    <p> Intégration HTML, CSS, jQuery. Création des thèmes WordPress. Orange web transforme les maquettes de sites en ligne de code et images afin de s’afficher dans un navigateur web. Respect des recommandations du W3C, des normes d’accessibilité et optimisation pour le référencement.                    </p>                </div>                <div class="col-perso">                    <h3 class="title-services">Illustration</h3>                    <img src="img/icone3.png">                    <p> Un bel événement nécessite une belle affiche pour attirer l’attention du public.  Votre site web peut être également décoré par une illustration vectorielle. Vous souhaitez avoir votre portait à partir d’une photo ?  Orange web réalise des illustrations vectorielles pour les supports souhaités.                    </p>                </div>                <div class="col-perso">                    <h3 class="title-services">Emailing</h3>                    <img src="img/icone4.png">                    <p>Création et intégration de maquettes pour l’emailing. Chaque élément doit être pensé pour être développé en HTML et intégré en tableaux imbriqués. Gestion de routage via des plateformes d'envoi d'emailing.</p>                </div>                <div class="col-perso">                    <h3 class="title-services">Contenu Multilingue</h3>                    <img src="img/icone5.png">                    <p> Avec l’aide de traducteurs et de rédacteurs, Orange web conçoit des textes originaux pour votre site et vos emails et localise le contenu (traduction et intégration) en plusieurs langues.</p>                </div>                <div class="col-perso">                    <h3 class="title-services">Webmarketing</h3>                    <img src="img/icone6.png">                    <p>Afin d’améliorer la visibilité et augmenter le trafic de votre site, Orange web vous propose l’élaboration d’un plan webmarketing,  SEO – le référencement naturel, SEA – le référencement payant, communication sur les réseaux sociaux.                    </p>                </div>                </div>            </div>        </section>    <!--Portfolio-->     <section id="section3" class="portpholio">       <h2 class="services">DÉCOUVREZ NOTRE PORTFOLIO</h2><div  class="fond-bleu" >    <div class="portfolio">            <div class="tri">                <ul>                        <li id="all" class="active">Tout</li>                                            <li id="print">Print</li>                                            <li id="web">Web</li>                                            <li id="responsive">Responsive</li>                </ul>            </div>            <a class="item print">                    <h3 class="item-title">Gelato Ipsum amet</h3>                    <hr class="hr-title-top">                    <p class="item-description">                        Minions ipsum poulet tikka masala belloo! Bee do bee do bee do pepete. Underweaaar me want bananaaa! Baboiii pepete bee do bee do bee do aaaaaah po kass la bodaaa. Hahaha para tú baboiii wiiiii.                    </p>                    <hr class="hr-title-bot">                    <button class="view-more">View more</button>                    <div class="black-overlay"></div>                    <div class="background" style="background:url('img/04.jpeg')"></div>            </a>            <a class="item responsive">                    <h3 class="item-title">Gelato Ipsum amet</h3>                    <hr class="hr-title-top">                    <p class="item-description">                        Minions ipsum po kass bappleees tatata bala tu. Hana dul sae wiiiii hahaha tank yuuu! Butt baboiii bananaaaa uuuhhh potatoooo underweaaar. La bodaaa la bodaaa para tú wiiiii. Bappleees jiji tatata bala tu para tú gelatooo.                    </p>                    <hr class="hr-title-bot">                    <button class="view-more">View more</button>                    <div class="black-overlay"></div>                    <div class="background" style="background:url('img/09.jpeg')"></div>            </a>            <a class="item responsive">                    <h3 class="item-title">Papple papuche?</h3>                    <hr class="hr-title-top">                    <p class="item-description">                        Minions ipsum po kass bappleees tatata bala tu. Hana dul sae wiiiii hahaha tank yuuu! Butt baboiii bananaaaa uuuhhh potatoooo underweaaar. La bodaaa la bodaaa para tú wiiiii. Bappleees jiji tatata bala tu para tú gelatooo.                    </p>                    <hr class="hr-title-bot">                    <button class="view-more">View more</button>                    <div class="black-overlay"></div>                    <div class="background" style="background:url('img/07.jpeg')"></div>            </a>            <a class="item responsive">                    <h3 class="item-title">Gelato Ipsum amet</h3>                    <hr class="hr-title-top">                    <p class="item-description">                        Minions ipsum po kass bappleees tatata bala tu. Hana dul sae wiiiii hahaha tank yuuu! Butt baboiii bananaaaa uuuhhh potatoooo underweaaar. La bodaaa la bodaaa para tú wiiiii. Bappleees jiji tatata bala tu para tú gelatooo.                    </p>                    <hr class="hr-title-bot">                    <button class="view-more">View more</button>                    <div class="black-overlay"></div>                    <div class="background" style="background:url('img/04.jpeg')"></div>            </a>            <a class="item print">                    <h3 class="item-title">Papple papuche?</h3>                    <hr class="hr-title-top">                    <p class="item-description">                        Minions ipsum po kass bappleees tatata bala tu. Hana dul sae wiiiii hahaha tank yuuu! Butt baboiii bananaaaa uuuhhh potatoooo underweaaar. La bodaaa la bodaaa para tú wiiiii. Bappleees jiji tatata bala tu para tú gelatooo.                    </p>                    <hr class="hr-title-bot">                    <button class="view-more">View more</button>                    <div class="black-overlay"></div>                    <div class="background" style="background:url('img/01.jpeg')"></div>            </a>            <a class="item web">                    <h3 class="item-title">Papuche papple ?</h3>                    <hr class="hr-title-top">                    <p class="item-description">                        Minions ipsum jeje jeje chasy hahaha po kass tank yuuu! Aaaaaah tank yuuu! Pepete bappleees ti aamoo! Aaaaaah tatata bala tu poopayee. Butt potatoooo aaaaaah butt potatoooo ti aamoo! Aaaaaah hahaha belloo! Underweaaar. Bappleees bappleees belloo!                    </p>                    <hr class="hr-title-bot">                    <button class="view-more">View more</button>                    <div class="black-overlay"></div>                    <div class="background" style="background:url('img/01.jpeg')"></div>            </a>  </div>  </div></section><section id="section4" class="contact mt-contact"><h2 class="services">Contact</h2><div class="bkg-orange">            <ul >            <h3>Elena MAZUEL</h3>             <a href="tel:0612158780"><img src="img/phone.png">06 12 15 87 80</a>                <a href="mailto:elena.mazuel@gmail.com"><img src="img/mail.png">elena.mazuel@gmail.com</a>                <a href="skype:helenecher"><img src="img/skype.png">helenecher</a>                <li>121, rue de l'Ouest,</li>                <li>75014 Paris</li>                <li>France</li>                <li>+33(0)6 12 15 87 80</li>                <li><a href="mailto: elena.mazuel@gmail.com">elena.mazuel@gmail.com</a></li>            </ul></div></section>    </div>    <footer>    @copyright    </footer>    </div>  <!-- Jquery -->    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->    <script src="js/ie-emulation-modes-warning.js"></script>    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->    <!--[if lt IE 9]>      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>    <![endif]-->    <script scr="js/bootstrap.js" type="text/javascript"></script>       <script scr="jquery-1.11.3/script.js" type="text/javascript"></script>    <script src="js/jquery.js"></script>    <script src="js/main.js"></script>    <script src="js/jquery.min.js"></script>    <!-- Classie - class helper functions by @desandro https://github.com/desandro/classie -->    <script src="js/classie.js"></script>    <!-- waypoints jQuery plugin by http://imakewebthings.com/ : http://imakewebthings.com/jquery-waypoints/ -->    <script src="js/waypoints.min.js"></script>    <!-- jquery-smartresize by @louis_remi : https://github.com/louisremi/jquery-smartresize -->    <script src="js/jquery.debouncedresize.js"></script>    <!-- Isotope : Filtering http://isotope.metafizzy.co/demos/filtering.html -->    <script src="js/jquery.isotope.min.js"></script>    <!-- MagnificPopup -->    <script src="js/jquery.magnific-popup.min.js"></script>    <!-- Gestion générale -->    <script src="js/custom.js"></script></body></html>

CSS

/**Normalize*//*! normalize.css v3.0.2 | MIT License | git.io/normalize *//** * 1. Set default font family to sans-serif. * 2. Prevent iOS text size adjust after orientation change, without disabling *    user zoom. */html {    font-family: sans-serif;    /* 1 */    -ms-text-size-adjust: 100%;    /* 2 */    -webkit-text-size-adjust: 100%;    /* 2 */}/** * Remove default margin. */body {    margin: 0;}/* HTML5 display definitions   ========================================================================== *//** * Correct `block` display not defined for any HTML5 element in IE 8/9. * Correct `block` display not defined for `details` or `summary` in IE 10/11 * and Firefox. * Correct `block` display not defined for `main` in IE 11. */article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary {    display: block;}/** * 1. Correct `inline-block` display not defined in IE 8/9. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. */audio,canvas,progress,video {    display: inline-block;    /* 1 */    vertical-align: baseline;    /* 2 */}/** * Prevent modern browsers from displaying `audio` without controls. * Remove excess height in iOS 5 devices. */audio:not([controls]) {    display: none;    height: 0;}/** * Address `[hidden]` styling not present in IE 8/9/10. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. */[hidden],template {    display: none;}/* Links   ========================================================================== *//** * Remove the gray background color from active links in IE 10. */a {    background-color: transparent;}/** * Improve readability when focused and also mouse hovered in all browsers. */a:active,a:hover {    outline: 0;}/* Text-level semantics   ========================================================================== *//** * Address styling not present in IE 8/9/10/11, Safari, and Chrome. */abbr[title] {    border-bottom: 1px dotted;}/** * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. */b,strong {    font-weight: bold;}/** * Address styling not present in Safari and Chrome. */dfn {    font-style: italic;}/** * Address variable `h1` font-size and margin within `section` and `article` * contexts in Firefox 4+, Safari, and Chrome. */h1 {    font-size: 2em;    margin: 0.67em 0;}/** * Address styling not present in IE 8/9. */mark {    background: #ff0;    color: #000;}/** * Address inconsistent and variable font size in all browsers. */small {    font-size: 80%;}/** * Prevent `sub` and `sup` affecting `line-height` in all browsers. */sub,sup {    font-size: 75%;    line-height: 0;    position: relative;    vertical-align: baseline;}sup {    top: -0.5em;}sub {    bottom: -0.25em;}/* Embedded content   ========================================================================== *//** * Remove border when inside `a` element in IE 8/9/10. */img {    border: 0;}/** * Correct overflow not hidden in IE 9/10/11. */svg:not(:root) {    overflow: hidden;}/* Grouping content   ========================================================================== *//** * Address margin not present in IE 8/9 and Safari. *//**figure {  margin: 1em 40px;}/** * Address differences between Firefox and other browsers. */hr {    -moz-box-sizing: content-box;    box-sizing: content-box;    height: 0;}/** * Contain overflow in all browsers. */pre {    overflow: auto;}/** * Address odd `em`-unit font size rendering in all browsers. */code,kbd,pre,samp {    font-family: monospace, monospace;    font-size: 1em;}/* Forms   ========================================================================== *//** * Known limitation: by default, Chrome and Safari on OS X allow very limited * styling of `select`, unless a `border` property is set. *//** * 1. Correct color not being inherited. *    Known issue: affects color of disabled elements. * 2. Correct font properties not being inherited. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. */button,input,optgroup,select,textarea {    color: inherit;    /* 1 */    font: inherit;    /* 2 */    margin: 0;    /* 3 */}/** * Address `overflow` set to `hidden` in IE 8/9/10/11. */button {    overflow: visible;}/** * Address inconsistent `text-transform` inheritance for `button` and `select`. * All other form control elements do not inherit `text-transform` values. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. * Correct `select` style inheritance in Firefox. */button,select {    text-transform: none;}/** * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` *    and `video` controls. * 2. Correct inability to style clickable `input` types in iOS. * 3. Improve usability and consistency of cursor style between image-type *    `input` and others. */button,html input[type="button"],/* 1 */input[type="reset"],input[type="submit"] {    -webkit-appearance: button;    /* 2 */    cursor: pointer;    /* 3 */}/** * Re-set default cursor for disabled elements. */button[disabled],html input[disabled] {    cursor: default;}/** * Remove inner padding and border in Firefox 4+. */button::-moz-focus-inner,input::-moz-focus-inner {    border: 0;    padding: 0;}/** * Address Firefox 4+ setting `line-height` on `input` using `!important` in * the UA stylesheet. */input {    line-height: normal;}/** * It's recommended that you don't attempt to style these elements. * Firefox's implementation doesn't respect box-sizing, padding, or width. * * 1. Address box sizing set to `content-box` in IE 8/9/10. * 2. Remove excess padding in IE 8/9/10. */input[type="checkbox"],input[type="radio"] {    box-sizing: border-box;    /* 1 */    padding: 0;    /* 2 */}/** * Fix the cursor style for Chrome's increment/decrement buttons. For certain * `font-size` values of the `input`, it causes the cursor style of the * decrement button to change from `default` to `text`. */input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button {    height: auto;}/** * 1. Address `appearance` set to `searchfield` in Safari and Chrome. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome *    (include `-moz` to future-proof). */input[type="search"] {    -webkit-appearance: textfield;    /* 1 */    -moz-box-sizing: content-box;    -webkit-box-sizing: content-box;    /* 2 */    box-sizing: content-box;}/** * Remove inner padding and search cancel button in Safari and Chrome on OS X. * Safari (but not Chrome) clips the cancel button when the search input has * padding (and `textfield` appearance). */input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration {    -webkit-appearance: none;}/** * Define consistent border, margin, and padding. */fieldset {    border: 1px solid #c0c0c0;    margin: 0 2px;    padding: 0.35em 0.625em 0.75em;}/** * 1. Correct `color` not being inherited in IE 8/9/10/11. * 2. Remove padding so people aren't caught out if they zero out fieldsets. */legend {    border: 0;    /* 1 */    padding: 0;    /* 2 */}/** * Remove default vertical scrollbar in IE 8/9/10/11. */textarea {    overflow: auto;}/** * Don't inherit the `font-weight` (applied by a rule above). * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. */optgroup {    font-weight: bold;}/* Tables   ========================================================================== *//** * Remove most spacing between table cells. */table {    border-collapse: collapse;    border-spacing: 0;}td,th {    padding: 0;}/**End of Normalize*//**Navigation*/header {    position: fixed;    top: 0px;    width: 100%;    left: 0;    z-index: 10000;    -webkit-transition: height 0.3s;    -moz-transition: height 0.3s;    transition: height 0.3s;}nav ul {    margin-bottom: 0;}.before-nav {    margin: 0 auto;    padding-top: 10px;    text-align: right;}.before-nav a {    text-decoration: none;    color: #ef7a1b;    font-size: 20px;    margin: 20px 10px;}.wrapper {    width: 100%;    margin: 0 auto;    height: auto !important;}nav a {    text-decoration: none;    color: #fff;    font-size: 18px;    display: block;    padding: 25px 75px;}nav a:hover,nav a:focus,nav a.current {    text-decoration: none;    color: #ef7a1b;}nav a {}nav a.current,nav a:hover {}nav li {    list-style: none;    float: left;}.menu {    margin: 0 auto;    width: 1280px;    background: #000;    height: 70px;}.logo {    margin-top: -10px;}.headerstandard-inner {    background: #000;    width: 100%;}#btn-nav {    display: none;    position: absolute;    right: 20px;    top: 27px;    padding: 10px 0;    background: transparent;    color: #000;    outline: none;    border: none;    background-image: url("img/bars.svg");    background-position: right center;    background-repeat: no-repeat;    content: '';    vertical-align: top;    width: 2em;}#btn-nav:: after #btn-nav.active {    color: #C73538;}/**Main*/.col-perso {    min-height: 1px;    float: left;    min-height: 1px;    padding-right: 15px;    padding-left: 15px;    width: 33.3333%;}.col-perso p {    margin-left: 40px;}.vide {    height: 140px;}.big-orange {    margin-left: 100px;}.slogan {    text-align: center;    font-size: 2.5em;    font-weight: bold;    font-family: serif;}.orange {    color: #ef7a1b;}.orange-b {    background: #ef7a1b;    padding-left: 70px;    padding-right: 50px;}.title-services {    color: #fff;    margin-left: 90px;    font-weight: bold;}.title-services-sp {    color: #fff;    font-weight: bold;}.orange-b p {    margin-top: 20px;    width: 290px;    font-size: 16px;    color: #fff;}.blue {    color: #8acaed;}.slogan2 {    margin-left: 600px;    font-size: 2em;    font-weight: bold;    font-family: serif;}.services {    font-size: 36px;    font-weight: bold;    text-align: center;    color: #fff;    background: #000;    height: 80px;    padding-bottom: 0;    padding-top: 20px;    margin-top: 10px;}.row {    margin-left: 0!important;    margin-right: 0!important;}.shirina {    width: 1280px;    margin: 0 auto;}/*Portfolio*/.portfolio {    width: 960px;    margin: 4% auto 0 auto;    font-family: "Lato", "Helvetica", sans-serif;}.portfolio .tri {    margin-bottom: 40px;}.portfolio .tri ul {    display: table;    margin: 0 auto;    border-radius: 20px;    border: 2px solid #fff;    box-sizing: border-box;    padding: 0 2em;}.portfolio .tri ul li {    float: left;    color: #fff;    padding: 0 1em;    cursor: pointer;    font-size: 18px;    padding: 1em;    transition: all .2s ease-in-out;    -moz-transition: all .2s ease-in-out;    -ms-transition: all .2s ease-in-out;    -o-transition: all .2s ease-in-out;    -webkit-transition: all .2s ease-in-out;    display: inline-block;    font-weight: 300;    letter-spacing: 3px;    text-transform: uppercase;    border-top: 4px solid transparent;    margin-top: -1px;}.portfolio .tri ul li:hover {    color: #000;}.portfolio .tri ul li.active {    color: #000;    border-top: 3px solid rgba(0, 0, 0, 1);}.portfolio .sortedDown {    transform: scale(0.5);    -webkit-transform: scale(0.5);    -moz-transform: scale(0.5);    -ms-transform: scale(0.5);    -o-transform: scale(0.5);    filter: grayscale(0.8);    -webkit-filter: grayscale(0.8);}.portfolio .item {    width: 48%;    display: block;    color: #fff;    box-sizing: border-box;    -moz-box-sizing: border-box;    padding: 1em;    position: relative;    height: 300px;    overflow: hidden;    cursor: pointer;    margin-bottom: 4%;    border: 3px solid #fff;    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);    transition: all .2s ease-in-out;    -moz-transition: all .2s ease-in-out;    -webkit-transition: all .2s ease-in-out;    -o-transition: all .2s ease-in-out;    -ms-transition: all .2s ease-in-out;}.portfolio .item:hover .black-overlay {    opacity: 1;}.portfolio .item:hover .hr-title-top,.portfolio .item:hover .hr-title-bot {    width: 20%;}.portfolio .item:hover .item-title {    top: 0;    opacity: 1;}.portfolio .item:hover .item-description {    left: 0;    opacity: 1;}.portfolio .item:hover .view-more {    opacity: 1;    bottom: 20px;}.portfolio .item:hover .background {    filter: scale(1.5);    -webkit-filter: scale(1.5);}.portfolio .item .black-overlay {    position: absolute;    top: 0;    left: 0;    right: 0;    bottom: 0;    width: 100%;    height: 300px;    z-index: -1;    background: rgba(239, 122, 27, 0.65);    opacity: 0;}.portfolio .item .hr-title-top {    width: 0%;    height: 1px;    background: #fff;    border: none;    margin: 0;    margin-top: 50px;    margin-bottom: 20px;    transition: all .4s ease-in-out;    -moz-transition: all .4s ease-in-out;    -ms-transition: all .4s ease-in-out;    -o-transition: all .4s ease-in-out;    -webkit-transition: all .4s ease-in-out;}.portfolio .item .hr-title-bot {    width: 0%;    height: 1px;    background: #fff;    border: none;    margin: 0;    margin-top: 20px;    display: block;    transition: all .4s ease-in-out;    -moz-transition: all .4s ease-in-out;    -ms-transition: all .4s ease-in-out;    -o-transition: all .4s ease-in-out;    -webkit-transition: all .4s ease-in-out;}.portfolio .item .background {    background-size: cover !important;    background-position: center center;    position: absolute;    left: 0;    top: 0;    width: 100%;    z-index: -2;    height: 300px;    filter: scale(1);    -webkit-filter: scale(1);    transition: all .2s ease-in-out;    -moz-transition: all .2s ease-in-out;    -ms-transition: all .2s ease-in-out;    -o-transition: all .2s ease-in-out;    -webkit-transition: all .2s ease-in-out;}.portfolio .item .item-title {    font-family: "Lato", "Helvetica", sans-serif;    font-size: 20px;    text-transform: uppercase;    font-weight: 900;    top: 100px;    position: relative;    line-height: 1.3em;    transition: all .2s ease-in-out;    -moz-transition: all .2s ease-in-out;    -ms-transition: all .2s ease-in-out;    -o-transition: all .2s ease-in-out;    -webkit-transition: all .2s ease-in-out;    opacity: 0;}.portfolio .item .item-description {    line-height: 1.5em;    position: relative;    left: 100px;    font-family: "Lato", "Helvetica", sans-serif;    font-size: 13px;    font-weight: 300;    text-shadow: 0 0 5px rgba(0, 0, 0, 0.4);    transition: all .2s ease-in-out;    -moz-transition: all .2s ease-in-out;    -ms-transition: all .2s ease-in-out;    -o-transition: all .2s ease-in-out;    -webkit-transition: all .2s ease-in-out;    opacity: 0;}.portfolio .item .view-more {    background: transparent;    font-family: "Lato", "Helvetica", sans-serif;    font-weight: 300;    text-transform: uppercase;    border-radius: 20px;    letter-spacing: 3px;    border: 1px solid #fff;    color: #fff;    box-sizing: border-box;    -moz-box-sizing: border-box;    padding: 1em 0;    cursor: pointer;    width: 150px;    position: absolute;    left: 50%;    bottom: 0px;    ;    text-align: center;    transition: all .2s ease-in-out;    -moz-transition: all .2s ease-in-out;    -ms-transition: all .2s ease-in-out;    -webkit-transition: all .2s ease-in-out;    -o-transition: all .2s ease-in-out;    opacity: 0;}.portfolio .item .view-more:hover {    background: #fff;    color: #000;}.portfolio .item:nth-child(2n) {    float: right;}.portfolio .item:nth-child(2n+1) {    float: left;}.clear {    clear: both;}.fond-bleu {    background: #8acaed;    z-index: 1;    position: absolute;    width: 100%;    height: 1200px;}.empty{    width: auto;    height: auto;}footer {    height: 80px;    margin-top: 1220px;    background: #000;    text-align: center;    color: #fff;}.bkg-orange {    background: #ef7a1b;    width: 100%;    margin-top: -10px;}.mt-contact {    margin-top: 1220px;}footer {    margin-top: 10px;}/*Media queries*/@media (max-width: 1300px) {    .shirina {        width: 960px;    }}@media (max-width: 1200px) {    nav a {        padding: 25px 60px;    }    menu {        width: 100%;    }    .big-orange {        margin-left: 0px;    }    .slogan2 {        margin-left: 30%;    }}@media (max-width: 1100px) {    .col-perso {        width: 50%    }    .portfolio {        width: 800px;    }}@media (max-width: 1000px) {    nav a {        padding: 25px 40px;    }}@media (max-width: 948px) {    .big-orange {        width: 80%;    }    .shirina {        width: 100%;    }}@media (max-width: 900px) {    .logo {        display: none;    }    #btn-nav {        display: block;    }    .menu {        width: auto;    }    #nav li {        float: none;    }    #nav a {        text-align: center;    }    .menu {        height: auto;    }    .headerstandard-inner {        background: #000;        width: 100%;        height: 70px;    }    .portfolio {        width: 600px;    }      .portfolio .item {        width: 100%;    }    .fond-bleu{height: 2200px;    }    .mt-contact{       margin-top:  2220px;    }}@media (max-width: 770px) {    .col-perso {        width: 80%;        margin: 0 auto;        float: none;    }}@media (max-width: 700px) {    .slogan {        font-size: 1.5em;    }    .slogan2 {        font-size: 1.2em;    }    .services {        font-size: 26px;    }    .portfolio {        width: 600px;    }    .orange-b {    padding-left: 10px;    padding-right: 10px;}}@media (max-width: 600px) {    .col-perso {        width: 100%;    }    .col-perso h3 {        font-size: 20px;    }      .portfolio {        width: 400px;    }.portfolio .tri ul li {    font-size: 14px;}s}@media (max-width: 400px) {    .col-perso p {        margin-left: 0;    }    .col-perso {        padding: 0 0;        width: 70%;    }    .col-perso h3 {        margin-left: 0;    }      .portfolio {        width: 300px;    }}@media (max-width: 320px) {    .slogan {        font-size: 1.3em;    }    .services {        font-size: 8px;    }        .col-perso {        width: 60%;    }}

Если нужно jquery, то я напишу его ниже. здесь как-то можно файлы прикреплять?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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

  • Similar Content

    • By Almaz_Kazan
      Добрый день у class="fb7" не действует правило display block при уменьшении экрана на 721px
      Вот сайт http://mrdtools.com/exec/spin_template_ready/iphone_version/#
      ftp доступ:
      хост:  s5.thehost.com.ua
      логин: sabrina
      пароль: Iar862JZ
      Папка iphone_version
      Помогите пожалуйста 
    • By evgenia18
      Добрый день! 
      На данный момент прохожу обучение по веб-программированию, но уже сейчас хотело бы поработать с реальными проектами. 
      Знаю HTML, CSS, принципы адаптивной верстки, основы JavaScript и тд.
      Пример моей работы находится по адресу https://evgenia1991.github.io/
    • By Tempest
      Не могу понять,как убрать пробел под футером. Вроде блоки не выпирают 
       Вот исходный код http://www.cssdesk.com/J8Xk9

       
    • By 3pdt
      Адаптивная верстка за символическую плату (а может и бесплатно) с использованием Bootstrap. Пишите в л/с, договоримся.
      Пример:
      https://3pdt.github.io/eventide/
         
    • By nightgremlin
      Здравствуйте, уважаемые форумчане!
      Сто лет ничего не писал и ни за что не брался, и вот решился. Хочу восстановить и поднять свой уровень.
      У Вас есть шаблон psd, который надо сверстать? - Я к вашим услугам. Сделаю абсолютно бесплатно (ну может добавлю в портфолио).
      Вот, перечень предлагаемых услуг:
      верстка обычного psd-макета. С Вас макет - с меня верстка с использованием HTML5/CSS3; адаптивная верстка под различные разрешения экрана используя Media Queries; возможна натяжка на популярный движок WordPress. _____________________________________________________________________________________________________
      Так как совсем недавно начал изучение JavaScript, то могу попробовать написать что-то простенькое используя связку HTML5+CSS3+JavaScript (DOM). До библиотеки JQuery еще не добрался, но вставить готовый скрипт думаю сумею запросто.
      Задания присылайте на почту: pobedinskiy85@gmail.com
      P/s: никогда не занимался профессионально вёрсткой и написанием скриптов на JS, но то что вы мне предложите постараюсь выполнить качественно в приемлемые сроки.
       
×
×
  • 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