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

DIV Design question

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-21-2008, 06:20 PM
 
MOC MOC is offline
 

Senior Member
  
Join Date: Oct 2002
Posts: 171
 

Question DIV Design question

Hi there,
it's not a question which has something to do with x-cart directly, but this one is driving me mad and i coudn't find any helpful code on the web. May be someone here has an answer.

I designing my shop with css and div completely. i wanna show on the left side a background image and then overlay in the center text

i tried this for example
Code:
<div style="BACKGROUND-IMAGE: url(/skin1/central/countdown.gif); padding-right: 0px; PADDING-LEFT: 30px; PADDING-TOP: 100px; FONT-SIZE: 14px; BACKGROUND-REPEAT: no-repeat"> <div style=" position:absolute; padding-left:5px; padding-top:4px; color:#FFFfff; font-size:14px; font-weight:bold; line-height:normal">366 days</div> </div>

But the text is showing up below the picture. how can i overlay the text over the background?

thanks in advance
__________________
X-Cart Gold Version 3.5.14 (Live)
X-Cart Gold Version 4.1.10 (in dev)

Modification for 4.1.10
Run with 1 License, 1 Database up to 5 Shops with different domains, config, categories and more. click here for informations
Reply With Quote
  #2  
Old 06-22-2008, 04:00 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: DIV Design question

Ok first, never put the formatting IN the div, it should always be in the external stylesheet.

Next, in order to keep divs from stacking, you need to use the 'float' class. Get rid of the absolute positioning.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-22-2008, 05:29 AM
 
MOC MOC is offline
 

Senior Member
  
Join Date: Oct 2002
Posts: 171
 

Default Re: DIV Design question

Thanks Balinor
__________________
X-Cart Gold Version 3.5.14 (Live)
X-Cart Gold Version 4.1.10 (in dev)

Modification for 4.1.10
Run with 1 License, 1 Database up to 5 Shops with different domains, config, categories and more. click here for informations
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 01:02 AM.

   

 
X-Cart forums © 2001-2020