Re: trouble including css into the html

Discussion in 'HTML' started by Adrienne Boswell, May 10, 2010.

  1. Gazing into my crystal ball I observed "Jeff"
    <> writing in
    news::

    > hi
    >
    > Below you see the html and css of my site. The problem is that I don't
    > see any effect of the css on the layout of the page. hence the css has
    > no effect. I'm not sure what causes this., you got any suggestions?
    >
    > the html and css validates
    >
    >
    > html:
    > <div id="content">
    > content
    > </div>


    > css:
    > .content
    > {
    > width:800px;
    > margin-left:auto;
    > margin-right:auto;
    > background-color:#ccddee;
    > }
    >


    You have content defined as a class, and you are using id in the markup.
    But you knew that, didn't you?

    --
    Adrienne Boswell at Home
    Arbpen Web Site Design Services
    http://www.cavalcade-of-coding.info
    Please respond to the group so others can share
    Adrienne Boswell, May 10, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Titus A Ducksass - AKA broken-record
    Replies:
    6
    Views:
    649
    Titus A Ducksass - AKA broken-record
    Nov 15, 2004
  2. Marcelo Gosling

    Trouble including Python.h

    Marcelo Gosling, Jun 23, 2006, in forum: Python
    Replies:
    5
    Views:
    399
    Tim Roberts
    Jun 24, 2006
  3. Venkatesh
    Replies:
    4
    Views:
    1,950
    Daniel Pitts
    Dec 19, 2006
  4. Beauregard T. Shagnasty

    Re: trouble including css into the html

    Beauregard T. Shagnasty, May 10, 2010, in forum: HTML
    Replies:
    0
    Views:
    424
    Beauregard T. Shagnasty
    May 10, 2010
  5. Ralf Koms
    Replies:
    4
    Views:
    146
    Ralf Koms
    Oct 12, 2004
Loading...

Share This Page