Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. adding colors css file?

adding colors css file?

Scheduled Pinned Locked Moved Web Development
questioncssjson
5 Posts 4 Posters 26 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    auting82
    wrote on last edited by
    #1

    This is a newbie question, how do I add color only on top of my web page, the rest should remain white..

    L K W 4 Replies Last reply
    0
    • A auting82

      This is a newbie question, how do I add color only on top of my web page, the rest should remain white..

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Colors Tutorial[^]

      1 Reply Last reply
      0
      • A auting82

        This is a newbie question, how do I add color only on top of my web page, the rest should remain white..

        K Offline
        K Offline
        kyrosdigitalmarketing
        wrote on last edited by
        #3

        I don't know but I have also doubt about the same problem. but my website design by[

        WordPress

        ](https://kyrosdigital.in)how to add colors.

        1 Reply Last reply
        0
        • A auting82

          This is a newbie question, how do I add color only on top of my web page, the rest should remain white..

          K Offline
          K Offline
          kyrosdigitalmarketing
          wrote on last edited by
          #4

          I don't know but I have also doubt about the same problem. but my website designed by[

          WordPress

          ](https://kyrosdigital.in).how add a color?

          1 Reply Last reply
          0
          • A auting82

            This is a newbie question, how do I add color only on top of my web page, the rest should remain white..

            W Offline
            W Offline
            W Balboos GHB
            wrote on last edited by
            #5

            When you set a color or background-color style it applies to the items contained in that element. Your entire page is a <body> element and so if you change the color at that level the entire page is effected. Now if you create an element within the body, like a <div>, you can control it's styles by putting them in that div. It will then not be spread to the entire page. OK - now the only thing left for you to do. If you want the top of the page to be one color and the rest of the page to not be affected, you can put that div element at the top of the page. Color it. Put text in it. Put images in it. Anything you want. It's actually extremely common (probably why you want to do it) - becomes a page header, visually.

            Ravings en masse^

            "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

            "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups