Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

textarea background image problem 2

Status
Not open for further replies.

Dweezel

Technical User
Feb 12, 2004
428
0
0
GB
I've designed a page that relies on the background image set to a textarea form element remaining fixed if the text being typed in requires to be scrolled.
If you're not sure what I mean by that have a look at the design:

Each form element has a background image which is cut to maintain the continuity of the pattern of the paper. If the background of the textarea box scrolls then it ruins the effect.

Firefox and Netscape both allow the text in the textarea element to scroll while the background remains fixed. The problem is with IE. The background image in the textarea box scrolls with the text.

Does anyone know of a work around for this?

The only relevant CSS is the background-image property:
Code:
#message{
background-image:url(images/message-backer.jpg);

}

Note: Nothing works on the site yet, not even the form. This is the first page I've done for it. All the CSS is still currently inline and I haven't even designed a footer yet. Wan't to get this problem sorted before moving on.

Any help much appreciated. Cheers.
 
OMG! I can't believe I didn't think of that. <feeble excuse> I was doing this at 1am though </feeble excuse> [blush].

Cheers Petey.
 
I've just tried using a transparent gif as a background image for the form elements. Unfortunatly it doesn't work in IE NN or Firefox.

Does anyone have any other ideas?
 
I don't think petey meant transparent gif but rather a css property for transparent background:
Code:
#message { 
  border: 1px solid rgb(213, 171, 115);
  margin: 3px 0pt 0pt 7px;
  background-color: transparent;
}
It works for me in Mozilla.
 
Works like a charm. I didn't realise that setting the color to transparent was possible in CSS.

Many thanks to you both.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top