Solved

Create a new template

Posted on 2016-11-12
9
43 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 55

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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 55

Accepted Solution

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

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 55

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

828 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