1

Topic: box formatting issues (how to hide text)

Hello,

I need to write text in a box which is not immediately readable. So something that would work is  white text in a white box, or black text in a black box (the box is usefull to show that there is text, so that readers know that they can read it if they highlight it). I can easily color text, but how to I color the box (quote tag)?

This is some text

This is more text

As you see, I can make it work, but I can't define the background color of the box, and so if someone changes the skin, the effect is lost...

Re: box formatting issues (how to hide text)

What sort of box element is it?

A div?

Are you using CSS to do it?

--Alan

3

Re: box formatting issues (how to hide text)

AlanCollier wrote:

What sort of box element is it?

A div?

Are you using CSS to do it?

--Alan

Ideally, I would like users to be able to do it just with bbCode, using "quote" boxes, or whatever is possible to achieve it...

Re: box formatting issues (how to hide text)

The easiest way would be just adding this to the div.incbox element in your base.css file:

DIV.incqbox {WIDTH: 100%; OVERFLOW: hidden; background: #fff; color: #fff; }

Otherwise, you'll have to add some code to parser.php and each theme's CSS file to get a new bbcode.

Re: box formatting issues (how to hide text)

looks like it's been covered on the wiki

http://wiki.punres.org/Spoiler_Tag