Results 1 to 4 of 4

Thread: Need help changing arrow direction in CSS3 push down panel

  1. #1
    Join Date
    Feb 2015
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need help changing arrow direction in CSS3 push down panel

    I have the css - but I am not sure how to apply it.
    http://www.dynamicdrive.com/style/cs...ush_down_panel
    Thanks in advance!

  2. #2
    Join Date
    Feb 2015
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default clarifiaction to my request

    I'd like the arrow to point up after the user clicks to show the content

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Sure, try adding the following rule to the end of the CSS:

    Code:
    div.css3droppanel input[type="checkbox"]:checked ~ label:after{
    		border-color: transparent transparent white transparent;
    		top: 5px;
    }
    DD Admin

  4. #4
    Join Date
    Feb 2015
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks! This got me in the right direction. Below are the 2 sections to make it work in my css file:

    Code:
    div.css3droppanel input[type="checkbox"]:not(:checked)~ label:before { /* generated down arrow */
    		content: '';
    		position: absolute;
    		display: block;
    		width: 0;
    		height: 0;
    		border: 12px solid transparent;
    		border-color: white transparent transparent transparent;
    		top: 13px;
    		left: 9px;
    		box-shadow: 0 0 7px gray inset;
    		
    		margin-right: 10%; /* added to move arrow to the left */
    		
    
    		}
    div.css3droppanel input[type="checkbox"]:checked ~ label:after{ /* generated up arrow */
    		content: '';
    		position: absolute;
    		display: block;
    		width: 0;
    		height: 0;
    		border: 12px solid transparent;
    		border-color: transparent transparent white transparent;
    		top: -1px;
    		left: 9px;
    		box-shadow: 0 0 7px gray inset;
    		
    		margin-right: 10%; /* added to move arrow to the left */
    		
    }
    Last edited by ddadmin; 02-07-2015 at 09:16 PM.

Similar Threads

  1. Changing the color of the CSS3 push down panel
    By phphead in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 06-12-2014, 08:22 AM
  2. Resolved Pure CSS3 Push Down Panel | Help a newbie change color
    By a404freedom in forum CSS
    Replies: 3
    Last Post: 04-03-2014, 12:20 AM
  3. Slide-up footer panel push content up?
    By davelf in forum Looking for such a script or service
    Replies: 3
    Last Post: 01-21-2011, 08:42 AM
  4. [Lightbox] changing the position of the arrow
    By gonix in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 08-13-2009, 03:32 AM
  5. DD Drop Down Panel Arrow Images
    By dyzine in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 01-16-2009, 03:49 AM

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
  •