View Full Version : Transparent text boxes?


fez_kuro
07-26-2006, 03:42 PM
Righto, I believe this goes in CSS... X3 Please redirect me if I'm wrong!

I'm looking to make a text box that, rather than inserting a background image or colour, I want it to be transparent and show the general background image of the webpage?
Basically, I'ma trying to make a transparent text box (preferably with no borders, but I can work that bit out myself XD); any help on this?

Feel free to kick me if this is in the wrong forum XD

Arwen
07-26-2006, 03:49 PM
If you want a transparent box without borders why don't you just wrap the text?

p.wrap {
width: 200px;}

then use:

<p class="wrap">
Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here.
</p>

fez_kuro
07-26-2006, 04:09 PM
Ah- I hadn't thought about that! Thanks! I'll run off and give that a shot now =)

fez_kuro
07-26-2006, 04:14 PM
Ahh, forgive me for posting twice in a row- just tried it now and there's still a problem ^^;

It's stretching the box the more text I type - I mentioned text boxes because I want text in a specified box of a certain size with a scrollbar, so that I can keep the text contained in that area specifically; does that make sense ^^;

Arwen
07-26-2006, 05:00 PM
Ah, you can also add height: 200px; , sorry forgot about that. :)

fez_kuro
07-26-2006, 06:46 PM
Gah- I did try that before, but it doesn't seem to be working ><

I can't see what's wrong with this:
<style type="text/css">
p.wrap {
width: 200px;
height: 200px; }
</style>
<p class="wrap">
text
</p>

^^;

I get the horrible sinking feeling that I'm doing something blatantly obvious and horribly stupid... XD