C
chengiz
Hi,
A web page I regularly visit has a bad stylesheet: especially what
ticks me is hardcoded width settings due to which I cant read without
horizontal scroll at a decent font size. What I'm trying to do is
write a greasemonkey script to change all widths to be percentages.
The problem I'm facing is that only a few elements have the "width"
property in their style (js object -> style -> width). A majority have
empty width there, but their *CSS style* (not just the computed style)
shows up as having a hardcoded width - which I'm unable to get at in
the script. I dont understand how this is possible. Can someone
enlighten me, and help me in getting those widths converted? Many
thanks!
Khan
A web page I regularly visit has a bad stylesheet: especially what
ticks me is hardcoded width settings due to which I cant read without
horizontal scroll at a decent font size. What I'm trying to do is
write a greasemonkey script to change all widths to be percentages.
The problem I'm facing is that only a few elements have the "width"
property in their style (js object -> style -> width). A majority have
empty width there, but their *CSS style* (not just the computed style)
shows up as having a hardcoded width - which I'm unable to get at in
the script. I dont understand how this is possible. Can someone
enlighten me, and help me in getting those widths converted? Many
thanks!
Khan