Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CSS problem...

0 views
Skip to first unread message

Matthew Wells

unread,
Apr 15, 2008, 9:44:51 AM4/15/08
to
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
Matthe...@FirstByte.net


gerry

unread,
Apr 15, 2008, 10:51:53 AM4/15/08
to
try hitting your browser refresh.


"Matthew Wells" <Matthe...@FirstByte.net> wrote in message
news:svKdnWKst_DOLJnV...@comcast.com...

Ghostman

unread,
Apr 15, 2008, 11:35:27 AM4/15/08
to
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:

> Matthew.We...@FirstByte.net

Matthew Wells

unread,
Apr 15, 2008, 11:45:26 AM4/15/08
to
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.b...@gmail.com> wrote in message
news:95f59e30-de03-4a88...@a23g2000hsc.googlegroups.com...

David Wier

unread,
Apr 15, 2008, 11:58:43 AM4/15/08
to
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" <Matthe...@FirstByte.net> wrote in message

news:k6mdnV4mUeY_UJnV...@comcast.com...

Cowboy (Gregory A. Beamer)

unread,
Apr 15, 2008, 12:24:36 PM4/15/08
to
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" <Matthe...@FirstByte.net> wrote in message

news:svKdnWKst_DOLJnV...@comcast.com...

Matthew Wells

unread,
Apr 15, 2008, 12:46:31 PM4/15/08
to
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" <ge...@newsgroup.nospam> wrote in message
news:ux26$gwnIH...@TK2MSFTNGP04.phx.gbl...

Matthew Wells

unread,
Apr 15, 2008, 12:52:32 PM4/15/08
to
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)" <NoSpamM...@comcast.netNoSpamM> wrote in
message news:u0y$0UxnIH...@TK2MSFTNGP04.phx.gbl...

Matthew Wells

unread,
Apr 15, 2008, 12:53:09 PM4/15/08
to
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" <d...@dw.com> wrote in message
news:%23Pt6UGx...@TK2MSFTNGP03.phx.gbl...

0 new messages