CSS problem...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matthew Wells

    #1

    CSS problem...

    Hello

    I'm using VS 2005 for ASP.net 2.0 on WinXP Pro. I have all the latest
    updates. I have the css in my master page and I know it's linked because
    other parts of the page work. When I make changes to my css, I don't see
    the changes. I'm only using one selector for testing.

    input
    {
    background-color:Green;
    }

    I got this to work, then I tried

    input
    {
    background-color:White;
    }

    It stays green!!! I've tried rebuilding the site, restarting vs, restarting
    IIS, and evnn estarting the computer - nothing. Also, when I try using
    attributes, I don't see the changes in the designer.

    input[type="text"]
    {
    background-color:White;
    }

    What do I do to have the css changes take effect?

    Thanks.

    --

    Matthew Wells
    Matthew.Wells@F irstByte.net


  • gerry

    #2
    Re: CSS problem...

    try hitting your browser refresh.


    "Matthew Wells" <Matthew.Wells@ FirstByte.netwr ote in message
    news:svKdnWKst_ DOLJnVnZ2dnUVZ_ tyknZ2d@comcast .com...
    Hello
    >
    I'm using VS 2005 for ASP.net 2.0 on WinXP Pro. I have all the latest
    updates. I have the css in my master page and I know it's linked because
    other parts of the page work. When I make changes to my css, I don't see
    the changes. I'm only using one selector for testing.
    >
    input
    {
    background-color:Green;
    }
    >
    I got this to work, then I tried
    >
    input
    {
    background-color:White;
    }
    >
    It stays green!!! I've tried rebuilding the site, restarting vs,
    restarting IIS, and evnn estarting the computer - nothing. Also, when I
    try using attributes, I don't see the changes in the designer.
    >
    input[type="text"]
    {
    background-color:White;
    }
    >
    What do I do to have the css changes take effect?
    >
    Thanks.
    >
    --
    >
    Matthew Wells
    Matthew.Wells@F irstByte.net
    >
    >

    Comment

    • Ghostman

      #3
      Re: CSS problem...

      After you run the page, view the source in your browser and see if the
      stylesheet is actually being applied to the page.

      On Apr 15, 9:44 am, "Matthew Wells" <Matthew.We...@ FirstByte.net>
      wrote:
      Hello
      >
      I'm using VS 2005 for ASP.net 2.0 on WinXP Pro. I have all the latest
      updates. I have the css in my master page and I know it's linked because
      other parts of the page work. When I make changes to my css, I don't see
      the changes. I'm only using one selector for testing.
      >
      input
      {
      background-color:Green;
      >
      }
      >
      I got this to work, then I tried
      >
      input
      {
      background-color:White;
      >
      }
      >
      It stays green!!! I've tried rebuilding the site, restarting vs, restarting
      IIS, and evnn estarting the computer - nothing. Also, when I try using
      attributes, I don't see the changes in the designer.
      >
      input[type="text"]
      {
      background-color:White;
      >
      }
      >
      What do I do to have the css changes take effect?
      >
      Thanks.
      >
      --
      >
      Matthew Wells
      Matthew.We...@F irstByte.net

      Comment

      • Matthew Wells

        #4
        Re: CSS problem...

        As I said, I know that the sheet is being applied because other parts are
        working. I don't have "input" referenced anywhere else - and it's GREEN -
        something is being applied. I can add a height setting and see it applied
        in design view, but not when it runs. I close IE and reopen it every time.




        "Ghostman" <rob.bittner@gm ail.comwrote in message
        news:95f59e30-de03-4a88-b3a1-65e453afc3a9@a2 3g2000hsc.googl egroups.com...
        After you run the page, view the source in your browser and see if the
        stylesheet is actually being applied to the page.
        >
        On Apr 15, 9:44 am, "Matthew Wells" <Matthew.We...@ FirstByte.net>
        wrote:
        >Hello
        >>
        > I'm using VS 2005 for ASP.net 2.0 on WinXP Pro. I have all the
        >latest
        >updates. I have the css in my master page and I know it's linked because
        >other parts of the page work. When I make changes to my css, I don't see
        >the changes. I'm only using one selector for testing.
        >>
        >input
        >{
        > background-color:Green;
        >>
        >}
        >>
        >I got this to work, then I tried
        >>
        >input
        >{
        > background-color:White;
        >>
        >}
        >>
        >It stays green!!! I've tried rebuilding the site, restarting vs,
        >restarting
        >IIS, and evnn estarting the computer - nothing. Also, when I try using
        >attributes, I don't see the changes in the designer.
        >>
        >input[type="text"]
        >{
        > background-color:White;
        >>
        >}
        >>
        >What do I do to have the css changes take effect?
        >>
        >Thanks.
        >>
        >--
        >>
        >Matthew Wells
        >Matthew.We...@ FirstByte.net
        >

        Comment

        • David Wier

          #5
          Re: CSS problem...

          I have a premise I use every time something keeps happening that I know
          should work.
          I reboot the computer.

          You'd be surprised at how many times, it's kept me from pulling my hair out
          (and I need to keep the little I have, at this point)


          David Wier

          http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
          bloated markup


          "Matthew Wells" <Matthew.Wells@ FirstByte.netwr ote in message
          news:k6mdnV4mUe Y_UJnVnZ2dnUVZ_ uWlnZ2d@comcast .com...
          As I said, I know that the sheet is being applied because other parts are
          working. I don't have "input" referenced anywhere else - and it's GREEN -
          something is being applied. I can add a height setting and see it applied
          in design view, but not when it runs. I close IE and reopen it every
          time.
          >
          >
          >
          >
          "Ghostman" <rob.bittner@gm ail.comwrote in message
          news:95f59e30-de03-4a88-b3a1-65e453afc3a9@a2 3g2000hsc.googl egroups.com...
          >After you run the page, view the source in your browser and see if the
          >stylesheet is actually being applied to the page.
          >>
          >On Apr 15, 9:44 am, "Matthew Wells" <Matthew.We...@ FirstByte.net>
          >wrote:
          >>Hello
          >>>
          >> I'm using VS 2005 for ASP.net 2.0 on WinXP Pro. I have all the
          >>latest
          >>updates. I have the css in my master page and I know it's linked
          >>because
          >>other parts of the page work. When I make changes to my css, I don't
          >>see
          >>the changes. I'm only using one selector for testing.
          >>>
          >>input
          >>{
          >> background-color:Green;
          >>>
          >>}
          >>>
          >>I got this to work, then I tried
          >>>
          >>input
          >>{
          >> background-color:White;
          >>>
          >>}
          >>>
          >>It stays green!!! I've tried rebuilding the site, restarting vs,
          >>restarting
          >>IIS, and evnn estarting the computer - nothing. Also, when I try using
          >>attributes, I don't see the changes in the designer.
          >>>
          >>input[type="text"]
          >>{
          >> background-color:White;
          >>>
          >>}
          >>>
          >>What do I do to have the css changes take effect?
          >>>
          >>Thanks.
          >>>
          >>--
          >>>
          >>Matthew Wells
          >>Matthew.We... @FirstByte.net
          >>
          >
          >

          Comment

          • Cowboy \(Gregory A. Beamer\)

            #6
            Re: CSS problem...

            My best advice, with CSS, is download Firefox and then get Firebug. In
            Firebug, you can load a page and go through the elements and find out all of
            the CSS that is applied to a particular element. In many cases, you find
            that you have additional styles that are overriding, due to placement.

            In CSS, the last in wins, so anything lower on the CSS style wins. It is a
            bit more complex than that, but that bites a lot of people, especially when
            you have multiple stylesheets.

            In your case, based on reading the thread, I would make sure you do not have
            a style applied directly to the textbox, as that can be an issue.

            --
            Gregory A. Beamer
            MVP, MCP: +I, SE, SD, DBA

            Subscribe to my blog


            or just read it:


            *************** *************** *************** ****
            | Think outside the box!
            |
            *************** *************** *************** ****
            "Matthew Wells" <Matthew.Wells@ FirstByte.netwr ote in message
            news:svKdnWKst_ DOLJnVnZ2dnUVZ_ tyknZ2d@comcast .com...
            Hello
            >
            I'm using VS 2005 for ASP.net 2.0 on WinXP Pro. I have all the latest
            updates. I have the css in my master page and I know it's linked because
            other parts of the page work. When I make changes to my css, I don't see
            the changes. I'm only using one selector for testing.
            >
            input
            {
            background-color:Green;
            }
            >
            I got this to work, then I tried
            >
            input
            {
            background-color:White;
            }
            >
            It stays green!!! I've tried rebuilding the site, restarting vs,
            restarting IIS, and evnn estarting the computer - nothing. Also, when I
            try using attributes, I don't see the changes in the designer.
            >
            input[type="text"]
            {
            background-color:White;
            }
            >
            What do I do to have the css changes take effect?
            >
            Thanks.
            >
            --
            >
            Matthew Wells
            Matthew.Wells@F irstByte.net
            >
            >

            Comment

            • Matthew Wells

              #7
              Re: CSS problem...

              I laughrd when I read this. Then I figured it was worth a try. It worked!!
              I apologize. It seems like I only need to do this for some things - like
              back color. Font size sems to take effect right away.

              Why do I have to do this? Is there a way to do this automatically?

              Also,

              Why don't I see settings applied in design view when I add an attribute to a
              selector?

              Thanks.




              "gerry" <germ@newsgroup .nospamwrote in message
              news:ux26$gwnIH A.1188@TK2MSFTN GP04.phx.gbl...
              try hitting your browser refresh.
              >
              >
              "Matthew Wells" <Matthew.Wells@ FirstByte.netwr ote in message
              news:svKdnWKst_ DOLJnVnZ2dnUVZ_ tyknZ2d@comcast .com...
              >Hello
              >>
              > I'm using VS 2005 for ASP.net 2.0 on WinXP Pro. I have all the latest
              >updates. I have the css in my master page and I know it's linked because
              >other parts of the page work. When I make changes to my css, I don't see
              >the changes. I'm only using one selector for testing.
              >>
              >input
              >{
              > background-color:Green;
              >}
              >>
              >I got this to work, then I tried
              >>
              >input
              >{
              > background-color:White;
              >}
              >>
              >It stays green!!! I've tried rebuilding the site, restarting vs,
              >restarting IIS, and evnn estarting the computer - nothing. Also, when I
              >try using attributes, I don't see the changes in the designer.
              >>
              >input[type="text"]
              >{
              > background-color:White;
              >}
              >>
              >What do I do to have the css changes take effect?
              >>
              >Thanks.
              >>
              >--
              >>
              >Matthew Wells
              >Matthew.Wells@F irstByte.net
              >>
              >>
              >
              >

              Comment

              • Matthew Wells

                #8
                Re: CSS problem...

                As I said, there were no other styles appled. The solution was given to me
                by another response - refresh the page. I don't know why this isn't done
                automatically when IE starts, but it worked.

                Thanks.



                "Cowboy (Gregory A. Beamer)" <NoSpamMgbworld @comcast.netNoS pamMwrote in
                message news:u0y$0UxnIH A.4712@TK2MSFTN GP04.phx.gbl...
                My best advice, with CSS, is download Firefox and then get Firebug. In
                Firebug, you can load a page and go through the elements and find out all
                of the CSS that is applied to a particular element. In many cases, you
                find that you have additional styles that are overriding, due to
                placement.
                >
                In CSS, the last in wins, so anything lower on the CSS style wins. It is a
                bit more complex than that, but that bites a lot of people, especially
                when you have multiple stylesheets.
                >
                In your case, based on reading the thread, I would make sure you do not
                have a style applied directly to the textbox, as that can be an issue.
                >
                --
                Gregory A. Beamer
                MVP, MCP: +I, SE, SD, DBA
                >
                Subscribe to my blog

                >
                or just read it:

                >
                *************** *************** *************** ****
                | Think outside the box! |
                *************** *************** *************** ****
                "Matthew Wells" <Matthew.Wells@ FirstByte.netwr ote in message
                news:svKdnWKst_ DOLJnVnZ2dnUVZ_ tyknZ2d@comcast .com...
                >Hello
                >>
                > I'm using VS 2005 for ASP.net 2.0 on WinXP Pro. I have all the latest
                >updates. I have the css in my master page and I know it's linked because
                >other parts of the page work. When I make changes to my css, I don't see
                >the changes. I'm only using one selector for testing.
                >>
                >input
                >{
                > background-color:Green;
                >}
                >>
                >I got this to work, then I tried
                >>
                >input
                >{
                > background-color:White;
                >}
                >>
                >It stays green!!! I've tried rebuilding the site, restarting vs,
                >restarting IIS, and evnn estarting the computer - nothing. Also, when I
                >try using attributes, I don't see the changes in the designer.
                >>
                >input[type="text"]
                >{
                > background-color:White;
                >}
                >>
                >What do I do to have the css changes take effect?
                >>
                >Thanks.
                >>
                >--
                >>
                >Matthew Wells
                >Matthew.Wells@F irstByte.net
                >>
                >>
                >
                >

                Comment

                • Matthew Wells

                  #9
                  Re: CSS problem...

                  As I said, I did that. The solution was given to me by another response -
                  refresh the page. I don't know why this isn't done automatically when IE
                  starts, but it worked.

                  Thanks.


                  "David Wier" <dw@dw.comwro te in message
                  news:%23Pt6UGxn IHA.6032@TK2MSF TNGP03.phx.gbl. ..
                  >I have a premise I use every time something keeps happening that I know
                  >should work.
                  I reboot the computer.
                  >
                  You'd be surprised at how many times, it's kept me from pulling my hair
                  out (and I need to keep the little I have, at this point)
                  >
                  >
                  David Wier

                  http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with
                  no bloated markup
                  >
                  >
                  "Matthew Wells" <Matthew.Wells@ FirstByte.netwr ote in message
                  news:k6mdnV4mUe Y_UJnVnZ2dnUVZ_ uWlnZ2d@comcast .com...
                  >As I said, I know that the sheet is being applied because other parts are
                  >working. I don't have "input" referenced anywhere else - and it's
                  >GREEN - something is being applied. I can add a height setting and see
                  >it applied in design view, but not when it runs. I close IE and reopen
                  >it every time.
                  >>
                  >>
                  >>
                  >>
                  >"Ghostman" <rob.bittner@gm ail.comwrote in message
                  >news:95f59e3 0-de03-4a88-b3a1-65e453afc3a9@a2 3g2000hsc.googl egroups.com...
                  >>After you run the page, view the source in your browser and see if the
                  >>stylesheet is actually being applied to the page.
                  >>>
                  >>On Apr 15, 9:44 am, "Matthew Wells" <Matthew.We...@ FirstByte.net>
                  >>wrote:
                  >>>Hello
                  >>>>
                  >>> I'm using VS 2005 for ASP.net 2.0 on WinXP Pro. I have all the
                  >>>latest
                  >>>updates. I have the css in my master page and I know it's linked
                  >>>because
                  >>>other parts of the page work. When I make changes to my css, I don't
                  >>>see
                  >>>the changes. I'm only using one selector for testing.
                  >>>>
                  >>>input
                  >>>{
                  >>> background-color:Green;
                  >>>>
                  >>>}
                  >>>>
                  >>>I got this to work, then I tried
                  >>>>
                  >>>input
                  >>>{
                  >>> background-color:White;
                  >>>>
                  >>>}
                  >>>>
                  >>>It stays green!!! I've tried rebuilding the site, restarting vs,
                  >>>restarting
                  >>>IIS, and evnn estarting the computer - nothing. Also, when I try using
                  >>>attributes , I don't see the changes in the designer.
                  >>>>
                  >>>input[type="text"]
                  >>>{
                  >>> background-color:White;
                  >>>>
                  >>>}
                  >>>>
                  >>>What do I do to have the css changes take effect?
                  >>>>
                  >>>Thanks.
                  >>>>
                  >>>--
                  >>>>
                  >>>Matthew Wells
                  >>>Matthew.We.. .@FirstByte.net
                  >>>
                  >>
                  >>
                  >
                  >

                  Comment

                  Working...