Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 12-10-2010, 11:25 AM   #1
mufc
Connoisseur
mufc doesn't littermufc doesn't litter
 
Posts: 99
Karma: 170
Join Date: Nov 2010
Location: Airdrie Alberta
Device: Sony 650
Can you delete div with align=center

Can you delete div align="center" from newspaper recipes so that the text in the div is gone.
Thanks
mufc is offline   Reply With Quote
Old 12-10-2010, 11:55 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by mufc View Post
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.
Starson17 is offline   Reply With Quote
Advert
Old 12-10-2010, 12:14 PM   #3
mufc
Connoisseur
mufc doesn't littermufc doesn't litter
 
Posts: 99
Karma: 170
Join Date: Nov 2010
Location: Airdrie Alberta
Device: Sony 650
reply

All the text contained in the div align="center"
I have tried using
dict(name='div', attrs={'id':['align="center"']})
mufc is offline   Reply With Quote
Old 12-10-2010, 01:39 PM   #4
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by mufc View Post
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.
Starson17 is offline   Reply With Quote
Old 12-10-2010, 06:23 PM   #5
mufc
Connoisseur
mufc doesn't littermufc doesn't litter
 
Posts: 99
Karma: 170
Join Date: Nov 2010
Location: Airdrie Alberta
Device: Sony 650
Thanks it worked.
mufc is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
unwanted table-change (vertical align) by calibre NASCARaddicted Calibre 2 01-27-2010 03:35 AM
Kindle Intl seems have solved right align problem rfog Amazon Kindle 0 10-26-2009 12:49 PM
Delete files in PC not equal to delete in Sony reader 505 sheilalayoli Sony Reader 5 07-12-2009 03:13 PM
Exclude <div>s from processing in HTML2LRF MTBSJC Calibre 1 02-13-2009 03:26 AM
Justify align in RTF? griffbrad Sony Reader 6 11-27-2006 03:25 PM


All times are GMT -4. The time now is 10:39 AM.


MobileRead.com is a privately owned, operated and funded community.