Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: embed css help  (Read 10200 times)

0 Members and 1 Guest are viewing this topic.

kpac

  • Web moderator
  • Moderator


  • Hacker

  • kpac®
  • Thanked: 184
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 7
Re: embed css help
« Reply #15 on: March 26, 2010, 10:36:05 AM »
No. <p1> and <p2> are not HTML tags. CSS can only style HTML elements.

Here's what you can do.
Code: [Select]
<html>
<head>
  <style type="text/css">
    p#paragraph1 {
      font-size:14px;
      font-family:times new roman;
    }
    p#paragraph2 {
      font-size:20px;
      font-family:times new roman;
    }
  </style>
</head>

<body>
  <p id="paragraph1">Some text</p>
  <p id="paragraph2">Some more text</p>
</body>
</html>

In the CSS, p#paragraph1 sets the style for the <p> HTML element with an id of "paragraph1". You can do this for all HTML elements.

nymph4

    Topic Starter


    Specialist

    Re: embed css help
    « Reply #16 on: March 26, 2010, 02:37:41 PM »
    what I ment was  the P1   and  P2   tags in the  style code in the  Head Tags   gave  name to  my two  diferant  paragraphs.

    And as long as I use the  P1   and  P2   it will know what one get the diferant  font  size and so on  because it is told in the Head Tags??

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: embed css help
    « Reply #17 on: March 26, 2010, 07:23:29 PM »
    Anybody order a Noose?
    I was trying to dereference Null Pointers before it was cool.

    kpac

    • Web moderator
    • Moderator


    • Hacker

    • kpac®
    • Thanked: 184
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 7
    Re: embed css help
    « Reply #18 on: March 27, 2010, 05:53:51 AM »
    Quote
    And as long as I use the  P1   and  P2   it will know what one get the diferant  font  size and so on  because it is told in the Head Tags??
    NO.

    Quote
    <p1> and <p2> are not HTML tags.

    nymph4

      Topic Starter


      Specialist

      Re: embed css help
      « Reply #19 on: March 27, 2010, 08:45:18 AM »
      I am talking about  css   not htmle

      kpac

      • Web moderator
      • Moderator


      • Hacker

      • kpac®
      • Thanked: 184
        • Yes
        • Yes
        • Yes
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 7
      Re: embed css help
      « Reply #20 on: March 27, 2010, 08:51:34 AM »
      So.....what does CSS do? Styles HTML elements. If the HTML element does not exist, how can CSS style it?

      http://www.w3schools.com/css/ - READ IT from start to finish.

      nymph4

        Topic Starter


        Specialist

        Re: embed css help
        « Reply #21 on: March 27, 2010, 09:32:06 AM »
        I can't read the web pages on the site you just gave me   and I sould have told you this before.
        They come up  and  are  moviing very Gerky  and it does not work  well.
        Do you have onother web site for this  css  but one that is very very  step by step  of the way?????????????

        kpac

        • Web moderator
        • Moderator


        • Hacker

        • kpac®
        • Thanked: 184
          • Yes
          • Yes
          • Yes
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 7
        Re: embed css help
        « Reply #22 on: March 27, 2010, 09:44:46 AM »

        nymph4

          Topic Starter


          Specialist

          Re: embed css help
          « Reply #23 on: March 27, 2010, 11:00:53 AM »
          are this chapters on the side???

          I clicked on the video but you have to pay

          kpac

          • Web moderator
          • Moderator


          • Hacker

          • kpac®
          • Thanked: 184
            • Yes
            • Yes
            • Yes
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 7
          Re: embed css help
          « Reply #24 on: March 27, 2010, 11:25:27 AM »
          http://www.cssbasics.com/introduction-to-css/ - On the right. When you're finished, go to chapter 2.

          nymph4

            Topic Starter


            Specialist

            Re: embed css help
            « Reply #25 on: March 27, 2010, 11:45:21 AM »
            thanks I see them