Form styling - identical code, two different results! (3 posts)

  1. butterdog
    Posted 6 years ago #

    I have an odd problem I've never run into before while converting my HTML template into WordPress. (HTML template works perfectly in ie, ff, etc...)

    On the wordpress #commentform style, I have some input padding and so on, creating nice large clean input fields. I have that same code for my custom php contact form. It works perfectly as a HTML template.

    Now... if I take the code and place the PHP form on a single.php page template, it works, if I put it on a custom page, the textboxes collapse to their original height.

    I just have a single style.css controlling it all.

    I ran a code compare between the two pages and they're nearly identical, is there some hidden difference between page templates I'm not aware of?


  2. Dave Redfern
    Posted 6 years ago #

    can't really help unless you post a link.

    there is probably some conflicting styles. if you're using plugins sometimes they add their own css.

  3. butterdog
    Posted 6 years ago #

    Thanks for the reply Dave - turns out it was an asp-style php tag not rendering on my local WAMP server... very odd as to why it caused those problems but updating <? to <?php fixed it.

Topic Closed

This topic has been closed to new replies.

About this Topic