troubleshooting Question

Correct syntax to include a php variable as value for width when defining style for <div>.

Avatar of winbiz
winbiz asked on
Programming
3 Comments1 Solution287 ViewsLast Modified:
Good morning everyone,

1) I am trying to define the dimensions of my <div> in terms of PHP variables, but am having trouble with the syntax. In this case I want the width of the <div> to be width: $MwW;

2) Can someone correct my syntax in my following script as an example please?

<div class="tabBox" style="background: #4268A8; position: absolute; left: 0px; top: 0px; width: $MwW px; height:40px;">

Thanks in advance once again for the ususal good stuff I get here!

winbiz
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros