Jump to content

Using PhP to Determine <div> widths?


vozzek

Recommended Posts

Happy weekend all,

 

I was wondering the best way to do the following:

 

<div class="wrapper">

<div class="left">

  <div class="right">

  </div>

<div>

<div>

 

"wrapper" has a fixed width of 790px.

The width of "left" will be dynamic... anywhere from 200 all the way up to 580px.

 

I need the width of class "right" to be 790 - (minus) the width of "left".  For example if "left" was 580px, I would need to set "right"'s width to 210px.

 

Is there a way to figure this in PhP?

Thanks in advance!

 

 

Link to comment
https://forums.phpfreaks.com/topic/139341-using-php-to-determine-widths/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.