I need some help about how to fix the width and height in css using php code <style> #cont{width:<?php 40+(3*$thumbs_width);?>px;margin:0 auto;background:#ffffff;text-align:left;padding:10px} .mask1{position:relative;width:<?php 3*$thumbs_width;?>px;height:<?php 2*$thumbs_height ?>px;overflow:hidden;} </style> any help would be wellcome and thanks in advance
<style> #cont{width:<?php echo 40+(3*$thumbs_width);?>px;margin:0 auto;background:#ffffff;text-align:left;padding:10px} .mask1{position:relative;width:<?php echo 3*$thumbs_width;?>px;height:<?php echo 2*$thumbs_height ?>px;overflow:hidden;} </style> PHP:
this should be like this: <style> #cont{width:<?php echo 40+(3*$thumbs_width);?>px;margin:0 auto;background:#ffffff;text-align:left;padding:10px} .mask1{position:relative;width:<?php echo 3*$thumbs_width;?>px;height:<?php 2*$thumbs_height ?>px;overflow:hidden;} </style> PHP: you didn't used echo
yes this can be done like that as well. <style> #cont{width:<?=40+(3*$thumbs_width);?>px;margin:0 auto;background:#ffffff;text-align:left;padding:10px} .mask1{position:relative;width:<?=3*$thumbs_width;?>px;height:<?=2*$thumbs_height ?>px;overflow:hidden;} </style> PHP: