Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Strange Characters when INPUT border applied

    Having applied a border to INPUT, a strange || appears before a FORM statement on the page in Firefox.

    This can be seen at http://chicapparel.co.uk in both the login pages and on the header. Any ideas what causes this?

    In IE, borders appear around radio buttons. How do I prevent that yet still retain the outline of text input areas?
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  2. #2
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Strange Characters when INPUT border applied

    Even more puzzling is that when I look at the site this morning, the || has turned into |||| overnight!

    I'm obviously misunderstanding something in the CSS here, but what?
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  3. #3
    Join Date
    Sep 2005
    Location
    Derby
    Posts
    17
    Plugin Contributions
    0

    Default Re: Strange Characters when INPUT border applied

    Oddly enough, your title is your answer! Don't apply the border to all INPUTs.

    Those aren't characters, but borders applied to an input. By applying a border to all inputs, you include hidden fields.

    It's hidden form fields that are having borders drawn around them which are producing the effect of pipe | character. It's actually a 1px gray border.

    I hope that this makes sense, even it not all that helpful. It sounded more helpful in my head than it looks on the screen - sorry!

    Cheers

    Jak
    Netiva - Web Design and Development (Me, Myself and I)
    Mono Design - Design and Web Development (They pay my wages and are generally wonderful - woo!)

  4. #4
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Strange Characters when INPUT border applied

    Thanks - that makes sense...so is INPUT.name_of_field the correct syntax?
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  5. #5
    Join Date
    Sep 2005
    Location
    Derby
    Posts
    17
    Plugin Contributions
    0

    Default Re: Strange Characters when INPUT border applied

    As far as I know it'd need to be the ID or CLASS in the usual way rather than name of element - To sanity check before I answered, I googled and saw various discussions via google about input[type="text"] oir input.text but IE doesn't seem to like it.

    I could be wrong - usually am!
    Netiva - Web Design and Development (Me, Myself and I)
    Mono Design - Design and Web Development (They pay my wages and are generally wonderful - woo!)

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Strange Characters when INPUT border applied

    Ryk,

    This is from your stylesheet

    INPUT{
    border: 1px solid #aaaaaa;
    }

    I'd just eliminate this altogether.

  7. #7
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Strange Characters when INPUT border applied

    Just to summarise, the issue was that a border is required around the INPUT fields, but if one simply applies
    Code:
    INPUT{
    border: 1px solid #aaaaaa;
    }
    then every input - textfield, radio andf hidden fields end up with the border. The advice was to identify the individual fields, and I've been playing about with this over the past week or so.

    So far, my "INPUT" section of the stylesheet looks like this..
    Code:
    INPUT#navMainSearch, INPUT#login-password,INPUT#login-email-address,INPUT#firstname,
    INPUT#lastname,INPUT#street-address,INPUT#suburb,INPUT#city, INPUT#postcode, SELECT#country,
    INPUT#telephone, INPUT#fax,INPUT#dob,INPUT#company, INPUT#email-address,
    INPUT#password-new, INPUT#password-confirm,INPUT#contactname, INPUT#productAttributes, .myInputBox {
    	border: 1px inset #aaa;
    }
    This list is going to keep growing...surely there's a better/easier way to achieve this? If not, does anyone have a complete list of all Input field names?
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

 

 

Similar Threads

  1. Input Box Border...Help!
    By tsav87 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Jul 2010, 12:10 PM
  2. Limiting number of characters in an input field.
    By SandraSD in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 12 Sep 2009, 01:04 PM
  3. Strange characters in bulletins
    By juanmaminage in forum General Questions
    Replies: 2
    Last Post: 16 May 2009, 12:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg