Dynadot โ€” .com Registration $8.99

CSS and website buttons bug?

Spaceship Spaceship
Watch

broke-r

Established Member
Impact
1
Hi all,

I have just added CSS in my new under-construction site and the problem is that all the buttons on the site (incl. buttons that are part of a form e.g. "submit" etc.) do not longer work if I press "enter" in my keyboard... :(

They work just fine if I click on them. Why is that? If I press "enter" the page just reloads or does nothing at all.

Is there any fix about this? Any advice from more experienced users out there?

Thank you! :gl:
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Hello,

The site url always helps.
 
0
•••
This cannot be caused by CSS, I use CSS in all of my sites and I can press any key to submit a form (as long as the button is selected).
Do you have any other code that could cause this?
 
0
•••
Wuoshi said:
Hello,
The site url always helps.

Wuoshi, since the site is still under contruction (which means it's a total mess :p) I prefer not to show it to the public yet. Not a big deal, just a hobby site. If you want I can PM you the url though! :)

Mikor said:
This cannot be caused by CSS, I use CSS in all of my sites and I can press any key to submit a form (as long as the button is selected).
Do you have any other code that could cause this?

Mikor, I'm glad to hear that! Yes, except CSS the site has some php code. I thought it was CSS that was causing this problem (and not php), but to tell you the truth I haven't tested the buttons before (adding CSS). What do you reckon? Is this caused by php? And if yes, is there any fix about this? (e.g. adding an extra line of code, a tag... I don't know, something!). Thanks in advance for any help-suggestion! :D
 
0
•••
Ok, so atleast post most of the code. It's really hard to help you without seeing the actual coding.
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Appraise.net
Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back