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.

Code & Spoiler Design

3 posters

Go down

Solved Code & Spoiler Design

Post by Sozinho Sun 6 Apr 2014 - 22: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 Mon 7 Apr 2014 - 8:21; edited 1 time in total
Sozinho
Sozinho
Forumember

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

http://appzxor.omgforum.net

Back to top Go down

Solved Re: Code & Spoiler Design

Post by Ange Tuteur Mon 7 Apr 2014 - 1: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
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Code & Spoiler Design

Post by Sozinho Mon 7 Apr 2014 - 4:15

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

I want to include what's indicated in the image above.
Sozinho
Sozinho
Forumember

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

http://appzxor.omgforum.net

Back to top Go down

Solved Re: Code & Spoiler Design

Post by Ange Tuteur Mon 7 Apr 2014 - 4:19

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

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

ex :Code & Spoiler Design Captu455
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Code & Spoiler Design

Post by Michael_vx Mon 7 Apr 2014 - 4:38

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

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

Back to top Go down

Solved Re: Code & Spoiler Design

Post by Sozinho Mon 7 Apr 2014 - 5:16

What I see in this image is that the Author is not inside the box. That's what I want.
Sozinho
Sozinho
Forumember

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

http://appzxor.omgforum.net

Back to top Go down

Solved Re: Code & Spoiler Design

Post by Ange Tuteur Mon 7 Apr 2014 - 5: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.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Code & Spoiler Design

Post by Michael_vx Mon 7 Apr 2014 - 6: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
Michael_vx
Michael_vx
Forumember

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

Back to top Go down

Solved Re: Code & Spoiler Design

Post by Sozinho Mon 7 Apr 2014 - 7: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

http://appzxor.omgforum.net

Back to top Go down

Solved Re: Code & Spoiler Design

Post by Sozinho Mon 7 Apr 2014 - 8:15

I just solved the design for quote and , never mind the spoiler. Thanks Smile
Sozinho
Sozinho
Forumember

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

http://appzxor.omgforum.net

Back to top Go down

Solved Re: Code & Spoiler Design

Post by Ange Tuteur Mon 7 Apr 2014 - 17:23

You're welcome

Topic solved and archived
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum