# Is there something wrong here?

**URL:** <https://forum.kirupa.com/t/is-there-something-wrong-here/65346>\
**Category:** web dev\
**Created:** [September 25, 2004, 7:46am UTC](https://forum.kirupa.com/t/is-there-something-wrong-here/65346 "2004-09-25T07:46:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![minimalistik](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@minimalistik](https://forum.kirupa.com/u/minimalistik)\
**Post date:** [September 25, 2004, 7:46am UTC](https://forum.kirupa.com/t/is-there-something-wrong-here/65346/1 "2004-09-25T07:46:56Z")

</div>

I started using divs and I write the initial coding. Saved the css and the html page but when I preview it, it doesnt seem to work. ?

Heres the css coding:

```auto

body (
background-color: #999999
font-family:verdana, sans-serif; color: #000000; font-size: small; line-height: 1.6em
}
#main {
width: 538px;
height: 400px;
margin: 35px auto;
text-align: left;
}

```

and here is the html page:

```auto

<head>
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="C:\Documents and Settings\Owner\Desktop\css3.css">
</head>
<body>
<div id="main">
<p>hello</p>
</div>
</body>
</html>

```

the result is just a white/blank colored bg and left-aligned text of “hello” thats in Times New Roman when I specified it to be verdana above where set it to Verdana.

Whats wrong?

edit: its C:\Documents and Settings\Owner\Desktop\css3.css (couldnt get it fixed above.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 25, 2004, 2:35pm UTC](https://forum.kirupa.com/t/is-there-something-wrong-here/65346/2 "2004-09-25T14:35:08Z")

</div>

First of, when trying out css it’s best to put the whole thing into the HTML for easy editing. Second, _never forget the ; at the end!_. Thirdly , a ( is different from a {.

```auto

<html>
<head>

<title>Untitled Document</title>

<style type="text/css">
body {
background-color: #999999;
font-family:verdana, sans-serif;
color: #FF0;
font-size: small;
line-height: 1.6em;
}

#main {
width: 538px;
height: 400px;
margin: 35px auto;
text-align: left;
}
</style>
</head>

<body>
<div id="main">
<p>hello</p>
</div>
</body>
</html>

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 25, 2004, 8:12pm UTC](https://forum.kirupa.com/t/is-there-something-wrong-here/65346/3 "2004-09-25T20:12:55Z")

</div>

Nay! I say use the \<link\> tagimagine you have 20 web pages, and the css is:

```html
body {
 bgcolor="#FFF";
 }

```

And then you decide to make your site have a blue background. Imagine the annoyance!  
running them all through one file is much more accesable.

MINIMALISTIK.  
Two problems:  
[list=1]  
[_]as [m] said, don’t forget your semi-colons  
[_]and its much easier to work your website in a root folder, notice the link in your HMTL, missing a slash, just stick them in a folder called Root or Website or w/e.  
[/list] [indent]\> Website (folder)  
[indent]\> css3.css

> index.html  
> [/indent] [/indent] Then your link tag can just be as follows:

```html
<link rel="stylesheet" type="text/css" href="css3.css" />

```

Remember, organisation and a good proof reader are the key to succesful coding!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 26, 2004, 5:31am UTC](https://forum.kirupa.com/t/is-there-something-wrong-here/65346/4 "2004-09-26T05:31:11Z")

</div>

> 

as [m] said, don’t forget your semi-colons  
and its much easier to work your website in a root folder, notice the link in your HMTL, missing a slash, just stick them in a folder called Root or Website or w/e.  
\> Website (folder)  
\> css3.css  
\> index.html

Didnt see the ( instead of the { so thanks. I would have placed it in a root folder but im schelduled for a reformat so I moved the root folder. I didnt have a slash as I said above, when I posted this thread, it didnt appear.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 26, 2004, 1:43pm UTC](https://forum.kirupa.com/t/is-there-something-wrong-here/65346/5 "2004-09-26T13:43:14Z")

</div>

> [@Halikidiki](#):
>
> Nay! I say use the \<link\> tagimagine you have 20 web pages, and the css is:
> 
> ```html
> body {
> bgcolor="#FFF";
> }
> 
> ```
> 
> And then you decide to make your site have a blue background. Imagine the annoyance!  
> running them all through one file is much more accesable.

I can’t argue with that logic! But I said “_when trying out css_”. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 26, 2004, 1:55pm UTC](https://forum.kirupa.com/t/is-there-something-wrong-here/65346/6 "2004-09-26T13:55:41Z")

</div>

Gawd\*mn, it’s that bloody selective vision again…:ro:

/me hits head

Ah that’s better… 🙂

[EDIT] nice filter system, but is d.a.m.n really that bad?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 27, 2004, 1:24am UTC](https://forum.kirupa.com/t/is-there-something-wrong-here/65346/7 "2004-09-27T01:24:12Z")

</div>

try danm! 😉
