Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Posts
    110
    Plugin Contributions
    0

    Default Targetting 'input' elements

    Hi all.

    www.in-the-spirit-shop.co.uk/shop is my site.

    I wonder if anyone can help me with targetting specific elements with css?
    I'm struggle with the concept.

    For example, my create account page is style with input fields have a nice border. Now as has been mentioned on here, once I set the .input css to have a border, it gives all inputs a border, when I only want occasional ones.

    If you look at 'add to basket' and the quantity box on this page:

    http://www.in-the-spirit-shop.co.uk/...&products_id=3

    You'll see borders.

    I'm sure they can be targetted by css to not have borders, but i can't work out how. It's also been discussed here about making the basic .input css have no border, and then modifying the places where you want it.

    That's ugly and cumbersome, so is there a way to say "I don't want a border on this element"?

    Cheers all.

    p.s - Hope you like the site.

  2. #2
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Targetting 'input' elements

    Quote Originally Posted by budfox View Post
    Hi all.

    www.in-the-spirit-shop.co.uk/shop is my site.

    I wonder if anyone can help me with targetting specific elements with css?
    I'm struggle with the concept.

    For example, my create account page is style with input fields have a nice border. Now as has been mentioned on here, once I set the .input css to have a border, it gives all inputs a border, when I only want occasional ones.

    If you look at 'add to basket' and the quantity box on this page:

    http://www.in-the-spirit-shop.co.uk/...&products_id=3

    You'll see borders.

    I'm sure they can be targetted by css to not have borders, but i can't work out how. It's also been discussed here about making the basic .input css have no border, and then modifying the places where you want it.

    That's ugly and cumbersome, so is there a way to say "I don't want a border on this element"?

    Cheers all.

    p.s - Hope you like the site.
    #cartAdd input {border:none;}

    I think the qty. box should have borders, as it normally does, so if you want them on, you could use this instead to target the add to cart only:

    #cartAdd input[type=image]{border:none;}

  3. #3
    Join Date
    Aug 2006
    Posts
    110
    Plugin Contributions
    0

    Default Re: Targetting 'input' elements

    Brilliant thanks.

    I'd actually got the right idea then, but knew nothing of the [type=image] syntax.

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Targetting 'input' elements

    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 

Similar Threads

  1. v154 Required Input error clears all attributes of input data
    By polygone in forum Managing Customers and Orders
    Replies: 4
    Last Post: 31 May 2016, 01:11 PM
  2. Google Web Elements
    By Vintage Rod in forum General Questions
    Replies: 4
    Last Post: 27 Jun 2011, 11:31 PM
  3. Extra 'input' box needed on product info input page
    By abaris in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Apr 2009, 03:40 PM
  4. Banner/Elements placement
    By cpking in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 3 Sep 2007, 02:15 PM
  5. Deactivate some elements
    By mathon in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Nov 2006, 11:03 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