The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    Code & Spoiler Design

    Sozinho
    Sozinho
    Forumember


    Male Posts : 172
    Reputation : 4
    Language : English
    Location : Philippines

    Solved Code & Spoiler Design

    Post by Sozinho April 7th 2014, 06:24

    How can I design the code & spoiler?
    My forum is phpbb2 and I use the caller for code (.code) while spoiler (.spoiler)

    I want to achieve a design with something like this:
    Code & Spoiler Design Screen10
    Code & Spoiler Design Screen10


    Last edited by Sozinho on April 7th 2014, 16:21; edited 1 time in total
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Code & Spoiler Design

    Post by Ange Tuteur April 7th 2014, 09:55

    Hello Sozinho,

    You can add a shadow to elements using the box-shadow property.

    Add the following to your CSS :
    Administration panel > display > colors > CSS stylesheet
    Code:
    .code, .spoiler dd, .quote { box-shadow:0 0 3px #AC0; }

    The first value, 0, changes the horizontal position of the shadow.

    The second value, 0, changes the vertical position of the shadow.

    The third value, 3px, changes the softness of the shadow.

    The fourth value, #AC0, changes the color of the shadow.

    Change all the values as you wish. Wink
    Sozinho
    Sozinho
    Forumember


    Male Posts : 172
    Reputation : 4
    Language : English
    Location : Philippines

    Solved Re: Code & Spoiler Design

    Post by Sozinho April 7th 2014, 12:15

    That works, but it lacks this:
    Code & Spoiler Design Screen11

    I want to include what's indicated in the image above.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Code & Spoiler Design

    Post by Ange Tuteur April 7th 2014, 12:19

    If you write :
    Code:
    [quote="Author"]text[/quote]

    The author of the quote will display, this is default.

    ex :Code & Spoiler Design Captu455
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: Code & Spoiler Design

    Post by Michael_vx April 7th 2014, 12:38

    hi sorry to be here but is this possible to have design for the code box like this
    Code & Spoiler Design Image
    Sozinho
    Sozinho
    Forumember


    Male Posts : 172
    Reputation : 4
    Language : English
    Location : Philippines

    Solved Re: Code & Spoiler Design

    Post by Sozinho April 7th 2014, 13:16

    What I see in this image is that the Author is not inside the box. That's what I want.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Code & Spoiler Design

    Post by Ange Tuteur April 7th 2014, 13:26

    If you want those two to appear attached, you'll need to use this CSS :
    Code:
    .codebox dt {
     Â   background:#FAFAFA;
     Â   border:1px solid #D1D7DC;
     Â   border-bottom:none;
    }
    .codebox dd { border-top:none !important; }

    Note that you must change the border, and background colors to the colors of your quote, code, ect.
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: Code & Spoiler Design

    Post by Michael_vx April 7th 2014, 14:54

    Ange Tuteur wrote:If you want those two to appear attached, you'll need to use this CSS :
    Code:
    .codebox dt {
     Â   background:#FAFAFA;
     Â   border:1px solid #D1D7DC;
     Â   border-bottom:none;
    }
    .codebox dd { border-top:none !important; }

    Note that you must change the border, and background colors to the colors of your quote, code, ect.
    is this one for me or the topic owner because it didnt make the change im looking for
     Shocked
    Sozinho
    Sozinho
    Forumember


    Male Posts : 172
    Reputation : 4
    Language : English
    Location : Philippines

    Solved Re: Code & Spoiler Design

    Post by Sozinho April 7th 2014, 15:55

    Ange Tuteur wrote:If you want those two to appear attached, you'll need to use this CSS :
    Code:
    .codebox dt {
     Â   background:#FAFAFA;
     Â   border:1px solid #D1D7DC;
     Â   border-bottom:none;
    }
    .codebox dd { border-top:none !important; }

    Note that you must change the border, and background colors to the colors of your quote, code, ect.


    Is this also possible for the rest of spoiler and quote? As I can see it only edits the codebox.
    Sozinho
    Sozinho
    Forumember


    Male Posts : 172
    Reputation : 4
    Language : English
    Location : Philippines

    Solved Re: Code & Spoiler Design

    Post by Sozinho April 7th 2014, 16:15

    I just solved the design for quote and , never mind the spoiler. Thanks Smile
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Code & Spoiler Design

    Post by Ange Tuteur April 8th 2014, 01:23

    You're welcome

    Topic solved and archived

      Current date/time is November 11th 2024, 19:56