Hi i am kind of new to html and css and was reading the Oreilly head first HTML with css xhtml
but now i have a problem
firefox and ie do not show any css all the html is good
i am only on chapter 1.23.1. Ready Bake CSS
the code is good i cheked it whit W3C CSS Validator.
i just does not show
i am using a apache2.2 server (http://localhost/)
the file is saved as index.html
firefox 3.6.10
IE (i dont know, probely old couse i never updated it)
mabye apache need to know it css just like i needed to type in an extra thingy in httpd.conf for php (also should i make an extra thingy for xhtml in the httpd.conf?)
if anyone could help it would be great!!
<html> <head> <title>starbuzz</title> <style type=”text/css”> body { background-color: #d2b48c; margin-left: 20%; margin-right: 20%; border: 1px dotted gray; padding: 10px 10px 10px 10px; font-family: sans-serif; } </style> </head <body>
and the rest of the html stuff is under here
but not relevant
The problem looks to be in
The problem looks to be in the quotation marks around text/css, they look off, I retyped them and it works fine.
it works thanks a lot!!! it
it works thanks a lot!!!
it was making me crazy i stared 3 hours at it wondering what was wrong
thanks.
Validating would have
Validating would have informed you of the problem.
it was all green and stuff in
it was all green and stuff in the W3C css Validator
but i could have mist it couse it was my first time using the Validator
"Congratulations! No Error Found.
This document validates as CSS level 2.1 !
To show your readers that you've taken the care to create an interoperable Web page, you may display this icon on any page that validates. Here is the XHTML you could use to add this icon to your Web page: "
:shrug: I ran it through
:shrug: I ran it through using the curly quotes and it failed. Don't know.
Jaylow
Congratulations! No Error Found.
This document validates as CSS level 2.1 !
Should have validated the HTML
Deuce wrote: Jaylow
Congratulations! No Error Found.
This document validates as CSS level 2.1 !
Should have validated the HTML
Lulz. I didn't even catch that.
Next time be careful when
Next time be careful when you copy/paste code as this is how this issue arises, see it all the time when people 'grab' example code from sites that have not convert characters incorrectly.
so this is html ? <style
so this is html ? <style type=”text/css”>
and afther that comes css till i end it again whit the </style>
tag ending (that is html also then?)
@hugo i am reading a book (Oreilly head first HTML with css xhtml) and they told me to copy this. couse later on in the book they would do more aboute css but now it was just ready baked for me....
Jaylow wrote: so this is html
so this is html ? <style type=”text/css”>
and afther that comes css till i end it again whit the </style>
tag ending (that is html also then?) ...
Well, what's the file extension of the file containing that snippet?
html. i am happy i am here i
html.
i am happy i am here i learn everday something
thanks
Jaylow wrote:html.i am
html.
i am happy i am here i learn everday something
thanks
To be fair everything inside of the style tag is CSS but the style tag itself is HTML.
HTML goes through http://validator.w3.org
CSS goes through http://jigsaw.w3.org/css-validator/
or just put both through http://validator.w3.org/unicorn/ (I haven't actually used this one yet).