Solved

Create a new template

Posted on 2016-11-12
9
50 Views
Last Modified: 2016-11-13
I want to do a div just like this:
website: https://www.tomsplanner.com/template-example/construction/
I just want this part:
And how when you hoover over it it turns
Could anyone help me out in this?
0
Comment
Question by:Jasmine Ikhreishi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 57

Expert Comment

by:Julian Hansen
ID: 41884605
Why not use bootstrap
<stye type="text/css">
.blocks {
  background: #ff8416;
  color: white;
}
.blocks .div:nth-child(odd) {
   background: #fe5a0d;
} 
</style>

Open in new window

<div class="row blocks">
  <div class="col-md-4">Row 1 Col 1</div>
  <div class="col-md-4">Row 1 Col 2</div>
  <div class="col-md-4">Row 1 Col 3</div>
  <div class="col-md-4">Row 2 Col 1</div>
  <div class="col-md-4">Row 2 Col 2</div>
  <div class="col-md-4">Row 2 Col 3</div>
  <div class="col-md-4">Row 3 Col 1</div>
  <div class="col-md-4">Row 3 Col 2</div>
  <div class="col-md-4">Row 3 Col 3</div>
</div>

Open in new window

0
 
LVL 1

Author Comment

by:Jasmine Ikhreishi
ID: 41884608
Would it work for them to flip back when i hover over it with bootstrap?
0
 
LVL 1

Author Comment

by:Jasmine Ikhreishi
ID: 41884609
Ok so for each click I put an image correct, do I need a javascript code for it to flip and show the text?
0
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 
LVL 57

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 41884619
Working sample for the above here
0
 
LVL 57

Expert Comment

by:Julian Hansen
ID: 41884620
Would it work for them to flip back when i hover over it with bootstrap?
Bootstrap provides the styling - you need to provide the code to flip it to show text.
0
 
LVL 1

Author Comment

by:Jasmine Ikhreishi
ID: 41884624
ok so I came up with this code on how to flip my images:
.panel {
    width: 300px;
    height: 300px;
    margin: auto;
    position: relative;
}

.card {
    width: 100%;
    height: 100%;
    -o-transition: all .5s;
    -ms-transition: all .5s;
    -moz-transition: all .5s;
    -webkit-transition: all .5s;
    transition: all .5s;
    -webkit-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    top: 0px;
    left: 0px;
}

.front {
    z-index: 2;
    background-image: url(http://img.afreecodec.com/images/v3/wp-content/uploads/2011/05/00_chrome_icon.jpg);
}

.back {
    z-index: 1;
    -webkit-transform: rotateX(-180deg);
    -ms-transform: rotateX(-180deg);
    -moz-transform: rotateX(-180deg);  
    transform: rotateX(-180deg);  
    background-image: url(http://www.digitaltrends.com/wp-content/uploads/2011/03/ie-9-icon.jpg);
}

.panel:hover .front {
    z-index: 1;
    -webkit-transform: rotateX(180deg);
    -ms-transform: rotateX(180deg);
    -moz-transform: rotateX(180deg);
    transform: rotateX(180deg);
}

.panel:hover .back {
    z-index: 2;   
    -webkit-transform: rotateX(0deg);
    -ms-transform: rotateX(0deg);
    -moz-transform: rotateX(0deg);
    transform: rotateX(0deg);
}

Open in new window

And this is my html code:
<div class="panel">
    <div class="front card">
    </div>
    <div class="back card">  
    </div>
</div>

Open in new window

But when I put it on my sign (which has contents in it), it clashes with my content, how can I put these images at the bottom?
0
 
LVL 1

Author Comment

by:Jasmine Ikhreishi
ID: 41884636
I opened a new question on my javascript, can you help?
0
 
LVL 1

Author Comment

by:Jasmine Ikhreishi
ID: 41884736
Hey it shows as one column and one on each row, how can i make it 2 columns with 2 on each row?
0
 
LVL 57

Expert Comment

by:Julian Hansen
ID: 41885820
Change the background images to content images - take them out of the style and update your markup
<div class="panel">
    <div class="front card">
		<p>Your custom content goes here</p>
		<img src="http://img.afreecodec.com/images/v3/wp-content/uploads/2011/05/00_chrome_icon.jpg" />
    </div>
    <div class="back card">  
		<p>Your custom content goes here</p>
		<img src="http://www.digitaltrends.com/wp-content/uploads/2011/03/ie-9-icon.jpg">
    </div>
</div>

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question