Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Location
    Texas
    Posts
    194
    Plugin Contributions
    0

    Default Re: Attribute Positioning Help Needed

    Very nice niccol! Thank you!
    It took a little more hunting but I found the instance of clear: both in the stylesheet that applied to productattributes, changed it to clear: left and shazzam.
    Should I also change:
    <br class="clearboth" /> in the tpl_modules_attributes.php

    Now, what could I do to put the Write a Review and the Tell a Friend buttons back to their previous position?

    I have to admit that I've not formally learned any coding, I've been learning from trial and error for years, starting with php-nuke. I wish I had the time and the retention abilities to formally learn.

    Thanks again niccol.
    Last edited by jabbawest; 16 Jul 2010 at 04:33 PM.

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Attribute Positioning Help Needed

    Understanding floats is pretty useful. They weren't designed really to do what designers use them for these days so sometimes it seems a bit archane but once you really get the hang of it then a lot of problems suddenly drop away.

    You need to get a clear:both in before the buttons. A couple of ways of doing that:

    1. In the code find the button and put a <br class="clearBoth"/> in just before.

    2. Apply a clear both to the first button. So in the stylesheet add something like:

    Code:
    #productTellFriendLink{
    clear:both;
    }

  3. #3
    Join Date
    Oct 2009
    Location
    Texas
    Posts
    194
    Plugin Contributions
    0

    Default Re: Attribute Positioning Help Needed

    Thanks again Nick.

    They're not exactly where I want them, I'd like them to be a little lower on the page so, unless you have another tip, I'll keep poking around.

    You've been most helpful and I will definitely head to half price books to look for some coding reference material.

    NOW I can go back to adding more items. whew

    P.S.
    I'm going to start a thread about organizing the process of working on code.
    Chime in please, because from day one I've always had my hap hazard way of trying to work with, (sometimes destroy), code in multiple files at the same time.
    If I have to take a phone call or pickup my kids from school, it can be difficult to pick up exactly where you left off.

    Thank again,
    Stephen

  4. #4
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Attribute Positioning Help Needed

    Well, once you have that rule you can do what you like with it - for instance :

    Code:
    #productTellFriendLink{
    clear:both;
    margin-top:100px;
    }
    will add a great big top margin to that element. And space it down from what's above. You probably will have to do that to both buttons.

    With regards method of working on the code there are some rules:

    1. Back up everything. Back it up again and then back it up at frequent intervals.

    2. Try your best to comment your changes.

    3. Back up again

    Important things to learn early on are how to back up your files which is pretty easy. I back up includes and admin frequently. Other things less frequently. Then you need to back up your database. Very important. It is best done by phpMyAdmin which should be available through your hosting control panel and takes half an hour to learn. Once you have you will not believe how you managed without it. Also there is a mod - I think called mysqlBackup - that lets you back up from admin. Very useful but won't work in certain hosting environments.

    Once you done that back up again!

    Beyond that everybody codes in different ways. Here's a quote from why the lucky stiff -

    I admire programmers who take risks. They aren’t afraid to write dangerous or “crappy” code. If you worry too much about being clean and tidy, you can’t push the boundaries (I don’t think!). I also admire programmers who refuse to stick with one idea about the “way the world is.” These programmers ignore protocol and procedure. I really like Autrijus Tang because he embraces all languages and all procedures. There is no wrong way in his world.
    Ha ha - the thing is that you need to be a genius programmer to follow that creed. For the rest of us 'workable' is what we are going for.

  5. #5
    Join Date
    Oct 2009
    Location
    Texas
    Posts
    194
    Plugin Contributions
    0

    Default Re: Attribute Positioning Help Needed

    Quote Originally Posted by niccol View Post
    Well, once you have that rule you can do what you like with it - for instance :

    Code:
    #productTellFriendLink{
    clear:both;
    margin-top:100px;
    }
    will add a great big top margin to that element. And space it down from what's above. You probably will have to do that to both buttons.

    With regards method of working on the code there are some rules:

    1. Back up everything. Back it up again and then back it up at frequent intervals.

    2. Try your best to comment your changes.

    3. Back up again
    Thanks once more for the lesson CSS lesson Nick.

    As for backing up, now that I'm tinkering more, I scheduled a Root backup to happen late at night every couple of days using WS_FTP Pro. It's already saved me a couple of times.
    I also have a Cron Job set-up to backup mysql database every week, or I'll do it manually when I install or uninstall a feature that uses it.

 

 

Similar Threads

  1. Attribute help needed fast!
    By exclusivewears.com in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 20 May 2010, 01:07 PM
  2. Positioning Help Needed
    By jabbawest in forum Basic Configuration
    Replies: 2
    Last Post: 2 Nov 2009, 09:06 PM
  3. Attribute Positioning
    By mfsuchta in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Sep 2008, 11:11 PM
  4. Help needed with attribute pricing
    By thetoychest in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 28 Apr 2008, 02:08 AM
  5. Product Attribute Help Needed Please
    By angelicdezigns in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 25 Jul 2006, 08:42 AM

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