Login Register


I Don't Understand Why filter_list
Author
Message
I Don't Understand Why #1
So I am coding a HTML website. I know basic HTML don't anything fancier like java scripts or css
So I wanted to try HTML and CSS and it don't seem to be working in any way.
I checked my work like ten times to make sure I have set up everything right. I linked stylesheet with index it don't seemed to be working then I tried to put CSS code inside of Index.htm still did not work. I am totally lost Biggrin I may sound stupid that I don't know such a simple thing. But I tried lots of ways and my css code is just not working.
Don't laugh from me. Biggrin

Reply

RE: I Don't Understand Why #2
Could you please show us your code so we can help?
and you could try this code to start with (CSS is in the header)
Code:
<!DOCTYPE html> <html> <head> <style> body {background-color:#b0c4de;} </style> </head> <body> <h1>CSS Testing</h1> <p>This is my not so hot body ... </p> </body> </html>

Thanks...
[Image: wvBFmA5.png]

Reply

RE: I Don't Understand Why #3
Post your code and we will be able to help you dude Smile I already faced this problem when I tried to use CSS for the first time

Did you put the CSS file in the same folder with the html file ?

Reply

RE: I Don't Understand Why #4
@hunt3r972
@Ligeti
I haven't wrote a code yet. But as long as I have tried on my previous website it did not worked.
I'd like to ask does the CSS code must be in seperate Styles sheet or it can be in the same index.htm sheet?

Reply

RE: I Don't Understand Why #5
(02-03-2014, 07:05 PM)Clevaro Wrote: @hunt3r972
@Ligeti
I haven't wrote a code yet. But as long as I have tried on my previous website it did not worked.
I'd like to ask does the CSS code must be in seperate Styles sheet or it can be in the same index.htm sheet?

Best thing to do is have your CSS lines in a seperate .css file.
Although you CAN also place the css inline in a HTML file by the following;
Code:
<style> #div { color:red; } </style>

You can link the CSS file by the following line;
<link href="path/to/css.css" rel="stylesheet">

What browser are you using?
I recommend using chrome, I love their dev console.
Press F12 when you have Chrome opened.

Reply

RE: I Don't Understand Why #6
(02-03-2014, 07:30 PM)bluedog.tar.gz Wrote:
(02-03-2014, 07:05 PM)Clevaro Wrote: @hunt3r972
@Ligeti
I haven't wrote a code yet. But as long as I have tried on my previous website it did not worked.
I'd like to ask does the CSS code must be in seperate Styles sheet or it can be in the same index.htm sheet?

Best thing to do is have your CSS lines in a seperate .css file.
Although you CAN also place the css inline in a HTML file by the following;
Code:
<style> #div { color:red; } </style>

You can link the CSS file by the following line;
<link href="path/to/css.css" rel="stylesheet">

What browser are you using?
I recommend using chrome, I love their dev console.
Press F12 when you have Chrome opened.
The thing is that I linked my css then wrote the code in stylesheet and that code didn't seem to work.

I use Opera I like it more than Chrome because of its Speed Dial. Biggrin
But I have chrome as well.

Reply

RE: I Don't Understand Why #7
Check your console, look for errors.
Also would you mind publishing the file?

That way I can take a look.

Reply







Users browsing this thread: 1 Guest(s)