Diane Ross wrote:
> Apparently I don't understand @import. I used GoLive to set the 
> @import and assumed it would work when uploaded. Until I get that 
> fixed, the css can be found here. Centering is in style.
> 
> <http://www.test.entourage.mvps.org/css/>


Ok, I downloaded the...
<http://www.test.entourage.mvps.org/faq/index5.html>
...and linked it directly to your online stylesheets, and got centered
<h2>s.

It's specificity alright, as changing the style in the page-head to...
#main h2 { text-align: left; }
...fixed it perfectly.


Regarding the @import confusion:
I think maybe it's your software that's messing things up a bit.
The html comments " <-- --> " that are used in your style-element...

<style type="text/css" media="screen"><!--
[EMAIL PROTECTED] and styles here...
--></style>

...should not be used - especially with an xhtml doctype, and may
possibly prevent the software from changing the addresses during upload.
You won't see that since the @import addresses still point to your hard
disk, so you get a fully styles page at your end. No-one else does though.

This is a style-element in xhtml 1.0 with correctly "commented" styles...

<style type="text/css">
/*<![CDATA[*/
[EMAIL PROTECTED] and other styles here...
/*]]>*/
</style>

...and for a document that will never be served as anything but
'text/html' it should do as...

<style type="text/css">
[EMAIL PROTECTED] and other styles here...
</style>

...for all but the oldest and most obsolete browsers.


Finally:
There's nothing to gain from using @import in the page itself, and I
only use @import in stylesheets. The style-element makes sense to use
for single-page changes - like you have used it for, but should then
only contain the necessary styles and might in your case look like this...

<style type="text/css">
/*<![CDATA[*/
#main h2 { text-align: left; }
/*]]>*/
</style>

I would probably use the link-elements - like you already use them in
other pages - for linking stylesheets, and I expect all software to be
able to sort out the addresses with those during upload.

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to