View Full Version : Can you delete div with align=center


mufc
12-10-2010, 12:25 PM
Can you delete div align="center" from newspaper recipes so that the text in the div is gone.
Thanks

Starson17
12-10-2010, 12:55 PM
Can you delete div align="center" from newspaper recipes so that the text in the div is gone.
Thanks
What text? The alignment attribute or the text being aligned? The answer is "Yes" to both.

mufc
12-10-2010, 01:14 PM
All the text contained in the div align="center"
I have tried using
dict(name='div', attrs={'id':['align="center"']})

Starson17
12-10-2010, 02:39 PM
All the text contained in the div align="center"
I have tried using
dict(name='div', attrs={'id':['align="center"']})

The attribute is 'align' and its value is 'center'. There may be another attribute of 'id', but if there is, you haven't said what its value is. So you want something like:

dict(name='div', attrs={'align':'center'})

plus any "remove_tags =" or whatever.

mufc
12-10-2010, 07:23 PM
Thanks it worked.