[UPHPU] Background image question
Scott Hill
llihttocs at gmail.com
Thu Jul 19 09:31:01 MDT 2007
On 7/19/07, Wade Preston Shearer <lists at wadeshearer.com> wrote:
>
> > I have an image that I am using as the background for submit buttons.
> > However, if I increase the size of the font it looks funny. Isn't
> > there a
> > way to make the background image stretch or fill the entire button?
>
> I would recommend doing it like this:
>
> <input class="subutton" src="/images/blank.gif" type="image"
> name="submit" value="Login" />
>
> input.subutton
> {
> background: url('/images/ButtonBg.gif') top center repeat;
> }
If I change the type to image, I don't get the submit button anymore. It
just displays blank.gif. What am I doing wrong?
--
Scott Hill
"May you solve interesting problems" - Author Unknown
"A fanatic is one who can't change his mind and won't change the subject." -
Sir Winston Churchill
More information about the UPHPU
mailing list