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 10226 times)

0 Members and 1 Guest are viewing this topic.

nymph4

    Topic Starter


    Specialist

    embed css help
    « on: March 17, 2010, 01:12:56 PM »
    Amd I right that this Code goes between the HEAD  Tags

    <style  TYPE="text/css">
    <!--

    And this Code goes between the BODY Tags

    background: black;
    color: white;
    a:link color: white;
    a:visited color: blue;


    And this Code meen this

    background: black;        tells the page bacground color
    color: white;                   this tells the text color
    a:link color: white;        this tells a link what color to be
    a:visited color: blue;       this tell a visited link what color to be

    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 #1 on: March 17, 2010, 05:19:03 PM »
    No.

    have you read ANY of the documentation about this stuff?
    I was trying to dereference Null Pointers before it was cool.

    nymph4

      Topic Starter


      Specialist

      Re: embed css help
      « Reply #2 on: March 17, 2010, 09:22:50 PM »
      I think I am getting Embeded  CSS

      If I put this inbetween the HEAD  Tags

      <style type="text/css">
      <!--
      p {font-family: helvetica, impact, sans-serif;}
      -->
      </style>


      Then any were that I have text in the BOADY  Tags   before I start typing  I put a   P
      the text will use    font-family: helvetica, impact, sans-serif;

      Am I right

      Or do you have to put P1   and  P2

      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 #3 on: March 18, 2010, 10:49:48 AM »
      Quote
      Am I right
      Yes, you are.

      nymph4

        Topic Starter


        Specialist

        Re: embed css help
        « Reply #4 on: March 18, 2010, 11:33:15 AM »
        So before I start typing I type  P      or do I type   <P>   and wen I am doen the typing I end it </P>

        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 #5 on: March 18, 2010, 12:02:04 PM »
        So before I start typing I type  P      or do I type   <P>   and wen I am doen the typing I end it </P>
        Yes, now you can just forget about the CSS and write normal HTML.

        nymph4

          Topic Starter


          Specialist

          Re: embed css help
          « Reply #6 on: March 18, 2010, 01:31:01 PM »
          ok so this

          <style type="text/css">
          <!--
          p {font-family: helvetica, impact, sans-serif;}
          -->
          </style>

          is good for the font type  now what if I want to set the font size and color would I do this.

          <style type="text/css">
          <!--
          p {font-family: helvetica, impact, sans-serif;}
             {color: white;}
             {width: 15px;}
          -->
          </style>

          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 #7 on: March 18, 2010, 01:38:05 PM »
          Quote
          is good for the font type  now what if I want to set the font size and color would I do this.
          No, this:

          Code: [Select]
          <style type="text/css">
          <!--
          p {
             font-family: helvetica, impact, sans-serif;
             color: white;
             width: 15px;
          }
          -->
          </style>
          The brackets go around the HTML element tag you are applying the style to, in this case "p".

          nymph4

            Topic Starter


            Specialist

            Re: embed css help
            « Reply #8 on: March 18, 2010, 02:00:32 PM »
            I think I am getting it now.
            So what if I have two Pareagraphs and I want them both to have diferant sizes I do this.

            <style type="text/css">
            <!--
            p1 {
               font-family: helvetica, impact, sans-serif;
               color: white;
               width: 14px;
            }
            p2 {
               font-family: helvetica, impact, sans-serif;
               color: white;
               width: 20px;
            -->
            </style>

            nymph4

              Topic Starter


              Specialist

              Re: embed css help
              « Reply #9 on: March 18, 2010, 09:17:22 PM »
              anyone

              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 #10 on: March 19, 2010, 11:35:34 AM »
              Stop bumping the topic. It's only been one day.

              Quote
              So what if I have two Pareagraphs and I want them both to have diferant sizes I do this.
              No.

              I gave you this link before....http://w3schools.com/css/......did you read all the tutorial?

              nymph4

                Topic Starter


                Specialist

                Re: embed css help
                « Reply #11 on: March 23, 2010, 11:48:46 AM »
                Wen you use the <div style=  tags  and ad  font family  and size and so on  these tags are called  Inline  css???

                And one thing I am trying to get the hang of  css  and I thought I would start with the  <div tags  because it is just  little code you ad here and there.

                But take  HTML  to make text a certain size type and so on the code would be  something like this.
                <font size="6" font type  times new roman?

                I know I am off on this  I just want to  show you what I meen.

                Now with <div it would be
                <div style="text decoration none: font family; times new roman; size 15: color  wight">

                Now I also know I am a little off here to  but  I just want to ask  css  seems like it goes on and on  and  HTML  just had like one line   and  thats that.

                What am I not getting or understanding???

                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 #12 on: March 23, 2010, 11:54:48 AM »
                What.....

                nymph4

                  Topic Starter


                  Specialist

                  Re: embed css help
                  « Reply #13 on: March 23, 2010, 04:36:54 PM »
                  I just need to know if I understand this?

                  <STYLE TYPE-"type/css">

                  <!--
                  BODY {background: #FFFFFF}
                  A:link {color: #80FF00}
                  A:visited {color: #FF00FF}
                  H1 {font-size: 24pt; font-family: arial}
                  H2 {font-size: 18pt; font-family: braggadocio}
                  H3 {font size:14pt; font-family: desdemona}
                  -->

                  </STYLE>

                  Wen I start typing in the body  if I give <H1  a font type  and  <H2  a diferant font type  and so on  as long as I have them all  defind like above  they will all be handeled with diferant fonts and so on??

                  This is how I can give  P1   and if I have P2  and they are two diferant types of font  and size   I just make sure they are  listed and handeled in the  above Style  section  right????

                  nymph4

                    Topic Starter


                    Specialist

                    Re: embed css help
                    « Reply #14 on: March 25, 2010, 06:32:05 PM »
                    if I am on the right train of thought then if I want have two paragraphs and I want eatch one to have a diferant pixal size then I do this


                    <style type="text.css">
                    <!--
                    body{bacground:#ffffff}
                    a:link{color:#80ff00}
                    a:visited{color:#ff00ff}
                    P1{font-size:14px;font-family:times new roman}
                    P2{font-size:20px;font-family:times new roman}
                    -->
                    </style>

                    Then in the <body> tags befor I type my first paragraph I type
                    <P1> then I type the text and end it </P1>

                    Then wen I type my secound paragraph before I type it I type
                    <P2> then I type my text and end it </P2>

                    Am I right again??