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.

need help with css. don't see the border, box, and font specification

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
aboutjav.com@gmail.com - 06 Apr 2008 17:52 GMT
Hi,

I created a user info control to let the user know if he logs in. I
created a .css file for the asp.net project and assigned the following
to the user area. In the userinfo.aspx, I added each section. when I
bring up the website, I don't see any of the font, color, or borders.

Is there any extra steps to point to the .css file?

Any help is greatly appreciated.

.UserInfoHead
{
 border-right: #cc6666 1px solid;
 border-top: #cc6666 1px solid;
 border-left: #cc6666 1px solid;
 border-bottom: #cc6666 1px solid;
 background-color: #dc143c;
 font-family: Verdana, Arial;
 font-weight: bold;
 font-size: 10pt;
 color: #f5f5dc;
 padding-left: 3px;
 text-align: center;
}
.UserInfoContent
{
 border-right: #cc6666 1px solid;
 border-top: #cc6666 1px solid;
 border-left: #cc6666 1px solid;
 border-bottom: #cc6666 1px solid;
 background-color: #ffcccc;
 text-align: center;
}
.UserInfoText
{
 font-family: Verdana, Arial;
 font-size: 9pt;
 padding-left: 5px;
 text-decoration: none;
}
a.UserInfoLink
{
 font-family: Verdana, Arial;
 font-weight: bold;
 font-size: 9pt;
 color: #ed486d;
 line-height: 15px;
 padding-left: 5px;
 text-decoration: none;
}
a.UserInfoLink:hover
{
 padding-left: 5px;
 color: #dc143c;
}
a.Button
{
 color: Black;
 font-family: Verdana, Helvetica, Sans-Serif;
 font-size: 12px;
}
.AdminTitle
{
 color: Black;
 font-family: Verdana, Helvetica, Sans-Serif;
 text-decoration: none;
 font-size: 21px;
 font-weight: bold;
 line-height: 25px;
}
.AdminPageText
{
 color: Navy;
 font-family: Verdana, Helvetica, Sans-Serif;
 text-decoration: none;
 font-size: 12px;
}
a.AdminPageText
{
 color: Navy;
 font-family: Verdana, Helvetica, Sans-Serif;
 text-decoration: none;
 font-size: 12px;
}
a.AdminPageText:hover
{
 color: Red;
}
Mark Fitzpatrick - 06 Apr 2008 23:59 GMT
The first thing to check is that the CSS file is really being found
correctly. If you do't check that first, you can end up going around in
endless circles later on trying to figure out what's wrong with your styles.
Bring up the page that has the link to the CSS file, then check out the link
and see if you can browse to it directly, using the URL of the page as a
basis. This trips up a lot of people because they'll put the CSS in a master
page without realizing that the CSS link will be relative to the master
page, and not to the child pages.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

> Hi,
>
[quoted text clipped - 85 lines]
>  color: Red;
> }
bruce barker - 07 Apr 2008 17:30 GMT
in css the dot is used to specify a class name. threre is no ..

-- bruce (sqlwork.com)

> Hi,
>
[quoted text clipped - 85 lines]
>   color: Red;
> }

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.