Results 1 to 7 of 7

Thread: page corner curl/peel problem

  1. #1
    Join Date
    Jul 2013
    Posts
    34
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default page corner curl/peel problem

    Hello,

    I created a page corner curl/peel in this page http://terrybraunstein.com/tb/ but I'm having some problem with it.

    When I edit the page on my computer the corner curl with Welcome! text and the image of the building when expanded are covering the image of the book and that's how I want to have it. But when I upload it to the website then both the corner curl and the building end up behind the book image.

    The code I'm using is below.

    Am I doing something wrong? How to fix it?

    Thanks for any help.

    Marek
    Code:
    <style type="text/css">
    #curl{
    
        width:220px;
        height:220px;
        position:fixed;
        top:0;
        right:0;
    }
    #curl:hover{
        width:850px;
        height:850px;
         -webkit-transition: ease 1s;
         -moz-transition: ease 1s;
    }
    #code{
        background:#fffff;
        overflow:hidden;
        width:185px;
        height:185px;
        position:fixed;
        top:0;
        right:0;
    }
    #code:hover{
        width:450px;
        height:450px;
        -webkit-transition: ease 1s;
        -moz-transition: ease 1s;
    } 
    </style>
    
    </head>
    
    <body>
    
    <div id="code">
    
    <a href="http://terrybraunstein.com/events-news/">
    
    <img id="curl" src="fold.png"></a>
    
    <img id="fold" src="curl.jpg"></a>
    
    
    </div>
    Last edited by Beverleyh; 11-19-2015 at 12:37 PM. Reason: formatting

  2. #2
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    The book image is in front of the curl because it's rendered later in the page. You could try moving the <div> to the end of the page but it's probably better to add:

    Code:
    z-index:10;
    to the CSS for #code.

  3. The Following User Says Thank You to styxlawyer For This Useful Post:

    mr108 (11-19-2015)

  4. #3
    Join Date
    Jul 2013
    Posts
    34
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your fix. I added it to both #code and #curl and it works perfectly

  5. #4
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    It's not needed in the image with id 'curl' as that is surrounded by the <div> with id 'code' and will inherit the z-index from the latter.

    I'm curious as to why you chose the following naming convention, to me it seems a bit confusing. Also you have an </a> tag with no matching opening <a> tag which may lead to problems further down the page.

    Code:
    <img id="curl" src="fold.png"></a>
    
    <img id="fold" src="curl.jpg"></a>

  6. The Following User Says Thank You to styxlawyer For This Useful Post:

    mr108 (11-19-2015)

  7. #5
    Join Date
    Jul 2013
    Posts
    34
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by styxlawyer View Post
    It's not needed in the image with id 'curl' as that is surrounded by the <div> with id 'code' and will inherit the z-index from the latter.
    I changed it as you suggested - it works perfect.

    I'm curious as to why you chose the following naming convention, to me it seems a bit confusing.
    Well... I'm really a total beginner and at this stage I'm just copying pieces of code that I like and play with it and learn in this way. So I found this curl effect here: http://motyar.blogspot.in/2010/03/page-curl-fold-or-peel-effect-with-pure.html


    Also you have an </a> tag with no matching opening <a> tag which may lead to problems further down the page.

    [code]
    <img id="curl" src="fold.png"></a>

    <img id="fold" src="curl.jpg"></a>
    Probably I made some mistake in copying the code - I corrected it now.

    Thanks again for your input, that's how I learn
    Last edited by Beverleyh; 11-19-2015 at 05:35 PM. Reason: Formatting

  8. #6
    Join Date
    Jul 2013
    Posts
    34
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by styxlawyer View Post

    I'm curious as to why you chose the following naming convention, to me it seems a bit confusing.

    Code:
    <img id="curl" src="fold.png">
    
    <img id="fold" src="curl.jpg">

    How should the naming be changed, then?

  9. #7
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    Quote Originally Posted by mr108 View Post
    How should the naming be changed, then?
    Quote Originally Posted by styxlawyer View Post
    .
    .
    I'm curious as to why you chose the following naming convention, to me it seems a bit confusing. Also you have an </a> tag with no matching opening <a> tag which may lead to problems further down the page.

    Code:
    <img id="curl" src="fold.png"></a>
    
    <img id="fold" src="curl.jpg"></a>
    To me, the obvious naming convention is:

    Code:
    <img id="fold" src="fold.png"></a>
    
    <img id="curl" src="curl.jpg"></a>
    but YMMV.

Similar Threads

  1. using CURL to send sms
    By mutago in forum PHP
    Replies: 1
    Last Post: 03-01-2014, 06:01 PM
  2. Issue with CURL
    By hemi519 in forum PHP
    Replies: 3
    Last Post: 09-05-2012, 07:57 PM
  3. CURL and Javascript? Is it Possible?
    By sysout in forum PHP
    Replies: 0
    Last Post: 09-23-2009, 11:03 AM
  4. Show Corner Of A Page
    By tomyknoker in forum Flash
    Replies: 7
    Last Post: 09-25-2006, 06:47 PM
  5. Page scroller: Left corner instead of right?
    By bruden2tusen in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 07-17-2006, 06:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •