Results 1 to 5 of 5

Column_left background image

This is a discussion on Column_left background image within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I would like to place an image in column left, behind the boxes. How do I do that? thanks, rd42...

      
  1. #1
    New Member
    Join Date
    Dec 2002
    Posts
    22
    Rep Power
    0


    Default Column_left background image

    I would like to place an image in column left, behind the boxes.

    How do I do that?

    thanks,
    rd42

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    Create a new style in stylesheet.css that specifies the background image you want to use.

    Then, in the display pages that you want the image, you would add the style to the <td> tag that defines where the left column is displayed. Look for a block of code like this:

    Code:
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
    <!-- left_navigation //-->
    <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
    <!-- left_navigation_eof //-->
    Your style should go in the opening <td> tag at the top... ( I have done this on the fly, so I might be a little off, but it should get you going)
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member jasonh1234's Avatar
    Join Date
    Jul 2003
    Posts
    5
    Rep Power
    0


    Default

    I'm trying to make some changes such as the background, and font to a specific area.
    I understand this would be done throught the style sheet, but I can't get a style sheet to be associated with the area in question.

    Let's say I want to change the font in categories.php only. I open categories.php and add modify the code to this:

    Code:
    <!-- categories //-->
              <tr>
                <td style="test">
    and tried this as well:

    Code:
    <!-- categories //-->
              <tr>
                <td style="test.css">
    Neither worked.
    I checked Column_left.php to see if it should be added there instead but no such thing as a TD tag there.

    I'm also going to need to add a background to the header but there's no stylesheet called in it and no table tag to add to.

    What do I do? This is so frustrating!
    My test.css is located in the same location as stylesheet.css

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    Your problem is you are calling an entire stylesheet, and this is not how they work. You should add your classes to the existing stylesheet.css, then in the <td> tag, just call the new class.

    You should read a turtorial on CSS and how to use it. Your frustration stems from lack of information. You simply are trying something that you don't yet know how to do. Learn how to do it (in theory at least) then try it on your site. Trial and error is not the way to go here...
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    New Member jasonh1234's Avatar
    Join Date
    Jul 2003
    Posts
    5
    Rep Power
    0


    Default

    Thanks. unfortunately I don't have the time to do a lot of reading. I just have to get this site up an running, looking as desired, and I need it done a week ago. (ain't that always the way.)

    I've gotten pretty far so far in my trial by fire, but once in a while something small like this will get me tripped up. I think I must've been pretty sleepy when I wrote that message too because when I reread your original reply just now, it seems pretty clear that you don't make a 2nd stylesheet but rather edit the existingone. <smacks head>
    Never underestimate the value of sleep.
    Thanks for your help though.

Similar Threads

  1. Background Image
    By Studio143 in forum osCmax v1.7 Discussion
    Replies: 5
    Last Post: 01-02-2005, 05:26 PM
  2. background image has dissappeared , help
    By acrylictribesmen in forum osCmax v1.7 Discussion
    Replies: 5
    Last Post: 07-03-2004, 10:55 PM
  3. background image outside mainpage?
    By jloyzaga in forum osCMax v1.7 General Mods Discussion
    Replies: 1
    Last Post: 01-20-2004, 02:56 AM
  4. Background Image
    By jan_mull in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 11-10-2003, 07:31 AM
  5. pop up image background colour change
    By starchild in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 10-01-2003, 06:13 AM

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
  •