Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

CSS problem...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matthew Wells - 15 Apr 2008 14:44 GMT
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.

Signature

Matthew Wells
Matthew.Wells@FirstByte.net

gerry - 15 Apr 2008 15:51 GMT
try hitting your browser refresh.

> Hello
>
[quoted text clipped - 27 lines]
>
> Thanks.
Matthew Wells - 15 Apr 2008 17:46 GMT
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.

> try hitting your browser refresh.
>
[quoted text clipped - 29 lines]
>>
>> Thanks.
Ghostman - 15 Apr 2008 16:35 GMT
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
>
[quoted text clipped - 35 lines]
> Matthew Wells
> Matthew.We...@FirstByte.net
Matthew Wells - 15 Apr 2008 16:45 GMT
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.

> After you run the page, view the source in your browser and see if the
> stylesheet is actually being applied to the page.
[quoted text clipped - 42 lines]
>> Matthew Wells
>> Matthew.We...@FirstByte.net
David Wier - 15 Apr 2008 16:58 GMT
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

> 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 -
[quoted text clipped - 50 lines]
>>> Matthew Wells
>>> Matthew.We...@FirstByte.net
Matthew Wells - 15 Apr 2008 17:53 GMT
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.

>I have a premise I use every time something keeps happening that I know
>should work.
[quoted text clipped - 62 lines]
>>>> Matthew Wells
>>>> Matthew.We...@FirstByte.net
Cowboy (Gregory A. Beamer) - 15 Apr 2008 17:24 GMT
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.

Signature

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!

*************************************************
> Hello
>
[quoted text clipped - 27 lines]
>
> Thanks.
Matthew Wells - 15 Apr 2008 17:52 GMT
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.

> 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
[quoted text clipped - 42 lines]
>>
>> Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.