Code & Spoiler Design
3 posters
Page 1 of 1
Code & Spoiler Design
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:
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:
Last edited by Sozinho on April 7th 2014, 3:21 pm; edited 1 time in total
Re: Code & Spoiler Design
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
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.
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.
Re: Code & Spoiler Design
That works, but it lacks this:
I want to include what's indicated in the image above.
I want to include what's indicated in the image above.
Re: Code & Spoiler Design
If you write :
The author of the quote will display, this is default.
ex :
- Code:
[quote="Author"]text[/quote]
The author of the quote will display, this is default.
ex :
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: Code & Spoiler Design
What I see in this image is that the Author is not inside the box. That's what I want.
Re: Code & Spoiler Design
If you want those two to appear attached, you'll need to use this CSS :
Note that you must change the border, and background colors to the colors of your quote, code, ect.
- 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.
Re: Code & Spoiler Design
is this one for me or the topic owner because it didnt make the change im looking forAnge 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.
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: Code & Spoiler Design
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.
Similar topics
» Spoiler code
» Altering the Code+Spoiler Box
» Quote , Code , Spoiler
» [HELP]Change the Spoiler & Code Layout [????]
» Spoiler Code for a HTML page
» Altering the Code+Spoiler Box
» Quote , Code , Spoiler
» [HELP]Change the Spoiler & Code Layout [????]
» Spoiler Code for a HTML page
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum