Re: CSS linked in aspx not working
My experience with css has led me to always use an actual path when linking to
stylesheets. It's easiest and you can add that same tag to any page at any level
in your site if you give it a reative path to the root.
use "/Styles.css" if you are in the root directory of the web.
Try this for the same directory "./Styles.css"
Also, when working with css across browsers, make sure you are case-sensitive,
netscape won't usually match unless it's exact.
"Andy Nagai" <email@example.com> wrote in message
> I have a basic css class:
> border-right: blue double;
> border-top: blue double;
> font-size: medium;
> border-left: blue double;
> color: white;
> border-bottom: blue double;
> background-color: #6699cc;
> in a .css file in the root web folder. same folder as aspx file. I reference
> the css file like this in the aspx file in the head:
> <LINK href="Style.css" type="text/css" rel="stylesheet">
> Now the textbox just displays normal when i run the page. none of the style
> is applied. When i insert the css class directly in the aspx file, it
> displays like it supposed to. But when i link to the css file, nothing
> happens. For some reason linking to the css file doesnt work. Anyone
> encounter this?
|All times are GMT. The time now is 10:15 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.