Results 1 to 3 of 3

Thread: beginner to CSS

  1. #1
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default beginner to CSS

    Can any kind soul help someone completely new to CSS.
    I am using serif web 9 which gives the user the choice of inserting code in head or body. No problem with html or javascriopt but where do I put the css code and if there is html code as well do they go together?
    Apologies if this sounds stupid but, as I say I am trying to learn.
    Gell

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    You could place CSS code in the HTML, between the head tags. Take a look at the following example.

    Code:
    <html>
    <head>
    
    <style>
      /* CSS HERE */
    </style>
    
    </head>
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yes, css generally goes in or linked to the head of the page and in fact, unless it is inline style in the HTML tag that it applies to, technically it can only go in the head but, most browsers will allow it in the body section.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •