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

Styling Iframe with CSS

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-04-2010, 12:45 PM
  jadefrolics's Avatar 
jadefrolics jadefrolics is offline
 

Senior Member
  
Join Date: Feb 2010
Posts: 138
 

Default Styling Iframe with CSS

Is it possible? I really want to style the Quantum InLine Frame payment method so it matches my site better. I don't have access to the page that the Inline Frame calls, so I would like to somehow style it without editing that page itself.

Quantum suggested maybe I can do it with javascript, but I do not know javascript. Thanks!
__________________
shop jadefrolics
illustrated prints, accessories, and other goodies
http://shop.jadefrolics.com
X-Cart Gold Version 4.4.1
Reply With Quote
  #2  
Old 11-04-2010, 03:56 PM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default Re: Styling Iframe with CSS

You can add the style right to the iframe tag

Something like this:
PHP Code:
<iframe name='iframe1' id="iframe1" src="empty.htm" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #3  
Old 11-04-2010, 04:28 PM
  jadefrolics's Avatar 
jadefrolics jadefrolics is offline
 

Senior Member
  
Join Date: Feb 2010
Posts: 138
 

Default Re: Styling Iframe with CSS

Thank you for getting back to me! I'm looking to style the actual web site that the Iframe has opened... in this case the actual billing info form that's IN the iframe and is hosted on the Quantum server, not mine. It seems like the code you showed is for styling the iframe box rather than the contents within it... is that right?

Sorry if I was unclear!
__________________
shop jadefrolics
illustrated prints, accessories, and other goodies
http://shop.jadefrolics.com
X-Cart Gold Version 4.4.1
Reply With Quote
  #4  
Old 11-04-2010, 04:32 PM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default Re: Styling Iframe with CSS

Indeed you can do that but it does not work across all browsers.
Check this out: http://stackoverflow.com/questions/217776/how-to-apply-css-to-iframe
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #5  
Old 11-05-2010, 03:06 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Styling Iframe with CSS

Becuase this is the actual page that collects CC info can this be consider as putting site back in pci scope? The whole point of this iframe page is to get out of the pci scope
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #6  
Old 11-06-2010, 10:09 AM
  jadefrolics's Avatar 
jadefrolics jadefrolics is offline
 

Senior Member
  
Join Date: Feb 2010
Posts: 138
 

Default Re: Styling Iframe with CSS

I'm working with Quantum to see if they can implement just a link to my external CSS document in the iframe page. Hopefully it will be a success. The whole styling via javascript from outside has been cracked down on because of security issues, so I figure I should stay away from that route now. Thanks, guys!
__________________
shop jadefrolics
illustrated prints, accessories, and other goodies
http://shop.jadefrolics.com
X-Cart Gold Version 4.4.1
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 03:49 PM.

   

 
X-Cart forums © 2001-2020