Previous Message
Next Message

centered <div> and <pre>

Sent by Adam Hardy on 11 September 2003 17:05


I've got an error message that needs to display in a <pre> block. I've 
also got a very simple page layout with the content centered using a 
text-align=center; for IE and the margin:auto for netscape.

I have a problem when a really long line appears in my error message. 
Netscape does what I want - it leaves the rest of the page exactly where 
it is and lets the long text line disappear off the right-hand side.

IE6 though left-justifies the text but not the header, which remains 
centered and therefore looks stupid.

The header and the content are in different divs and I don't really want 
to combine the 2 divs because this page's template (in java struts 
tiles) is used by all my other pages.

Can I do anything with CSS? Or do I have to make an exception with a new 
layout template for this page?

Here's the page with html & css embedded:

http://www.cyberspaceroad.com/start.html


Thanks
Adam

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message