View Full Version : Text box w/background...


Mozeta
09-14-2005, 03:55 AM
Is it possible to make a textbox with a background but have the background image bigger than the textbox?

salomeyasobko
09-14-2005, 03:59 AM
what do you mean by "the background image bigger than the textbox"??

do you mean you want an image and then a smaller text box in front of it?

because the code would be something like

<img src="your-image.jpg" alt="title of the background">

<div style="height: ##px; width: ##px;">

writing goes here

</div>


edit the bold ## things with a height and a width that is [obviously] smaller than the background image. is that what you're asking for? :o

pretender
09-14-2005, 04:08 AM
Is it possible to make a textbox with a background
Answer yes:
<textarea cols="50" rows="5" style="background-image:url('url-to-image.gif');
color: #cecece; font-weight: bold; font-size: 12pt; font-family:verdena;
scrollbar-face-color:#000000; scrollbar-arrow-color:#0000ff;
scrollbar-track-color:#000000; scrollbar-shadow-color:'#0000ff'; scrollbar-highlight-color:'#0000ff';
scrollbar-3dlight-color:'#0000ff'; scrollbar-darkshadow-Color:'#0000ff';">Put as much text and HTML Codes as you want here</textarea>

have the background image bigger than the textbox
it will be only the size of the textarea cols and rows that is specified above

Mozeta
09-15-2005, 03:35 AM
I'm talking about those things on neopets ... shop blogs or whatever they're called.