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

css positioning

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-02-2009, 12:54 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default css positioning

I've got a div that is set for certain conditions, basically it displays a 'new' logo for newly added products.

the css that controls the div is:
Code:
.stickernewlarge { background:transparent url(http://www.willowtreecrafts.co.uk/shop/skin1/images/sticker/stickerblue128new.png) no-repeat scroll right top; display:block; float:right; height:128px; margin:1px; position:relative; right:-23px; top:-74px; width:128px; }

my problem is that it sits over the product description.

Can anyone help me change it so the text preferably goes around the image/div?

url:
http://www.willowtreecrafts.co.uk/shop/product.php?productid=13940&cat=7&page=1

tia
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #2  
Old 09-02-2009, 01:58 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: css positioning

over complicated I believe.

Put the code directly before the element you wish to have it wrap around.

The description here.

then the css should be.

background:transparent url(http://www.willowtreecrafts.co.uk/shop/skin1/images/sticker/stickerblue128new.png) no-repeat scroll right top;
float:right;
height:128px;
margin:1px;
width:128px;
__________________
xcart 5.1.2
Reply With Quote
  #3  
Old 09-02-2009, 02:01 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: css positioning

nice site btw
__________________
xcart 5.1.2
Reply With Quote
  #4  
Old 09-02-2009, 02:04 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: css positioning

also if you call the image with an absolute path using http in the css instead of a relative path IE will bug out and say 'some items on this apge are not secure' when using HTTPS.

you can always call images in the skin1/images folder with just this.

background:url(images/imageName.jpg);
__________________
xcart 5.1.2
Reply With Quote
  #5  
Old 09-02-2009, 02:35 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Re: css positioning

the thing is that it's dependant on an extra field, so it is only parsed to the page through the extra_fields/product.tpl template that is called further down the page.

Thanks!
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #6  
Old 09-02-2009, 02:42 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: css positioning

It can still be dependent on the extra field and placed right before the description.
__________________
xcart 5.1.2
Reply With Quote
  #7  
Old 09-02-2009, 02:51 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Re: css positioning

I'll get to those later

Thanks for the help, the new and free postage images seem to be playing nicely now,
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
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 10:54 AM.

   

 
X-Cart forums © 2001-2020