Jump to content


customizing forms


2 replies to this topic

#1 xiLLeNtz

    Young Padawan

  • Members
  • Pip
  • 40 posts

Posted 22 August 2005 - 07:43 PM

how would i customize a form using css by like changing background, putting text in it already, border and more?

#2 Andy

    Graphical Idol Judge

  • Members
  • PipPipPip
  • 594 posts
  • Gender:Male
  • Location:Yorkshire, UK

Posted 22 August 2005 - 07:55 PM

The css is easy with a class="textfield" in the <input> tag
.textfield {
	background-color: #000000; 
	border-width: 1px;
	border-style: solid;
	border-color: #ff0000;
	color: #ffffff; 
}


The text in it: value="default here"

#3 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 22 August 2005 - 10:16 PM

don't forget, short-had is always a must :huh:
.textfield {
background-color: #000000;
border: 1px solid #FF0000;
color: #FFFFFF;
}
you could also try adding an image for the background using something like
background-image: url('path/to/image.gif');
But i'm not sure that would work, last time i tried failed, but it was back in the day that i didn't know wtf i was doing.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users