• Resolved probably_stumped

    (@probably_stumped)


    Hi

    I’ve got a mailing list form which I’d like to put into the sidebar. I’d like to ’embed’ the form within an image so it’s looks like this.

    https://www.chrisilett.com/picture7.png

    I could insert a crude table of sorts, and get it to look similar, but it’d work better if I could do this with CSS. It’s almost definitely something obvious which I’m missing.

    Any ideas?

    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can’t ’embed’ a form in an image. It won’t work as a form, then. The best you can do is to turn the graphical elements into a background that you can then apply to the form using CSS using something like:

    form.myform {background:url(images/form.jpg) no-repeat left top;}

    Thread Starter probably_stumped

    (@probably_stumped)

    Thank you for your reply!

    Sorry, that’s actually what I meant. I should know how to do this but it’s driving me up the wall.

    So if I make a file called form.php and then call it in the index, and use the css to apply the image as a background – in theory that should work?

    In theory, yes but make sure you give the form its own unique class so that you can style it easily. I’d also suggest placing the form in your current theme folder and then using <?php include(TEMPLATEPATH . '/form.php');?> to call the form as required.

    Thread Starter probably_stumped

    (@probably_stumped)

    That makes sense – thanks a lot for the advice. I’ll close this when it works!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Embed mailing list form into picture’ is closed to new replies.