TICKET ARCHIVE -> Cascading Syle Sheets/ Apache And Safari
ruffyleaf - Oct 9, 2005 - 4:04 am
Hello!
I'm trying to create a few webpages to run on Apache. However, I'm getting quite frustrated with using CSS.
After I do a
and try to run the page, the formatting does not come through. I had to re-write my HTML document several times, and out of the blue suddenly it is able to work. But not all pages end up like that.
Is there some bug or something? Or am I not doing some conventions correctly?
Thanks for your help in advance!!!
I'm using Apache 2.0.54.
I use EMACS editor.
snipper - Oct 9, 2005 - 10:48 am
Hello Maximilian,
Ironically, your quote is invisible in your message. However, now I look at it in the Threading system, it becomes visible again! You lucky you!
Anyway, the first thing that gets my attention, it that you don't use use double quotes around the name of the ref and the file you point the href.
For example, Dreamweaver would produce your line like:
Regards,
snipper
snipper - Oct 9, 2005 - 10:49 am
Duh.. of course this gets invisible to!
Well, this is what it looks like when you use straight brackets instead of sharp ones;
BTW of course YOU should change the brackets back to sharp ones, like HTML uses.
link href="mycss.css" rel="stylesheet" type="text/css"
ruffyleaf - Oct 11, 2005 - 7:05 pm
HEllo Snipper,
thanks for the info mate!!! That's all working now. But now another page is not working properly. I was doing a bit more reading up on WC3 page, and there's this thing about quirks?
I'm suspecting that's what's happening. On my mac, the formatting comes out alright on Safari. However, at work, i've installed HPUnix Apache Web Server, and the formatting doesn't come out right on IE.
I read on further, and noticed that you have to put in the !DOCTYPE to be strict in order for the CSS to be strictly followed. I have yet to try it...
Hope that works!!!
snipper - Oct 12, 2005 - 3:37 am
Hi Maximilian,
Of course, the goal of the W3 project is a noble one: Trying to unify the non-standard HTML. However, the realitiy is hard to dictate..
For example: I don't think browsers will look at the doctype before they interpret the CSS. I HAVE experienced personally though, that a Flash.swf' position was misinterpreted by Firefox, because of the W3 doctype at the top of the HTML file it was in. Deleting the doctype was enough to fix the projection of the flash file.
BTW the flavour of webserver doesn't really matter on this basic level. This is something between the file and the browser. You may run into the problem that some characters arn't interpreted properly when you save them in the wrong text format, but that's about it (use UTF-8 so you can use all kinds of weird characters when you need them). The webserver just passes the txt file.
Regards,
snipper
IF THIS IS YOUR QUESTION AND YOU WISH TO RESPOND, LOGIN HERE FIRST.