Previous Message
Next Message

The Magic of CSS

Sent by Syntactic: Jim Wilkinson on 18 November 2004 17:05


Hi David,

Hang in there - you're doing well! And don't pull your hair out, just come  
to the list. Quite often, problems are easily fixed but we're too close to  
see them.

Your HTML validates but your CSS has three minor errors:-

http://jigsaw.w3.org/css-validator/

The reason Opera and NS hide most of the document is this:-

#CollageWrapper h1 {
	margin: -9000 0;
}

Values other than zero must have their units specified. IE is lax in that  
it assumes "px". I think you meant:-

#CollageWrapper h1 {1
	margin: 0 0 0 -9000px;
}

as a hack to move the text off the screen. When I changed to this, the  
document rendered fine in Opera (O7.54). I can't immediately solve your  
centering problem. It looks okay in Opera.

I think it will help you greatly if you develop using a  
standards-compliant browser and then retest/workround/detune for IE. IE's  
laxity has led you astray and hence wasted your development time. By a  
remarkable coincidence, I've just added a page to the Wiki in response to  
a recent question:-

http://css-discuss.incutio.com/?page=WhichBrowsers

Trust this helps.

-- 
Jim Wilkinson

Cardiff, Wales UK

Opera e-mail client: http://www.opera.com/m2/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: