Insert multiple/different div content
Hi there,
However I want to use content with multiple images and text.
I I found this code that works perfectly
INDEX
-
- <div id="pholio">
- <!-- START PHOLIO -->
- <nav class="primary clearfix">
- <ul class="conteudo_corrente">
- <li><a href="#" class="selected" data-filter="*">All</a></li>
- <li><a href="#" data-filter=".web">PRODUCT</a></li>
- <li><a href="#" data-filter=".ill">PRINT</a></li>
- <li><a href="#" data-filter=".logo">WEB</a></li>
- <li><a href="#" data-filter=".video">VIDEO</a></li>
-
- </ul>
- </nav>
-
-
- <section class="main">
-
- <div class="portfolio">
-
- <article class="entry video">
- <div id="Descriptiondiv">
- <IMG class="displayed" src="design/logo.gif" alt="Logo">
- <div style="float:left; padding-top:10px;" class="conteudo_corrente"> CONTENT
-
- </div>
- <br /><img class="displayed" src="images/portfolio/work_01.jpg" width="70%"/>
- <br /><img class="displayed" src="images/portfolio/work_02.jpg" width="70%"/>
- <br /><img class="displayed" src="images/portfolio/work_03.jpg" width="70%"/>
-
- <a href="#Descriptiondiv" data-rel="prettyPhoto" title="">
- <img src="images/portfolio/work1.jpg" alt="">
- <span class="video-hover">video</span>
- </a>
-
- </article>
- </div>
CSS
-
- #Descriptiondiv {
- width:50% !important;
- /*height:50%;*/
- height:1800px;
- display:none;
-
- }
the problem is when i enter a new content with different images like thise.
-
- <div id="pholio">
- <!-- START PHOLIO -->
- <nav class="primary clearfix">
- <ul class="conteudo_corrente">
- <li><a href="#" class="selected" data-filter="*">All</a></li>
- <li><a href="#" data-filter=".web">PRODUCT</a></li>
- <li><a href="#" data-filter=".ill">PRINT</a></li>
- <li><a href="#" data-filter=".logo">WEB</a></li>
- <li><a href="#" data-filter=".video">VIDEO</a></li>
-
- </ul>
- </nav>
-
-
- <section class="main">
-
- <div class="portfolio">
-
- <article class="entry video">
- <div id="Descriptiondiv">
- <IMG class="displayed" src="design/logo.gif" alt="Logo">
- <div style="float:left; padding-top:10px;" class="conteudo_corrente"> CONTENT
-
- </div>
- <br /><img class="displayed" src="images/portfolio/work_01.jpg" width="70%"/>
- <br /><img class="displayed" src="images/portfolio/work_02.jpg" width="70%"/>
- <br /><img class="displayed" src="images/portfolio/work_03.jpg" width="70%"/>
-
- <a href="#Descriptiondiv" data-rel="prettyPhoto" title="">
- <img src="images/portfolio/work1.jpg" alt="">
- <span class="video-hover">video</span>
- </a>
-
- </article>
-
-
- <article class="entry web">
- <div id="Descriptiondiv">
- <IMG class="displayed" src="design/logo.gif" alt="Logo">
- <div style="float:left; padding-top:10px;" class="conteudo_corrente"> CONTENT 22
-
- </div>
- <br /><img class="displayed" src="images/portfolio/work_04.jpg" width="70%"/>
- <br /><img class="displayed" src="images/portfolio/work_05.jpg" width="70%"/>
- <br /><img class="displayed" src="images/portfolio/work_06.jpg" width="70%"/>
-
- <a href="#Descriptiondiv" data-rel="prettyPhoto" title="">
- <img src="images/portfolio/work1.jpg" alt="">
- <span class="video-hover">video</span>
- </a>
-
- </article>
- </div>
It repeated the same content on the first (entry video) to the second (entry web).
I think the problem is because I'm using the same id =
"#Descriptiondiv"
Eu consigo resolver o problema ao colocar vários id. E
xample:
CSS
-
- #Descriptiondiv {
- width:50% !important;
- /*height:50%;*/
- height:1800px;
- display:none;
-
- }
-
- #Descriptiondiv2 {
- width:50% !important;
- /*height:50%;*/
- height:1800px;
- display:none;
-
- }
But that's not the best solution.
Can anyone suggest another way?
Thank you and Merry Christmas :)