Solved

Create a new template

Posted on 2016-11-12
9
21 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
  • 5
  • 4
9 Comments
 
LVL 51

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
 
LVL 51

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 41884619
Working sample for the above here
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 51

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 51

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now