CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 11/20/2006 9:30:29 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 0 Views: 259 Favorited: 0 Favorite
1 Items, 1 Pages 1 |< << Go >> >|
brekehan
Asp.Net User
ASP Menu, Transparent back color11/20/2006 9:30:29 PM

0

I am trying to make an ASP Menu with a transparent background such that it will display the graphics behind it. Currently that static part seems to have a transparent back-color, but the dynamic part keeps displaying a white back-color even when I went through each style option and set BackColor = "transparent" and BorderColor= "transparent" on each style in the properties box. I've tryed several changes, but to no avail. I even checked the fonts within then as well. White is not referenced anywhere! Any ideas why this could be happening?

Here is the current code:

CSS-file

body
{
    background-color:Black;
}

div.header
{
    width:800px;
    height:150px;
    
    background-color:Lime;
}

div.sitepath
{
    width:100%;
    height:20px;
    
    background-color:Purple;
}

div.navbar
{
    float:left;
    
    width:175px;
    
    background-color:Gray;  
}

div.content
{
    float:left;
    
    width:auto;
    height:auto;
    
    background-color:Aqua;
}

div.footer
{
}
ASP file:
 
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="master.master.cs" Inherits="master" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Master Page</title>
    <link href="master.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="MasterForm" runat="server">
    
    <asp:SiteMapDataSource ID="SiteMapDataSource" runat="server" />
    
    <div class ="header">
    </div>
    
    <div class ="sitepath">
        <asp:SiteMapPath ID="SiteMapPath" runat="server"></asp:SiteMapPath>
    </div>
    
    <div class ="middle">
    
        <div class ="navbar">
            <asp:TreeView ID="TreeView" runat="server" DataSourceID="SiteMapDataSource"></asp:TreeView>
            <br />
            <br />
            <asp:Menu ID="Menu" runat="server" DataSourceID="SiteMapDataSource" BackColor="Transparent" ForeColor="Black" BorderColor="Transparent" BorderStyle="None">
                <DynamicHoverStyle ForeColor="Yellow" />
                <DynamicMenuStyle BackColor="Transparent" BorderColor="Transparent" BorderStyle="None" />
                <DynamicSelectedStyle ForeColor="Lime" />
                <DynamicMenuItemStyle ForeColor="#C0C000"/>
                <StaticMenuStyle BackColor="Transparent" BorderColor="Transparent" BorderStyle="None" />
                <StaticMenuItemStyle BackColor="Transparent" BorderColor="Transparent" ForeColor="#C0C000"/>
            </asp:Menu>
            <br />
            <br />
            <br />
            <br />
            <br />
            abdefg<br />
            ,<br />
        </div>
    
        <div class ="content">
            <asp:contentplaceholder id="MainContent" runat="server"></asp:contentplaceholder>
        </div>
    </div>
    
    <div class ="footer">
    </div>
    
    </form>
</body>
</html>
 
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
Core Internet application development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007
Dreamweaver 8: The Missing Manual Authors: David Sawyer McFarland, Pages: 936, Published: 2005
Beginning Dreamweaver MX 2004 Authors: Charles Edward Brown, Imar Spaanjaars, Todd Marks, Pages: 762, Published: 2004
Internet & World Wide Web: how to program Authors: Harvey M. Deitel, Paul J. Deitel, Tem R. Nieto, Pages: 1428, Published: 2002

Web:
ASP Menu, Transparent back color - ASP.NET Forums I am trying to make an ASP Menu with a transparent background such that it will display the graphics behind it. Currently that static part ...
help, i want BackColor=Transparent in help, i want BackColor=Transparent in asp:menu transparent submenu? and size of parent menus? transparent color background properties, but I only want to set it for ... Setting the backcolor to transparent on a sub menu item : transparent May 31, 2006 ... transparent. I am putting a background image on an ASP. ... But when I select the sub menu item, the backcolor appears to be white for all ...
Feedback: Code generated by component does not pass ... If you generate a WebForm page (.aspx) with an asp:Menu component such as: ... < StaticMenuItemStyle HorizontalPadding="5px" BackColor="Transparent" ...

ASP Menu, Transparent back color - ng.asp-net-forum ... ASP Menu, Transparent back color, > ROOT > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls, ...
asp.net menu control when using a StaticItemTemplate; does not ... it has 2 horizontal menus, asp menu controls that use a StaticIteTemplate in which there ...
... BorderWidth="0px" BackColor="White" BorderColor="Transparent"> ...
Menu Control, StaticHoverStyle issue with image background - ng ... I've got a horizontal asp.net menu with submenus I'd like to indent. .... maintaining treeview control state? changing cell background color ...
[HOW TO] Skin a ValidatorCalloutExtender - ng.asp-net-forum ... I know that there is no direct property for background color but there is a property ... how do set transparent sub-menu item background? ...
ContentPlaceHolder background colour problem with CSS - ng.asp-net ... ASP Menu, Transparent back color - ng.asp-net-forum ... CSS-file body { background-color:Black; } div.header { width:800px; height:150px ... , ...






theme with columns in gridview

skinfile or css

regarding contentpage

creating datasource for treeview, menu and sitemappath

masterpage and iextenderprovider

.net menu control speed ie6

masterpage:dynamically loading of contents(aspx page) to masterpage on button click

page header on master page

want to create menu within menu dynamic..pls help with code

reference asp.net page from a master page

asp.net 2.0, treeview control populateondemand with checkboxes, scanning thru treeview for checked nodes

the data source 'xmldswebsitemenunavigation' does not support caching when client impersonation is enabled.

tree view state

any reason why sitemap only allow one top sitemapnode?

share the same masterpage file between different websites? (newbie)

your master pages "best practices"?

master page id's and rendered id's not matching up

menu item with image

how to create an breadcrumb without sitemapdatasource.

incorrect link in <a> when using masterpages

help in programatically generating and displaying menu controls

disabled design-time masterpage.

smallbusiness masterpage not displaying properly

master pages, cookies, session variables and life

treeview issue

site map and button images.

to create a dynamic menu or treeview

problem with the master page

adding script tags to masterpage header

nested master page, user control and events issue!!!

   
  Privacy | Contact Us
All Times Are GMT