Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default CSS Help! Input Boxes

    I have three ways to buy products. I have loaded COWOA and FEC. A customer can login as a new customer, returning customer or without an account. Besides shipping issues everything seems to be working except the ccs.stylesheet.

    The boxes for inputting information are all the same, but need to be located on each page in different areas. For instance, I can go to create account and I do not have sideboxes. When I change the input line in stylesheets it messes up my contact us page and checkout page. All of them have the same code with input. When I get one fixed, it messes up the other pages.

    How do I divide up between the different pages so each box can have a unique location?

    You can see here.
    create an account -
    https://www.burnerbooks.com//index.p...create_account
    contact us -
    http://www.burnerbooks.com//contact_us.html
    checkout -
    https://www.burnerbooks.com//index.p...ut&action=null

    I tried to modify no-account.css, but as soon as I re-load stylesheet.css it over-rides.

  2. #2
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: CSS Help! Input Boxes

    Can anyone help me? I have been going crazy for a couple of weeks trying to figure this out.
    Whenever I change stylesheet for one page it messes up the others. It even messes up other pages like product information at: http://www.burnerbooks.com//index.ph...ducts_id=27228. The input text box for quantity add this to my cart is effected as well as contact us, etc.

    There must be a way to divide up the text input boxes. I just do not know how to do it. I tried with FF web developer information display id and class to see if I could add to stylesheet, but did not work.

    Help!

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: CSS Help! Input Boxes

    You'd need to go into the template files for each of those pages and change the id for each field to something unique to that page, then style the page by adding the new ids to the stylesheet.

    In tpl_modules_create_account.php, for example, you could change id="company" to id="createcompany" and add #createcompany to the stylesheet, and so on.

    A lot of work.

  4. #4
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: CSS Help! Input Boxes

    Quote Originally Posted by stevesh View Post
    You'd need to go into the template files for each of those pages and change the id for each field to something unique to that page, then style the page by adding the new ids to the stylesheet.

    In tpl_modules_create_account.php, for example, you could change id="company" to id="createcompany" and add #createcompany to the stylesheet, and so on.

    A lot of work.
    Thank you for responding stevesh. I tried the first one with company name. I changed the id=company to id=create company in the tpl_modules_create_account file. Than I added #createcompany to the end of stylesheet with a small addition of float: left. It works! But yes I have some long nights ahead of me!

    How do I change the actual text name too? It is called label in stylesheets.

    Thank you for your help!

  5. #5
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: CSS Help! Input Boxes

    In your template's css folder, there should be a file called CSS_read_me.txt (get it from the classic template folder if you have to.) In it are instructions for creating page-specific stylesheets. You can create one named for any page (I think) in Zen Cart, so something like contact_us.css would be the place for styles you wish to apply uniquely to the Contact Us page.

    Just put definitions in these page-specific sheets which you need to change for that page. All the rest will come from the other stylesheet(s) you already have.

    No core code changes necessary!

    HTH

    Rob

  6. #6
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: CSS Help! Input Boxes

    I am down to final change and I think I can get by.

    On main page for left header I have Search. It has id as label and matches other labels in the site like my create account page, contact us, etc. The issue is text alignment. I need this one to be centered and rest to be left. I can not find the tpl file to change the id to searchlabel. So, I can then add it to my stylesheet and edit. I looked in developers Tool kit, but only language files.

    You can see where not align on my site. Plus, right box with Author/Publisher is same way.

    Thanks, Kim

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: CSS Help! Input Boxes

    Editing any PHP files to get totally unique ids is unnecessary and possibly counterproductive.
    You can set the label id for standard properties that you want to apply to all labels, and below that set a rule for each label that is on a different part of the page by specifying that label's container, like:

    #search label {}

    which will only apply to labels in the search sidebox.

    This is in addition to the ability to make per-page stylesheets which can affect all labels on a particular page.

  8. #8
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: CSS Help! Input Boxes

    Quote Originally Posted by gjh42 View Post
    Editing any PHP files to get totally unique ids is unnecessary and possibly counterproductive.
    You can set the label id for standard properties that you want to apply to all labels, and below that set a rule for each label that is on a different part of the page by specifying that label's container, like:

    #search label {}

    which will only apply to labels in the search sidebox.

    This is in addition to the ability to make per-page stylesheets which can affect all labels on a particular page.
    Thank you for the help, Glenn.

    I added #search label{ text-align: center; }

    It centered Search, but now it looks outside of the header. I have been trying to use margin and padding to get it above the blue line, but not working.

  9. #9
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: CSS Help! Input Boxes

    Quote Originally Posted by kburner View Post
    Thank you for the help, Glenn.

    I added #search label{ text-align: center; }

    It centered Search, but now it looks outside of the header. I have been trying to use margin and padding to get it above the blue line, but not working.
    I noticed that the float feature will not work with #search label and is picking up label from stylesheets. When I use FF web developer, I see this:

    label (line 198){
    color: #083562;
    font-weight: bold;
    font-size: 1.1em;
    text-align: left;
    float: left;
    }

    #search label (line 885){
    color: #083562;
    font-weight: bold;
    font-size: 1.1em;
    font-family: Lucida Sans;
    padding-top: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 0.5em;
    margin-bottom: 0.5em;
    text-align: center;
    }

    I added float: center to #search label, but does not show up. If I take float: left out of label it messes up all other pages.

    label - needs to be float: left
    #search label - needs to be float: center

    Not sure how to fix?

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: CSS Help! Input Boxes

    There is no such thing as float: center - only right or left. Try text-align: center;
    I see from your previous post that you did that. I will look at and see what it needs.

    For now, use float:none; to cancel the float for the search header.
    Last edited by gjh42; 13 Jan 2009 at 04:13 AM.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Need to enlarge input boxes
    By timhersh in forum General Questions
    Replies: 8
    Last Post: 5 May 2012, 07:50 PM
  2. Adding custom input boxes
    By Hiber in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 9 Apr 2010, 09:22 AM
  3. My input boxes are in a terrible mess
    By gitskitchen in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 31 May 2009, 10:20 AM
  4. Increase Size of Input Boxes
    By jacque427 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Mar 2007, 09:47 PM
  5. Align and Size Input Boxes
    By jacque427 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 1 Mar 2007, 05:55 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR