Spoiler out of place
3 posters
Page 1 of 1
Spoiler out of place
Now i've been trying for a while,Â
But how do i move the; "Spoiler"
to the section where the border box is:
As you can see the "spoiler" is out of its border. How do i move it up?
Edit: version: phpbb3, www.vie-la-mort.forum-motion.com
But how do i move the; "Spoiler"
to the section where the border box is:
As you can see the "spoiler" is out of its border. How do i move it up?
- CSS Code:
- /* Code block------------------------------------------------*/
dl.codebox {
padding: 3px;
background-color: #FFFFFF;
border: 1px solid #C9D2D8;
font-size: 1em;
}
dl.codebox dt {
text-transform: uppercase;
border-bottom: 1px solid #CCCCCC;
margin-bottom: 3px;
font-size: 0.8em;
font-weight: bold;
display: block;
}
blockquote dl.codebox {
margin-left: 0;
}
dl.codebox code {
overflow: auto;
display: block;
height: auto;
max-height: 200px;
white-space: normal;
padding-top: 5px;
font: 0.9em Courier,Courier New,sans-serif;
line-height: 1.3em;
color: #2E8B57;
margin: 2px 0;
}
Edit: version: phpbb3, www.vie-la-mort.forum-motion.com
Re: Spoiler out of place
I checked your forum and the spoiler appeared fine for me. Can you give an example, or location of where this happened on your forum?
I did however, try to recreate what you were experiencing:
Forced Error:
The fact that I haven't experienced it during viewing makes me think something else may be causing this.
I did however, try to recreate what you were experiencing:
Forced Error:
- Code:
dl.codebox dt {
position:relative;
top:30px;
}
The fact that I haven't experienced it during viewing makes me think something else may be causing this.
Re: Spoiler out of place
Hmm i see well the code works (:
Thx!
Another thing which involves the spoiler, can i change the height of the Spoiler when its small?
Thx!
Another thing which involves the spoiler, can i change the height of the Spoiler when its small?
Re: Spoiler out of place
This should work:
- Code:
dl.codebox dt{
margin-bottom:-10px;
}
Re: Spoiler out of place
Howabout the width for the header text?
Ex:
The "Flowers are red"
If i want that section to have a larger width, so it stands on one line and two what do i do then?
Ex:
- Flowers are red:
The "Flowers are red"
If i want that section to have a larger width, so it stands on one line and two what do i do then?
Re: Spoiler out of place
You could do this:
Its best to choose low values so the above doesn't occur. You could also make the font size smaller so the words take up less space as well.
- Code:
dl.codebox dt/*Increases header width*/{
width:550px;
}
dl.codebox/*Increases overall spoiler/code width*/{
width:600px;
}
Its best to choose low values so the above doesn't occur. You could also make the font size smaller so the words take up less space as well.
Re: Spoiler out of place
Its fine (:
But yea i see the issues.. is it possible to automatic place the text under the line, but still be a bit in side the spoiler like here:
Here have i just moved the text a line down, but can i do it automatically in the css?
But yea i see the issues.. is it possible to automatic place the text under the line, but still be a bit in side the spoiler like here:
Here have i just moved the text a line down, but can i do it automatically in the css?
Re: Spoiler out of place
So something like this?
- Code:
dl.codebox dt/*Header text*/{
right:150px;
}
dl.codebox/*Content*/{
position:relative;
left:140px;
}
Re: Spoiler out of place
yes! exactly like that!
Although the text should be a little closer to the header (:
Edit: When i tried the code, the text goes out of the line:
Although the text should be a little closer to the header (:
Edit: When i tried the code, the text goes out of the line:
Re: Spoiler out of place
So you want the text vertically close to the head correct? Then you should modify the bottom margin of it by..probably 15px to make it:(This will make the content below it closer, you can also do the opposite by using a positive value)
- Code:
dl.codebox dt{
margin-bottom:-30px;
}
- Code:
dl.codebox/*Content*/{
position:relative;
left:100px;
}
Re: Spoiler out of place
Makes the background dissapear.
edit got it to work, but the text goes into the header.
edit got it to work, but the text goes into the header.
Re: Spoiler out of place
I see, modify margin-bottom until the text is a considerable distance from the header. 30 may have been too much so give 10 or 15 a try.
Re: Spoiler out of place
Topic Solved & Locked
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» How can I get my spoiler to look like this?
» Re place login in box.
» Img in spoiler
» Trucker Place
» THE ADMINS PLACE
» Re place login in box.
» Img in spoiler
» Trucker Place
» THE ADMINS PLACE
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum