Skip to main content
Participant
April 18, 2008
Question

CFPOD - dynamic width?

  • April 18, 2008
  • 2 replies
  • 385 views
I'm trying to use <cfpod> for a project and I've run into a roadblock early on. I've found out that the width of a cfpod can only be set in pixels. It seems odd to me that this tag does not support widths as percentages. I've searched and can't find much info on plausible workarounds, so I figured I'd ask here if anyone has a solution to making a <cfpod width="100%">? Thanks!
This topic has been closed for replies.

2 replies

Inspiring
April 19, 2008
cfpod is just a regular styled div with class="ypod" and a unique id
assigned by cf.
so unless you have several of those on a page with varying widths, you
can easily use js to change the pod's width to 100%.
jQuery is very handy with DOM manipulations...

hth

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
April 18, 2008
Use a JavaScript function to determine the width of the browser's screen (in pixels). Use that value in the CFPOD. The following link may help.

http://mysecretbase.com/Code_Snippets.cfm