Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1130373
    mahmoud237
    Participant

    Hi

    How can I make custom background shape just like the attached photo ?

    #1130380
    mahmoud237
    Participant
    This reply has been marked as private.
    #1130509
    Christopher
    Moderator

    Hey there,

    Thanks for writing in! Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding. Take care!

    #1130532
    mahmoud237
    Participant

    I understand that … I have a designer works with me … what I should request from him exactly to make this effect ?

    #1130588
    Nabeel A
    Moderator

    Hi again,

    You can show the above screenshot you attached to your designer.

    Cheers!

    #1130884
    mahmoud237
    Participant

    Ok I managed to do it using this code:

    
    .triangle {
      position: relative;  
    }
    
    .triangle::before,
    .traingle::after {
      position: absolute;
    	content: '';
    	pointer-events: none;
      box-sizing: border-box;
      top:0;
      border-style: solid;
      border-width: 50px 300px 0 300px;
      border-color: #41CAFC transparent transparent transparent;	
    }
    
    

    The only thing I can’t do is that I want it to be horizontally centered … I can use:

    
    left: 22%
    
    

    But that code isn’t effective because it will change it’s position if the screen width change … I want to be centered on all devices

    Thanks

    #1130890
    mahmoud237
    Participant

    check the image

    #1130899
    Thai
    Moderator

    Hi There,

    Please add this CSS:

    
        left: 50%;
        margin-left: -300px;
    

    http://i.imgur.com/UkbDeuv.png

    Hope it helps 🙂

    #1130918
    mahmoud237
    Participant

    Thanks, it works 🙂

    #1130921
    Rupok
    Member

    You are welcome!

    Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.

    Thanks for using X.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1130373 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>