On 07/21/2010 09:01 AM, Sven wrote:
> Entering the follwing string in the notebook yields the words Hello
> World colored in red:
> '<html> <body> <h1 style="color:#FF0000">Hello World</h1> </body> </
> html>'
> 
> Entering the following string in the notebook yields the words Hello
> World colored in the default notebook color:
> '<html> <head> <style type="text/css">h1{color:#FF000}</style> </head>
> <body> <h1>Hello World</h1> </body> </html>'
> 
> Providing the style info in the latter way is however the preferred
> way for my purposes.
> Is there a way to get notebook to display the html code correctly when
> the style info is given in the html head, rather than in the html
> body?

Could you tell us how you are injecting the HTML code into the document?
 Is it with

html('<html> <head> ... </head> <body> ... </body> </html>')

or equivalently,

%html
<html> <head> ... </head> <body> ... </body> </html>

?  Or the same, but without '<html>' and '</html>'?  Or by clicking
"Edit" and pasting the code into a text cell?

Thanks!

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to