Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Spcial offers layout / coding query

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-25-2015, 02:19 AM
 
Robwuk Robwuk is offline
 

Advanced Member
  
Join Date: Apr 2012
Posts: 36
 

Default Spcial offers layout / coding query

Hi, im using 4.6.6 ideal responsive template

I basically want to add some code to what is generated when displaying the images for the special offers at the top of the page

currently i have 3 offers displaced, but when i reduce the browser these overlap

what i want to do is add css to make the images scale down, i have the css code and tried it out (firefox dev tools) now i want to add the css whatever is outputing that code

Any ideas

just to make it clearer, i want three boxes 300px wide but when the browser is scaled down, the images will scale down to (obviously not in mobile view)

Thanks

Rob
__________________
X-Cart Gold 4.6.6
Reply With Quote
  #2  
Old 11-25-2015, 05:19 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Spcial offers layout / coding query

Rob,
It is easier to help when you link to the actual page.

It should be very easy to do, you just need to find a CSS selector that helps you isolate these specific images.

So if they are in a class like .special-offers you could write the CSS:
Code:
.special-offers img { width: 32%; height: auto; margin: 0 auto; }
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
Robwuk (12-01-2015)
  #3  
Old 11-26-2015, 04:57 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Spcial offers layout / coding query

Please provide a link to your shopping cart, it is hard to say for sure without seeing the actual layout.
Thanks.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
  #4  
Old 11-26-2015, 08:34 AM
 
Robwuk Robwuk is offline
 

Advanced Member
  
Join Date: Apr 2012
Posts: 36
 

Default Re: Spcial offers layout / coding query

Thankyou for replies

the website address is www.gifts4anglers.co.uk

There are three boxes at the top, i plan on having these square, but do not want them to overlap in any way, like they do at present.

Using developer tools i was able to add to the code, an auto width and maximum width 100%, when i made the browser smaller the images shrunk, which is what i would like, obviously not on the mobile view, but just for tablets and normal browsers

Rob
__________________
X-Cart Gold 4.6.6
Reply With Quote
  #5  
Old 12-01-2015, 12:55 AM
 
Robwuk Robwuk is offline
 

Advanced Member
  
Join Date: Apr 2012
Posts: 36
 

Default Re: Spcial offers layout / coding query

Quote:
Originally Posted by totaltec
Rob,
It is easier to help when you link to the actual page.

It should be very easy to do, you just need to find a CSS selector that helps you isolate these specific images.

So if they are in a class like .special-offers you could write the CSS:
Code:
.special-offers img { width: 32%; height: auto; margin: 0 auto; }

I did get it sorted, sort of with this help

I wanted the image to be 100% width of the space it was providing, ie 33% for example, and used just

Code:
.special-offers img { width: 100%; }

as id didnt want this happen on all views, i found the code to set the media screen widths and was able to set my width for mobile aswell as browsers

but thanks for input, really helped

Rob
__________________
X-Cart Gold 4.6.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:17 PM.

   

 
X-Cart forums © 2001-2020