I would like to place an image in column left, behind the boxes.
How do I do that?
thanks,
rd42
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...
I would like to place an image in column left, behind the boxes.
How do I do that?
thanks,
rd42
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:
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)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 //-->
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
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:
and tried this as well:Code:<!-- categories //--> <tr> <td style="test">
Neither worked.Code:<!-- categories //--> <tr> <td style="test.css">
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
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
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.
Bookmarks