CSS problem...
am 15.04.2008 15:44:51 von Matthew Wells
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@FirstByte.net
Re: CSS problem...
am 15.04.2008 16:51:53 von Gerry
try hitting your browser refresh.
"Matthew Wells" wrote 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@FirstByte.net
>
>
Re: CSS problem...
am 15.04.2008 17:35:27 von Ghostman
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"
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
Re: CSS problem...
am 15.04.2008 17:45:26 von Matthew Wells
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" wrote in message
news:95f59e30-de03-4a88-b3a1-65e453afc3a9@a23g2000hsc.google groups.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"
> 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
>
Re: CSS problem...
am 15.04.2008 17:58:43 von David Wier
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://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
"Matthew Wells" wrote in message
news:k6mdnV4mUeY_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" wrote in message
> news:95f59e30-de03-4a88-b3a1-65e453afc3a9@a23g2000hsc.google groups.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"
>> 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
>>
>
>
Re: CSS problem...
am 15.04.2008 18:24:36 von NoSpamMgbworld
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
http://gregorybeamer.spaces.live.com/lists/feed.rss
or just read it:
http://gregorybeamer.spaces.live.com/
*************************************************
| Think outside the box!
|
*************************************************
"Matthew Wells" wrote 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@FirstByte.net
>
>
Re: CSS problem...
am 15.04.2008 18:46:31 von Matthew Wells
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" wrote in message
news:ux26$gwnIHA.1188@TK2MSFTNGP04.phx.gbl...
> try hitting your browser refresh.
>
>
> "Matthew Wells" wrote 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@FirstByte.net
>>
>>
>
>
Re: CSS problem...
am 15.04.2008 18:52:32 von Matthew Wells
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)" wrote in
message news:u0y$0UxnIHA.4712@TK2MSFTNGP04.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
> http://gregorybeamer.spaces.live.com/lists/feed.rss
>
> or just read it:
> http://gregorybeamer.spaces.live.com/
>
> *************************************************
> | Think outside the box! |
> *************************************************
> "Matthew Wells" wrote 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@FirstByte.net
>>
>>
>
>
Re: CSS problem...
am 15.04.2008 18:53:09 von Matthew Wells
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" wrote in message
news:%23Pt6UGxnIHA.6032@TK2MSFTNGP03.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://aspnet101.com
> http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with
> no bloated markup
>
>
> "Matthew Wells" wrote in message
> news:k6mdnV4mUeY_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" wrote in message
>> news:95f59e30-de03-4a88-b3a1-65e453afc3a9@a23g2000hsc.google groups.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"
>>> 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
>>>
>>
>>
>
>