Hi there!

After hours of searching and trying to remove width and height attributes from div styles i decided to ask here.
<div style="padding: 20px; width: 570px;">

How can i avoid, that width will not appear on div style.

I appreciate your help very much. I lost all my nerves :\

Thank you.

Comments

ezyang’s picture

Status: Active » Postponed (maintainer needs more info)

Do you need to remove width and height from only div tags, or from all tags?

Witch’s picture

Hi ezyang!

Only from div tags!

But what is the way to disallow width and height from all tags?

Thank you very much!

ezyang’s picture

If you wanted to disallow height and width from all tags, the easiest way would be to write a little bit of PHP code that unset the appropriate definitions from the CSSDefinition (it's about three lines, and I'd be willing to walk you through it).

Selectively disabling a CSS property for a specific HTML element is nontrivial, and would require more like a dozen lines of PHP code.

Witch’s picture

Hi ezyang,

i will have a look into the file and will try my best.

I will post my solution as soon as possible.

ezyang’s picture

You should let me know which one you want to do, so I can give you instructions.

ezyang’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closed on inactivity.