I have created a few DIV's as follows.
1. A div for the background of the menu to span 100%
2. A div for the MENU that holds the items that float left
3. A div that holds the images that float right
however I can't get the two last DIV's that stay as one line when the page is minimized. i'm newer to CSS so can someone help?
CSS:
- Matt
"If I must boast, I will boast of the things that show my weakness"
- Windows 2003 Server, 98 SE, XP
- VB.NET, VSTS 2010, ASP.NET, EXCEL VBA, ACCESS, SQL 2008
1. A div for the background of the menu to span 100%
2. A div for the MENU that holds the items that float left
3. A div that holds the images that float right
however I can't get the two last DIV's that stay as one line when the page is minimized. i'm newer to CSS so can someone help?
Code:
<div id="background">
<div id="menu">
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" ItemWrap="False" >
<DynamicItemTemplate>
<%# Eval("Text") %>
</DynamicItemTemplate>
<Items>
<asp:MenuItem Text="HOME" Value="HOME"></asp:MenuItem>
<asp:MenuItem Text="ADMIN" Value="ADMIN"></asp:MenuItem>
<asp:MenuItem Text="AUTOMATION" Value="AUTOMATION"></asp:MenuItem>
<asp:MenuItem Text="COMPLIANCE" Value="COMPLIANCE"></asp:MenuItem>
<asp:MenuItem Text="DEFECTS" Value="DEFECTS"></asp:MenuItem>
<asp:MenuItem Text="DOCUMENTATION" Value="DOCUMENTATION"></asp:MenuItem>
<asp:MenuItem Text="ICARE METRICS" Value="ICARE METRICS"></asp:MenuItem>
<asp:MenuItem Text="DATA STAGING" Value="DATA STAGING"></asp:MenuItem>
<asp:MenuItem Text="RELEASES" Value="RELEASES"></asp:MenuItem>
<asp:MenuItem Text="UTILITIES" Value="UTILITIES"></asp:MenuItem>
<asp:MenuItem Text="VIDEOS" Value="VIDEOS"></asp:MenuItem>
</Items>
<StaticItemTemplate>
<%# Eval("Text") %>
</StaticItemTemplate>
</asp:Menu>
</div>
<div id="images">
<asp:ImageButton ID="imgPrint" runat="server" ImageUrl="~/images/Print.png" position="relative" Height="20px" Width="20px" ToolTip="Print Content" PostBackUrl="JavaScript:window.print();" />
<asp:ImageButton ID="imgHelp" runat="server" ImageUrl="~/images/Help.png" position="relative" Height="20px" Width="20px" ToolTip="How To's" PostBackUrl="[URL unfurl="true"]https://oneteam/Products/BOP/SQATeam/Procedures/SQA[/URL] Dashboard/" />
<asp:ImageButton ID="imgUser" runat="server" ImageUrl="~/images/User.png" position="relative" Height="20px" Width="20px" ToolTip="SQA Directory" />
<asp:ImageButton ID="imgEmail" runat="server" ImageUrl="~/images/Email.png" position="relative" Height="20px" Width="20px" ToolTip="Contact Us" PostBackUrl="~/Contact_Us.aspx" />
</div>
</div>
CSS:
Code:
#background
{
width: 100%;
background: rgb(70,130,180);
}
#menu
{
width:950px;
background: rgb(70,130,180);
}
#menu a {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #FFFFFF;
text-transform: uppercase;
}
#menu a:hover {
text-decoration: underline;
}
#images
{
float:right;
width:95px;
}
- Matt
"If I must boast, I will boast of the things that show my weakness"
- Windows 2003 Server, 98 SE, XP
- VB.NET, VSTS 2010, ASP.NET, EXCEL VBA, ACCESS, SQL 2008