osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

image auto resize to fit screen width

This is a discussion on image auto resize to fit screen width within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; I am using the CSS Fluid1 template ... I would like to put a background image in the "logoFrame" of ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Reply

 

LinkBack Thread Tools
  #1  
Old 01-30-2010, 11:14 PM
New Member
 
Join Date: Dec 2009
Posts: 29
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
mesaboogie is on a distinguished road
Default image auto resize to fit screen width

I am using the CSS Fluid1 template ... I would like to put a background image in the "logoFrame" of this template and I need it to auto resize ... so that it is the same size as the nav bar under it ... I have been staring at codes and trying different things for countless hours and I am lost ... can someone please help me and let me know if this is even possible .. THANK YOU SO VERY MUCH

Last edited by mesaboogie; 01-30-2010 at 11:31 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 01-31-2010, 01:19 AM
ridexbuilder's Avatar
osCMax Development Team

 
Join Date: Jul 2008
Location: Haggisland
Posts: 1,759
Thanks: 158
Thanked 222 Times in 210 Posts
Rep Power: 15
ridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud of
Default Re: image auto resize to fit screen width

[Wonders how you're going to cope with the distortion created by non-proportional stretching of the image.]
__________________
Hosting plans with installation, configuration, contributions, support and maintenance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 01-31-2010, 07:59 AM
New Member
 
Join Date: Dec 2009
Posts: 29
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
mesaboogie is on a distinguished road
Default Re: image auto resize to fit screen width

I took the background of the logo and put that in as a background piece, and then the actual logo part, I put in separately ... so the actual logo won't need to stretch, just the background will ....
if someone could tell the code the so that the background will repeat if necessary, it would be very much appreciated ....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 01-31-2010, 08:12 AM
ridexbuilder's Avatar
osCMax Development Team

 
Join Date: Jul 2008
Location: Haggisland
Posts: 1,759
Thanks: 158
Thanked 222 Times in 210 Posts
Rep Power: 15
ridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud of
Default Re: image auto resize to fit screen width

try..
Code:
img#logo {
position: absolute;
left: 20px;
bottom: 10px;
background-image : url(../../images/logo-background.gif) repeat-x;
}
You may need to create a entirely separate entry for the background image though - in mainpage.tpl & stylesheet.
__________________
Hosting plans with installation, configuration, contributions, support and maintenance.

Last edited by ridexbuilder; 01-31-2010 at 08:30 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 01-31-2010, 09:34 AM
New Member
 
Join Date: Dec 2009
Posts: 29
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
mesaboogie is on a distinguished road
Default Re: image auto resize to fit screen width

thankyou ... I've already got the background piece in, I just needed the code for the repeat ... the image itself right now is 2000 pixels wide and its working fine ... I think I may need to cut it into a smaller piece and have it repeat ... I have a 22' wide screen monitor with a screen resolution of 1680 wide ... I would like to have it so that if someone has for instance say a 24" or wider monitor that the background piece will fit accordingly ... so, I think possibly trying to cut it into pieces might be an idea to try ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 01-31-2010, 10:20 AM
ridexbuilder's Avatar
osCMax Development Team

 
Join Date: Jul 2008
Location: Haggisland
Posts: 1,759
Thanks: 158
Thanked 222 Times in 210 Posts
Rep Power: 15
ridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud of
Post Re: image auto resize to fit screen width

[Physical screen size is irrelevant, it's the resolution that dictates visual width]
A URL would help but as I use 1280 on a laptop, then POC is the only option.
__________________
Hosting plans with installation, configuration, contributions, support and maintenance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 01-31-2010, 10:26 AM
New Member
 
Join Date: Dec 2009
Posts: 29
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
mesaboogie is on a distinguished road
Default Re: image auto resize to fit screen width

thanks again ... here is the url

Atlantic Skies Birdie Supplies :

I have left the piece in as 2000 pixels wide ...
can you please tell me what the difference is between

ABSOLUTE and RELATIVE

I am still in the process of finishing up the site ... I am also redoing all the little gifs that come with OSCMAX ... I plan on replacing all of them and what I don't replace I want to clean up the edges on them ....

thanks for all your help

Last edited by mesaboogie; 01-31-2010 at 10:30 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 01-31-2010, 10:43 AM
ridexbuilder's Avatar
osCMax Development Team

 
Join Date: Jul 2008
Location: Haggisland
Posts: 1,759
Thanks: 158
Thanked 222 Times in 210 Posts
Rep Power: 15
ridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud ofridexbuilder has much to be proud of
Arrow Re: image auto resize to fit screen width

headerbackground.jpg only needs to be 1px wide

main_layout.css
Code:
div#logoFrame {
background-image:url(images/headerbackground.jpg) repeat-x;
border:1px solid black;
height:200px;
margin-left:15px;
margin-right:15px;
position:relative;


}
Quote:
ABSOLUTE and RELATIVE
As in other walks of life. Absolute position => fixed; Relative => relative position compared to previous item.
__________________
Hosting plans with installation, configuration, contributions, support and maintenance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 01-31-2010, 11:04 AM
New Member
 
Join Date: Dec 2009
Posts: 29
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
mesaboogie is on a distinguished road
Default Re: image auto resize to fit screen width

thankyou so much for all your help .. this is the first oscmax catalog I have ever done ... and its been one hell of a learning experience ... I have taken the template and changed it and now I'm editing all the graphics ...

it would be a great idea if all the little icons for the oscmax templates could be .png files on transparent backgrounds ... it would avoid them looking fuzzy around the edges when they are placed on other colours ....

again, thankyou !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Dynamic Image Resize michael_s New osCommerce Contributions 0 08-18-2009 05:11 AM
Auto Image change? Stevis2002 osCommerce 2.2 Modification Help 1 04-07-2005 02:45 PM
add extra image settings width height etc, any info? fridgemags osCMax v1.7 General Mods Discussion 1 11-20-2004 08:03 PM
Header Image Resize FlipC osCommerce 2.2 Modification Help 0 11-21-2003 03:25 PM
Image Resize... or Do I really need to recreate 500 pictures ladykeetes osCommerce 2.2 Modification Help 6 07-06-2003 04:14 PM


All times are GMT -8. The time now is 11:48 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2010 osCmax
Inactive Reminders By Icora Web Design