Thread: Footer Images

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Footer Images

    Hi,

    I am trying to display 3 different images in my tpl_footer file.

    I am confused about the li part of it for the css. I know I can use background-image in css to display the image, but I have 3 images to display and they are all different, NOT the same.

    How would I set that up using unordered lists and css?
    Thank you,
    autoace

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

    Default Re: Footer Images

    We need a bit more info on your desired results. Do you want the images to be in the background with text crossing them, or are they to be foreground images? How do you want them arranged? Spacing? A link to see what you have may improve the advice.

  3. #3
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: Footer Images

    Quote Originally Posted by gjh42 View Post
    We need a bit more info on your desired results. Do you want the images to be in the background with text crossing them, or are they to be foreground images? How do you want them arranged? Spacing? A link to see what you have may improve the advice.
    Thanks for your response. I guess the best way to do this would be to give you a link: http://www. a u t o m o t i v e a c e.com and simply scroll to the bottom and you will see 3 images that are in 'column' formation in the middle just above the footer menu.

    I want these 3 images to appear in "row" formation, if you will and also to put a light gray background behind them.

    Thanks for your help.
    Thank you,
    autoace

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

    Default Re: Footer Images

    You have your three images in three divs all with the same id, which is not supposed to be done - each id on a page should be unique.
    <div id="secureShopping">

    In this case, it does make it easier because you can just add to stylesheet_footer_menu.css
    Code:
    #secureShopping {
        width: 33%;
        float: left;
        margin-top: 1.0em;
        }

  5. #5
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: Footer Images

    Quote Originally Posted by gjh42 View Post
    You have your three images in three divs all with the same id, which is not supposed to be done - each id on a page should be unique.
    <div id="secureShopping">

    In this case, it does make it easier because you can just add to stylesheet_footer_menu.css
    Code:
    #secureShopping {
        width: 33%;
        float: left;
        margin-top: 1.0em;
        }
    So just to be sure I understand what you are saying, give the 3 separate images their own div ids and then just put those in the stylesheet_footer_menu .css? Is this correct?
    Thank you,
    autoace

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

    Default Re: Footer Images

    That would be the officially correct way to do it. You could just paste the code I gave in your stylesheet and it would work as is; the "id" rule is not generally enforced and won't cause your page to break, only perhaps throw a warning or something in validation. Since you have already edited the file to get those divs, changing them from id="secureShopping" to class="secureShopping" and changing the stylesheet rule to .secureShopping { would make it completely kosher and functional.

  7. #7
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: Footer Images

    Quote Originally Posted by gjh42 View Post
    That would be the officially correct way to do it. You could just paste the code I gave in your stylesheet and it would work as is; the "id" rule is not generally enforced and won't cause your page to break, only perhaps throw a warning or something in validation. Since you have already edited the file to get those divs, changing them from id="secureShopping" to class="secureShopping" and changing the stylesheet rule to .secureShopping { would make it completely kosher and functional.
    Originally I did just use the code you gave me and it did work, beautifully!

    I just now ready your latest post and did it the 'kosher' way. My only question now is, is there a way to control the spacing and maybe bring them in closer to each other?

    Thanks for your great help!
    Thank you,
    autoace

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

    Default Re: Footer Images

    With your site down for maintenance, we can't see your current structure to suggest styling changes.

  9. #9
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: Footer Images

    Quote Originally Posted by gjh42 View Post
    With your site down for maintenance, we can't see your current structure to suggest styling changes.
    Ok, its back up, please take a look!
    Thank you,
    autoace

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

    Default Re: Footer Images

    It's been tough to test some of the things that should work, because you can't always override a style specification with no specification...
    Anyway, you can style #footer {} with either width: 80%; margin: 5em auto 0; or padding: 0 5em; to make a narrower space to hold the seals.
    There is at least one other method you could use, so let me know if one of those works when you do it in the actual stylesheet.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. images in footer
    By fusionsp in forum General Questions
    Replies: 7
    Last Post: 18 Dec 2009, 05:54 PM
  2. Images in footer help
    By LissaE in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Jul 2008, 06:23 AM
  3. Images in the footer?
    By GrandmaJ in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 7 Oct 2007, 06:42 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