• 0

3D Ribbon in Pagelines DMS


Question

Posted · Report post

Hi, I would like to use a CSS 3D ribbon as section headers on my site. This would be no problem for me in in a wysiwyg html editor but I don't seem to be able to wrap my head around the layer of abstraction using the Drag and Drop DMS. Specifically where do I put the html. I would really appreciate any help.

<div class="ribbon-wrapper">
<div class="ribbon-front">
<!-- ribbon text goes here -->
</div>
<div class="ribbon-edge-topleft"></div>
<div class="ribbon-edge-topright"></div>
<div class="ribbon-edge-bottomleft"></div>
<div class="ribbon-edge-bottomright"></div>
<div class="ribbon-back-left"></div>
<div class="ribbon-back-right"></div>
</div>
 

Note: I am using CSS 3d ribbon generator: http://www.css3d.net/ribbon-generator/#preview

 

Thanks

 

 

 
 

Share this post


Link to post
Share on other sites

9 answers to this question

  • 0

Posted · Report post

i have test it. i fast one. however you need a bit knowledge  of CSS again.  If you have question please ask?

 

1.You see the HTML And CSS After click on the generate button

 

2.You put HTML in textbox Under DMS Sections  And put CSS in DMS Custom Code Tab

 

3. Is a little out of shape. you have use Firebug to do right adjustment.  (if you have your site live, i can help Rewrite CSS code make it fit nicely on your site)

 

This is image

Before look like this image

 

After Adjustment Using CSS  image

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thank you for your offer to help, I'd love it.  I anticipated that it would display as you've shown before the fix. I'm getting something even a little bit different. As you can see I've added the ribbon to "Keynotes and Public Speaking" on http://staging.garympomerantz.com/?page_id=9 

 

Thanks again for helping me out. :-)

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

End result the image

 

Be sure you find the line in your custom code tab. and Find exact code   .ribbon-back-left {   Change the Whole thing. until you see }

 

.ribbon-back-left {
      
position: absolute;
     
top: -10px;
     
left: -50px;
     
width: 30px;
    
height: 40px;
     background-color: #ccf;
     
z-index: 0;
}

.ribbon-edge-topleft,.ribbon-edge-bottomleft {
     
left: -30px;
    
border-color: transparent #99c transparent transparent;
}
 

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks again for you're help. I did get it to work, complete css below. And now that it is up I don't love it. lol We'll see if it stays or get tweaked some more.

 

/* ribbon style */
 
.ribbon-wrapper {
    position: relative;
    border-bottom: 0px solid #ccc;
    border-top: 10px solid #ccc;
    -moz-border-bottom-colors: rgba(0, 0, 0, 0.02) rgba(0, 0, 0, 0.04) rgba(0, 0, 0, 0.06) rgba(0, 0, 0, 0.08) rgba(0, 0, 0, 0.10) rgba(0, 0, 0, 0.12) rgba(0, 0, 0, 0.14) rgba(0, 0, 0, 0.16) rgba(0, 0, 0, 0.18) rgba(0, 0, 0, 0.20);
    -webkit-border-bottom-colors: rgba(0, 0, 0, 0.02) rgba(0, 0, 0, 0.04) rgba(0, 0, 0, 0.06) rgba(0, 0, 0, 0.08) rgba(0, 0, 0, 0.10) rgba(0, 0, 0, 0.12) rgba(0, 0, 0, 0.14) rgba(0, 0, 0, 0.16) rgba(0, 0, 0, 0.18) rgba(0, 0, 0, 0.20);
    -moz-border-top-colors: rgba(0, 0, 0, 0.02) rgba(0, 0, 0, 0.04) rgba(0, 0, 0, 0.06) rgba(0, 0, 0, 0.08) rgba(0, 0, 0, 0.10) rgba(0, 0, 0, 0.12) rgba(0, 0, 0, 0.14) rgba(0, 0, 0, 0.16) rgba(0, 0, 0, 0.18) rgba(0, 0, 0, 0.20);
    -webkit-border-top-colors: rgba(0, 0, 0, 0.02) rgba(0, 0, 0, 0.04) rgba(0, 0, 0, 0.06) rgba(0, 0, 0, 0.08) rgba(0, 0, 0, 0.10) rgba(0, 0, 0, 0.12) rgba(0, 0, 0, 0.14) rgba(0, 0, 0, 0.16) rgba(0, 0, 0, 0.18) rgba(0, 0, 0, 0.20);
    width: 300px;
    left: -20px;
}
 
 
.ribbon-front {
    background-color: #ccf; 
    height: 40px;
    width: 310px;
    position: relative;
    left:-10px;
    z-index: 2;
}
 
