Help with CSS and the use of a Masterpage

Posted on 2011-04-27
Last Modified: 2012-05-11
I'm trying to figure out what I did wrong here.  Maybe someone can help.  I have two stylesheet that are specific to an aspx page.  This page uses a Masterpage.  

I placed links to the two stylesheets in the "head" section of my page but the stylesheet doesn't load.  I tried adding and removing Runat="Server" but nothing changes.  I even tried removing the tidle (~) that represents the root, but that doesn't help either.

Can someone please tell me what I'm doing wrong?
<%@ Page Title="" Language="VB" MasterPageFile="~/masterpages/general.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Default" %>

<%@ Register src="~/controls/Menu.ascx" tagname="Menu" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link id="Link1" href="~/css/SubMenu.css" rel="stylesheet" type="text/css" Runat="Server" />
    <link id="Link2" href="~/css/Pack.css" rel="stylesheet" type="text/css" Runat="Server" />
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <uc1:pickPackMenu ID="pickPackMenu1" runat="server" />   

etc... etc...

Open in new window

Question by:cdemott33
    LVL 13

    Accepted Solution

    Did you try using the FQDN in relation so the CSS files?

    Author Comment

    I'm not sure I understand?  Could you please explain further or provide an example?

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
    Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
    In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
    The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now