.ribbon-front h4 {
    margin: 0;
    padding: 5px 5px 0 5px;
    height: 0px;
}
 
.ribbon-front,
.ribbon-back-left,
.ribbon-back-right {
    -moz-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
    -khtml-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
    -webkit-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
    -o-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
}
 
.ribbon-edge-topleft,
.ribbon-edge-topright,
.ribbon-edge-bottomleft,
.ribbon-edge-bottomright {
    position: absolute;
    z-index: 1;
    border-style:solid;
    height:0px;
    width:0px;
}
 
.ribbon-edge-topleft,
.ribbon-edge-topright {
}
 
.ribbon-edge-bottomleft,
.ribbon-edge-bottomright {
    top: 40px;
}
 
.ribbon-edge-topleft,
.ribbon-edge-bottomleft {
    left: -10px;
    border-color: transparent #99c transparent transparent;
}
 
.ribbon-edge-topleft {
    top: -10px;
    border-width: 10px 10px 0 0;
}
.ribbon-edge-bottomleft {
    border-width: 0 10px 0px 0;
}
 
.ribbon-edge-topright,
.ribbon-edge-bottomright {
    left: 100px;
    border-color: transparent transparent transparent #99c;
}
 
.ribbon-edge-topright {
    top: 0px;
    border-width: 0px 0 0 0px;
}
.ribbon-edge-bottomright {
    border-width: 0 0 0px 0px;
}
 
.ribbon-back-left {
    position: absolute;
    top: -10px;
    left: -30px;
    width: 30px;
    height: 40px;
    background-color: #ccf; 
    z-index: 0;
}
 
.ribbon-back-right {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 0px;
    height: 40px;
    z-index: 0;
}
 
.masthead {
  position: relative;
  margin-bottom: 0px;
}
 
.masthead .inner {
    padding-top: 25px;
}
 
div.inner h1.masthead-title {
    margin: 0;
    padding: 0;
}
 
.masthead .masthead-title {
    margin-bottom: 9px;
    font-size: 36px;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 18px;
}
 
.masthead .masthead-tag {
    margin: 0;
    margin-bottom: 18px;
    margin-left: 5%;
    margin-right: 5%;
    font-size: 14px;
    line-height: 1.3em;
    opacity: .7;
    font-weight: 300;
}

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Your site comes up asking me to create a configuration file.  That's a WP installation failure.  Did you know this?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I have been having problems with layouts breaking and sections doubling when I move between pages. not sure if it is related but what do I need to do to fix this?

 

Thanks.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

That's usually because:

1. No .htaccess file exists

2. The wp-config.php isn't set up.

3. Your WP installation wasn't correct to begin with.

 

So,

1. Find the .htaccess file via FTP. If it doesn't exist. make one as a text file and upload it, set permissions to 777.   If you do find one, make sure its permissions are 777.

2. Create a configuration file using the information provided by WP when pushing that button.

3. If you installed WP using an auto-installer, go to your site via FTP, follow the instructions under "How to Delete the WordPress Files and Folders" here:  http://www.tipsandtricks-hq.com/how-to-uninstall-and-reinstall-wordpress-245

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hey Rob,

 

Thanks for your response.  I think you may have checked the link when we were testing out changing the permalink settings.  And it may have been that we were down for a bit when that happened.

 

Otherwise I think our install is sound.  We host on dreamhost and their one click installer has usually worked well in the past for us.

 

Thanks!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

One click installs aren't the greatest to be honest, I would always recommend manually installing Wordpress.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now