Align text at bottom of div - asp.net

Here is my CSS
.FrontSlideShow
{
display:block;
overflow: none;
height: 323px;
margin-bottom: 12px;
background-color:#005596;
background-image: url(/*edited*/);
background-repeat: repeat-x; width:754px; font-family: verdana; font-size:large;
color:#FFFFFF;
clear:both;
}
.FrontSlideShow .SlideShowImage
{
float: left;
vertical-align:text-bottom;
padding-right: 24px;
}
.FrontSlideShow .SlideShowSubTitle
{
vertical-align: text-bottom;
margin-bottom: 10px;
}
Here is the markup
<div class="FrontSlideShow">
<div class="SlideShowMainTitle">
<asp:Label ID="lblSlideTitle" runat="server"></asp:Label>
</div>
<div class="SlideShowImage">
<asp:Image ID="imgSlide" runat="server" />
</div>
<div class="SlideShowSubTitle">
<asp:Label ID="lblSlideDescription" runat="server"></asp:Label>
</div>
<asp:Button ID="btnPrev" runat="server" Text="Prev" /><asp:Button ID="btnNext" runat="server" Text="Next" />
<asp:SlideShowExtender ID="slExtender" runat="server" AutoPlay="true" Loop="true" PlayInterval="3000" TargetControlID="imgSlide" NextButtonID="btnNext" PreviousButtonID="btnPrev"
ImageTitleLabelID="lblSlideTitle" ImageDescriptionLabelID="lblSlideDescription" SlideShowServiceMethod="GetSlides" SlideShowServicePath="~/WebServices/SlideShowService.asmx">
</asp:SlideShowExtender>
<asp:Literal ID="liMarkup" runat="server"></asp:Literal>
</div>
The subtitle div needs to be positioned at the bottom right of the parent container. Any ideas? But all I can get is:
But I want:

Try this:
.FrontSlideShow {
position: relative;
}
.FrontSlideShow .SlideShowSubTitle {
position: absolute;
right : 20px;
bottom: 20px;
}

.FrontSlideShow {
....
position:relative;
....
}
.FrontSlideShow .SlideShowSubTitle {
position:absolute;
top: 300px; // your values
left: 400px;// your values
}
THis way your text will always be consistent and in the same spot

Related

Positioning two footers on a split page

so i have a webpage that has a split screen, one half is 70% and the other 30% wide, i have two footer images that are the same.. But when i try to center the images it is not working for some strange reason.. The rest of the page is positioned fine, but my images are not centering, i was told a webkit may help? Can anybody help?
Css
body {
font-family: Arial;
color: white;
}
.split {
height: 100%;
position: fixed;
z-index: 1;
top: 0;
overflow-x: hidden;
padding-top: 20px;
}
.left {
left: 0;
background-color: #110;
width: 30%;
height: 100%;
text-align: center;
}
.right {
right: 0;
background-color: white;
width: 70%;
text-align: center;
}
.centered {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.center {
text-align: center;
}
.auto-style1 {
position: absolute;
width: 100%;
height: 100%;
top: 49%;
left: 43%;
}
h1 {
color: red;
font-weight: bold;
padding-top: 20px;
}
div { padding: 30px 10px 15px; }
.imgFooter {
display: block;
left: 150px;
text-align: center;
position: absolute;
bottom: 10%;
}
and the html -
<%# Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WorkStationUITarget.Default" %>
<!DOCTYPE html>
<html>
<head>
<%--<meta http-equiv="refresh" content="10" > <%--refreshes after 10 seconds --%>--%>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="CSS/style.css" rel="stylesheet" />
<script>
window.setTimeout('document.forms[0].submit()', 5000); //refresh the page (without losing state)
</script>
<link href="Stylesheet/styles.css" rel="stylesheet" />
</head>
<body style="height: 100%">
<form runat="server" name="PackingStatsForm">
<div height="100%">
<div class="split left">
<div class="center" width:100%>
<h1>TOTAL QUANTITY PACKED</h1>
<asp:Label ID="labeltotal" runat="server" Width="100%" Height="100%" Font-Size="270px" style="text-align: center; padding-top: 800px; color: #ff0000; transform: translate(-50%, -50%); text-align: center; padding-left: 90px; " CssClass="auto-style1" Font-Bold="True"></asp:Label>
</div>
<div class ="center" width:100%>
***<img class ="imgFooter" src="Logo/siblack1.png" />***
</div>
</div>
<div class="split right">
<div class="center" width:100%>
<asp:DropDownList ID="ddl" runat="server" AutoPostBack="True" OnSelectedIndexChanged="Dropdownlist1_SelectedIndexChanged" Font-Bold="True" ViewStateMode="Enabled" >
</asp:DropDownList>
<h1>CELL TARGETS & ACTUAL FIGURES</h1>
<asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="black" BorderStyle="Ridge" BorderWidth="3px" CellPadding="25" ForeColor="Black" GridLines="Horizontal" HorizontalAlign="Center" Font-Size="24px" OnRowDataBound="GridView1_RowDataBound" Width="100%" Font-Bold="True" >
<AlternatingRowStyle BackColor="White"/>
<FooterStyle BackColor="#CCCC99"/>
<HeaderStyle BackColor="white" Font-Bold="True" ForeColor="black"/>
<PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right"/>
<RowStyle BackColor="#F7F7DE"/>
<SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="black"/>
<SortedAscendingCellStyle BackColor="#FBFBF2"/>
<SortedAscendingHeaderStyle BackColor="#848384"/>
<SortedDescendingCellStyle BackColor="#EAEAD3"/>
<SortedDescendingHeaderStyle BackColor="#575357"/>
</asp:GridView>
<div class="center" width:100% >
***<img class="imgFooter" src="Logo/siwhite1.png" />***
</div>
</div>
</div>
</div>
</form>
</body>
</html>

dropdownlist and text arent on the same level

I have dropdownlist and text doesnt display on the same level. text is located upper and dropdownlist is located on lower.
here is my code
<div style="display:inline;float:left">Ödeme Kalemi:</div>
<div style="display:inline;float:left">
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>test</asp:ListItem>
<asp:ListItem>test2</asp:ListItem>
</asp:DropDownList>
</div>
<div style="clear:both"></div>
and here is the screenshot
Please help me fix this. I need to align them horizontally.
You can use the following css to display dropdownlist next to label.
<style type="text/css">
.row { clear: both; overflow: hidden; padding: 5px 0; width: 100%; }
.row label { float: left; text-align: right;
margin-right: 10px; width: 150px; }
.row .value { float: left; text-align: left; }
</style>
<div class="row">
<label>Ödeme Kalemi:</label>
<div class="value">
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>test</asp:ListItem>
<asp:ListItem>test2</asp:ListItem>
</asp:DropDownList>
</div>
</div>

styling issue in Chrome with datalist

I am having styling issue with products loaded in datalist control in Chrome.
While everything looks ok in FF, Chrome gives me weird styling.
Here are the screenshots:
FF: http://gyazo.com/214fcfafbfb91e17ea1f084af84e61e4.png?1341955023
Chrome: http://gyazo.com/4459dc38dc01a18f62780392d8fb3625.png?1341955739
Here is the html markup:
<div class="product-grid">
<asp:DataList ID="dlCatalog" runat="server" RepeatColumns="2" RepeatDirection="Horizontal"
RepeatLayout="Table" ItemStyle-CssClass="item-box">
<ItemTemplate>
<nopCommerce:ProductBox1 ID="ctrlProductBox" Product='<%# Container.DataItem %>'
runat="server" />
</ItemTemplate>
</asp:DataList>
</div>
Here is the CSS:
.product-grid { margin-bottom: 15px; width: 586px; text-align: center; margin-left: -10px; }
.product-grid .item-box { text-align: center; vertical-align: top; padding: 10px 11px 60px 11px; }
.product-grid .product-item { text-align: center; margin: 10px 5px 10px 5px; width: 250px; background: url('images/prod_grid_box_bg.gif') no-repeat 0 100%; }
.product-grid .product-item .product-title { font-weight: bold; font-size: 12px; background: url('images/deal_box_hl.gif') no-repeat 0 0; padding-left: 10px; }
.product-grid .product-item .product-title a { background: url('images/deal_box_hr.gif') no-repeat 100% 0; display: block; height: 2em; line-height: 1.3em; overflow: hidden hidden; padding: 4px 10px 8px 0px; }
.product-grid .product-item .picture { text-align: center; margin-top: 10px; }
.product-grid .product-item .description { margin: 5px 5px 0 5px; text-align: center; padding: 10px 5px 10px 5px; border-top: solid 1px #e3e3e3; color: #555; height: 50px; }
.product-grid .product-item .add-info { vertical-align: bottom; text-align: right; width: 250px; height: 85px; position: relative; }
.product-grid .product-item .add-info .prices { text-align: right; vertical-align: middle; position: absolute; bottom: 15px; right: 10px; }
.product-grid .product-item .add-info .buttons { vertical-align: middle; position: absolute; bottom: 15px; left: 10px; text-align: left; }
.product-grid .product-item .add-info .prices .productPrice { color: green; }
.product-grid .product-item .add-info .prices .oldproductPrice { color: Red; text-decoration: line-through; }
PRODUCT BOX CODE ADDED:
<%# Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Modules.ProductBox1Control"
CodeBehind="ProductBox1.ascx.cs" %>
<%# Register TagPrefix="nopCommerce" TagName="ProductPrice2" Src="~/Modules/ProductPrice2.ascx" %>
<script type="text/javascript" language="javascript" src="../Scripts/jquery.expander.js"></script>
<script type="text/javascript">
// you can override default options globally, so they apply to every .expander() call
//$.expander.defaults.slicePoint = 50;
$(document).ready(function () {
// simple example, using all default options unless overridden globally
//$('div.expandable h3').expander();
// *** OR ***
// override default options (also overrides global overrides)
$('div.expandable h3').expander({
slicePoint: 50, // default is 100
expandPrefix: '.....', // default is '... '
expandText: '>>', // default is 'read more'
collapseTimer: 5000, // re-collapses after 5 seconds; default is 0, so no re-collapsing
userCollapseText: '<<' // default is 'read less'
});
});
</script>
<%--<div class="product-item">
<h2 class="product-title">
<asp:HyperLink ID="hlProduct" runat="server" />
</h2>
<div class="picture">
<asp:HyperLink ID="hlImageLink" runat="server" />
</div>
<div class="description">
<asp:Literal runat="server" ID="lShortDescription"></asp:Literal>
</div>
<div class="add-info">
<div class="prices">
<nopCommerce:ProductPrice2 ID="ctrlProductPrice" runat="server" ProductId='<%#Eval("ProductId") %>' />
</div>
<div class="buttons">
<asp:Button runat="server" ID="btnProductDetails" OnCommand="btnProductDetails_Click"
Text="<% $NopResources:Products.ProductDetails %>" ValidationGroup="ProductDetails"
CommandArgument='<%# Eval("ProductId") %>' CssClass="productgridproductdetailbutton" /><br />
<asp:Button runat="server" ID="btnAddToCart" OnCommand="btnAddToCart_Click" Text="<% $NopResources:Products.AddToCart %>"
ValidationGroup="ProductDetails" CommandArgument='<%# Eval("ProductId") %>' CssClass="productgridaddtocartbutton" />
</div>
</div>
</div>--%>
<div class="pblock">
<div class="borderProd">
<div class="expandable">
<h3>
<asp:HyperLink ID="hlProduct" runat="server" />
</h3>
</div>
<asp:Literal runat="server" ID="lShortDescription" Visible="false"></asp:Literal>
</div>
<div class="img">
<a id="hlImageLink" runat="server">
<img id="hlImage" runat="server" style="max-width:170px;max-height:120px"/>
</a>
<div class="body">
</div>
<div class="body">
<nopCommerce:ProductPrice2 ID="ctrlProductPrice" runat="server" ProductId='<%#Eval("ProductId") %>' />
</div>
<asp:Label ID="labUniversal" runat="server" ForeColor="Blue" Text=""></asp:Label>
</div>
</div>
I fixed the problem by setting the height of the item-box to 275px.
Thanks everyone for your help.

vertical and horizontal scrolls not working

I have a master page which is using the style sheet..
My problem is that my vertical scrollbar does not work and horizontal scrollbar is not showing when i restore down the page.
here is my .aspx code..
<%# Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!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 id="Head1" runat="server">
<title>test</title>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<link href="NewFolder1/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.style1
{
font-size: medium;
font-weight: bold;
}
.style2
{
text-align: left;
}
</style>
</head>
<body bgcolor="#6794cb" >
<form id="form2" runat="server"
style="background-color: #6794CB;padding-bottom:1%; padding-top: 2%; width:100%; height:100%;">
<div id="container" style="visibility: visible;">
<div id="header">
<div class="style2">
<asp:TextBox ID="TextBox1" runat="server" BorderColor="#000099" BorderWidth="2px"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Search" BackColor="#ADC6C9"
BorderColor="#CCCCCC" BorderStyle="Outset" />
<asp:HyperLink ID="HyperLink1" runat="server">corp\tbruschi</asp:HyperLink>
<asp:HyperLink ID="HyperLink2" runat="server">Settings</asp:HyperLink>
<asp:HyperLink ID="HyperLink3" runat="server">Help</asp:HyperLink>
<asp:HyperLink ID="HyperLink4" runat="server">LogOff</asp:HyperLink>
<br />
<br />
<span class="style1"><br />
</span><br />
<asp:Panel ID="Panel1" runat="server" Width="100%">
<hr style="padding: 1px; background-color: #000000" />
</asp:Panel>
<br />
</div>
</div>
<!-- end header -->
<div id="left">
<asp:Panel ID="Panel3" runat="server" Height="100%" ScrollBars="Auto"
Width="100%">
<p>
</p>
<br />
<asp:TreeView ID="TreeView2" runat="server" OnUnload="TreeViewMain_Unload"
ontreenodepopulate="TreeView2_TreeNodePopulate"
onselectednodechanged="TreeView2_SelectedNodeChanged">
<Nodes>
<asp:TreeNode PopulateOnDemand="True" Text="Machine Groups"
Value="Machine Groups"></asp:TreeNode>
</Nodes>
</asp:TreeView>
<br />
<asp:TreeView ID="TreeView3" runat="server" OnUnload="TreeView3_Unload"
ontreenodepopulate="TreeView3_TreeNodePopulate"
onselectednodechanged="TreeView3_SelectedNodeChanged">
<Nodes>
<asp:TreeNode PopulateOnDemand="True" Text="Policies"
Value="Policies"></asp:TreeNode>
</Nodes>
</asp:TreeView>
<br />
</asp:Panel>
</div>
<div id="content-wrapper">
<div id="content-inner">
<!-- end left division -->
<div id="main">
<asp:ContentPlaceHolder id="ContentPlaceHolder2" runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
</div> <!-- end footer -->
</div>
</form>
</body>
</html>
**
And here is my Css file code..
body
{
font-family: arial, verdana, helvetica, sans-serif;
font-size: 12px;
cursor: default;
background-color: #FFFFFF;
width: 100%;
height: 100%;
}
*
{
margin: 0px 0px 0px 1px;
padding: 0px;
text-align: left;
}
html
{
height: 100%;
margin-bottom: 1px;
}
#container
{
width: 80%;
margin-right: auto;
margin-left: auto;
text-align: left;
background-color: #FFFFFF;
height: 595px;
}
#header {
width:100%;
padding-top:15px;
height: 121px;
}
.spacer {
width:100%;
height:15px;
}
hr {
border-style: none;
border-color: inherit;
border-width: 0px;
color:Black;
background-color:#CDCDCD;
height: 0px;
width: 100%;
text-align: left;
}
h1 {
font-size:28px;
color:white;
background-color: #4F81BD;
font-family:Arial, Verdana, Helvetica, sans-serif;
font-weight:300;
}
h2 {
font-size:15px;
color:Black;
font-family:Arial, Verdana, Helvetica, sans-serif;
font-weight:300;
background-color:#FFFFFF;
}
h3 {
color:Black;
font-size:15px;
text-align:left;
font-weight:300;
padding:5px;
margin-top:5px;
}
#left {
float:left;
width:250px;
background-color:#FFFFFF;
color:black;
height: 417px;
}
#main
{
margin: 1px 5px 5px 260px;
border-left: 1px solid silver;
height: 409px;
padding-right: 3px;
padding-bottom: 3px;
padding-left: 3px;
}
p {
color:black;
background-color:#FFFFFF;
line-height:20px;
padding:5px;
}
a {
color:Blue;
text-decoration:none;
}
a:hover {
color:#cc0000;
text-decoration:underline;
}
#footer {
clear:both;
font-size:12px;
font-family:Verdana, Arial, Helvetica, sans-serif;
}
.right {
color:gray;
background-color:#FFFFFF;
float:right;
font-size:100%;
margin-top:5px;
}
.left {
color:gray;
background-color:#FFFFFF;
float:left;
font-size:100%;
margin-top:5px;
}
I have tried a lot of stuff but nothing seems to work... it will be great if some 1 could have a look and guide me in the right direction..
Thanks
when the browser window is restored down the content on the page gets cramped up..
This means i have to keep the content in the body or main to be fixed.. i dont know how to do that any help..???
In your css class, in the body definition, if you remove
position: fixed;
then the scrollbars appear.

Need help with my CSS on my DotNetNuke Skin

I have created a skin for DotNetNuke 5.x and I attempted to do as much of the layout using css as I could. My issue is the consistency between IE and FF/Chrome/Safari. With most sites I'm able to overcome this, but in this skin I have tried everything I could think of and spent many many hours trying to get the look consistent between the two. When I fix one, the other would break. Can anyone help me fix this? Please take a look at the skin here in both IE and FF to see the difference:
http://bluebookbasement.coultertechnologies.com
BlueBookBasement_full.ascx
<%# Control language="vb" CodeBehind="~/admin/Skins/skin.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%# Register TagPrefix="dnn" TagName="LANGUAGE" Src="~/Admin/Skins/Language.ascx" %>
<%# Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%# Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>
<%# Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>
<%# Register TagPrefix="dnn" TagName="TEXT" Src="~/Admin/Skins/Text.ascx" %>
<%# Register TagPrefix="dnn" TagName="BREADCRUMB" Src="~/Admin/Skins/BreadCrumb.ascx" %>
<%# Register TagPrefix="dnn" TagName="USER" Src="~/Admin/Skins/User.ascx" %>
<%# Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%# Register TagPrefix="dnn" TagName="LINKS" Src="~/Admin/Skins/Links.ascx" %>
<%# Register TagPrefix="dnn" TagName="PRIVACY" Src="~/Admin/Skins/Privacy.ascx" %>
<%# Register TagPrefix="dnn" TagName="TERMS" Src="~/Admin/Skins/Terms.ascx" %>
<%# Register TagPrefix="dnn" TagName="COPYRIGHT" Src="~/Admin/Skins/Copyright.ascx" %>
<%# Register TagPrefix="dnn" TagName="STYLES" Src="~/Admin/Skins/Styles.ascx" %>
<div id="ControlPanel" runat="server" />
<div id="mainbody">
<div id="container">
<div id="top_banner">
<div style="float:left; "><dnn:LOGO runat="server" id="dnnLOGO" /></div>
<div id="top_banner_right"> </div>
</div>
<div id="content">
<div id="content_top_left">
<div id="content_top_right">
<div id="top_nav">
<div id="nav_left">
<div id="nav_right">
<div id="nav_main">
<dnn:NAV
runat="server"
id="dnnNAV"
ProviderName="DNNMenuNavigationProvider"
IndicateChildren="false"
ControlOrientation="Horizontal"
CSSNodeRoot="main_dnnmenu_rootitem"
CSSNodeHoverRoot="main_dnnmenu_rootitem_hover"
CSSNodeSelectedRoot="main_dnnmenu_rootitem_selected"
CSSBreadCrumbRoot="main_dnnmenu_rootitem_selected"
CSSContainerSub="main_dnnmenu_submenu"
CSSNodeHoverSub="main_dnnmenu_itemhover"
CSSNodeSelectedSub="main_dnnmenu_itemselected"
CSSContainerRoot="main_dnnmenu_container"
CSSControl="main_dnnmenu_bar"
CSSBreak="main_dnnmenu_break" />
</div>
</div>
</div>
</div>
</div>
</div>
<div id="middle_left">
<div id="middle_right">
<div id="indent_left">
<div id="indent_right">
<div id="breadcrumbs">
<dnn:TEXT runat="server" id="dnnTEXT" CssClass="breadcrumb_text" Text="You are here >" ResourceKey="Breadcrumb" />
<dnn:BREADCRUMB runat="server" id="dnnBREADCRUMB" CssClass="Breadcrumb" RootLevel="0" Separator=" > " />
</div>
<div id="BannerPane" class="BannerPane" runat="server"></div>
<div id="TopPane" class="TopPane" runat="server"></div>
<table border="0" cellpadding="0" cellspacing="0" width="100%" >
<tr>
<td class="leftpane" id="LeftPane" runat="server" valign="top"></td>
<td class="contentpane" id="ContentPane" runat="server" valign="top"></td>
<td class="rightpane" id="RightPane" runat="server" valign="top"></td>
</tr>
<tr>
<td colspan="3">
<table border="0" cellpadding="0" cellspacing="0" width="100%" >
<tr>
<td class="mid3" id="Mid1Pane" runat="server" valign="top"></td>
<td class="mid3" id="Mid2Pane" runat="server" valign="top"></td>
<td class="mid3" id="Mid3Pane" runat="server" valign="top"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="leftcontentpane" id="LeftContentPane" runat="server" valign="top" colspan="2"></td>
<td class="rightpane" id="RightSidePane" runat="server" valign="top"></td>
</tr>
<tr>
<td class="leftpane" id="LeftSidePane" runat="server" valign="top"></td>
<td class="rightcontentpane" id="RightContentPane" runat="server" valign="top" colspan="2"></td>
</tr>
</table>
<div id="BottomPane" class="BottomPane" runat="server"></div>
<div class="clear"></div>
</div>
</div>
</div>
</div>
<div id="content_bottom">
<div id="content_bottom_left">
<div id="content_bottom_right">
<div id="content_bottom_middle">
<div id="prefooter">
<div class="leftSide">
<dnn:links runat="server" id="dnnLINKS" CssClass="links" Level="Root" Separator=" | " />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="footer">
<div id="footer_left">
<div id="footer_right">
<dnn:COPYRIGHT runat="server" id="dnnCOPYRIGHT" CssClass="footertxt" /> |
<dnn:TERMS runat="server" id="dnnTERMS" CssClass="footertxt" /> |
<dnn:PRIVACY runat="server" id="dnnPRIVACY" CssClass="footertxt" /> |
<dnn:USER runat="server" id="dnnUSER" CssClass="footertxt" /> |
<dnn:LOGIN runat="server" id="dnnLOGIN" CssClass="footertxt" />
</div>
</div>
</div>
</div>
</div>
Skin.css
BODY
{
background-color:#214081;
height:100%;
margin:0px;
padding:0px;
}
#mainbody
{
background-image:url(images/home_2_01.jpg);
background-repeat:repeat-x;
background-position:top;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
text-align: center;
}
#container
{
width:979px;
padding: 0;
text-align:center;
margin: 0 auto;
}
a
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
font-weight:normal;
font-style:normal;
text-decoration:none;
color:#000000;
}
.clear
{
clear:both;
}
#top_banner
{
/*background-image:url(images/top_banner.gif);
background-repeat:no-repeat;
background-position:top;
width:979px;*/
height:145px;
}
#top_banner_right
{
float:right;
color:#FFFFFF;
font-size:20px;
line-height:25px;
padding-top:70px;
}
#content
{
background:#fff url(images/home_2_05.jpg) repeat-x top;
/*background-color:#fff;*/
min-height:414px;
padding:0px;
margin:0px;
}
#content_top_left
{
background-image:url(images/home_2_04.jpg);
background-repeat:no-repeat;
background-position: left top;
height: 65px;
padding:0px; margin:0px;
}
#content_top_right
{
background-image:url(images/home_2_06.jpg);
background-repeat:no-repeat;
background-position: right top;
height: 65px;
padding:10px 10px 0px 10px; margin:0px;
/*width:100%;*/
}
#content_bottom
{
background:url(images/home_2_27.jpg) repeat-x bottom;
height: 63px;
padding:0px;
margin:0px;
}
#content_bottom_left
{
background:url(images/home_2_26.jpg) no-repeat bottom left ;
height: 63px;
padding:0px;
margin:0px;
}
#content_bottom_right
{
background:url(images/home_2_30.jpg) no-repeat bottom right;
height: 63px;
padding:0px;
margin:0px;
}
#content_bottom_middle
{
background:url(images/home_2_28.jpg) no-repeat bottom center;
height: 63px;
padding: 0px 0px 0px 0px;
margin:0px;
}
#content_all
{
/*padding: 16px;*/
}
#middle_left
{
background-image:url(images/home_2_21.jpg);
background-repeat:repeat-y;
background-position: left;
padding: 0px;
margin:0px;
}
#middle_right
{
background-image:url(images/home_2_22.png);
background-repeat:repeat-y;
background-position: right;
padding:0px;
margin:0px;
}
#indent_left
{
background:url(images/home_2_13.jpg) no-repeat top left;
padding: 0px; margin:0px;
}
#indent_right
{
background:url(images/home_2_15.jpg) no-repeat right top;
padding: 0px 16px 0px 16px; margin:0px 0px 0px 0px;
overflow: auto;
/*width: 979px;*/
}
#top_nav
{
background-image: url(images/home_2_10.jpg);
background-repeat: repeat-x;
background-position: top;
/*width:943px;*/
height:63px;
}
#nav_left
{
/*width: 18px;*/
height: 63px;
background-image: url(images/home_2_08.jpg);
background-repeat: no-repeat;
background-position: top left;
padding: 0px;
margin: 0px;
/*float: left;*/
}
#nav_right
{
/*width: 21px;*/
height: 63px;
background-image: url(images/home_2_12.jpg);
background-repeat: no-repeat;
background-position: top right;
padding: 0px;
margin: 0px;
/*float: right;*/
}
#nav_main
{
padding-top: 10px;
height: 63px;
}
#video_sub
{
background-color:#7C7C7C;
padding:5px;
color:#FFFFFF;
text-align:center;
}
/*.main_tab
{
background-image:url(images/tab_bg.gif);
background-repeat:no-repeat;
background-position:top;
width:648px;
height:16px;
padding:15px;
color:#FFFFFF;
font-size:14px;
font-weight:bold;
text-transform:uppercase;
}*/
#prefooter
{
margin: 0px;
text-align: left;
padding: 10px;
}
#footer
{
background-image:url(images/home_2_38.jpg);
background-repeat:repeat-x;
background-position:top;
height:95px;
margin-top: 20px;
text-align: left;
}
#footer_left
{
background-image:url(images/home_2_36.jpg);
background-repeat:no-repeat;
background-position:left top;
height: 95px;
}
#footer_right
{
background-image:url(images/home_2_40.jpg);
background-repeat:no-repeat;
background-position:right top;
height: 95px;
padding: 36px;
color: blue;
/*width: 1036px;*/
}
.footertxt
{
/*color: #fff;*/
}
td.footertxt {
font-family: verdana, arial, helvetica;
color: #FFF;
font-size:10px;
font-weight: normal;
}
a.footertxt:link, a.footertxt:visited {
font-family: verdana, arial, helvetica;
color: #FFF;
font-size:10px;
font-weight: normal;
text-decoration: none;
}
a.footertxt:hover, a.footertxt:active {
font-family: verdana, arial, helvetica;
color: #FFF;
font-size:10px;
text-decoration: underline;
font-weight: normal;
}
.controlpanel {
width: 100%;
background-color: #fff;
}
.rightpane {
width:27%;
/*margin-right:16px;*/
/*padding-top:10px;*/
padding: 0px 0px 0px 10px;
margin:0px;
}
.leftpane {
width:27%;
/*margin-right:16px;*/
/*padding-top:10px;*/
padding: 0px 10px 0px 0px;
margin:0px;
}
.contentpane, .TopPane, .BottomPane, .BannerPane {
/*width:668px;*/
}
.TopPane, .BottomPane, .BannerPane
{
}
.mid3
{
width:33%;
padding: 0px;
margin: 0px;
}
#breadcrumbs
{
text-align: left;
margin-left: 16px;
}
/* begin of menu*/
/*--------- dnn menu style ----------*/
/* main menu td */
.main_dnnmenu_bar
{
cursor:pointer;
font-size: 11px;
background-color:transparent;
width:970px;
}
/* Main Menu Normal */
.main_dnnmenu_rootitem
{
color: #fff;
font-size: 13px;
font-weight:bold;
text-align:center;
padding:12px 12px 12px 12px;
text-transform:uppercase; margin-right:1px;
white-space:nowrap;
float:left;
}
/* Main menu hover */
.main_dnnmenu_rootitem_hover
{
color:#214081;
font-size: 13px;
font-weight:bold;
text-align:center;
padding:12px 12px 12px 12px;
/*background:url(../images/menu_hover.gif) repeat-x top left;*/
text-transform:uppercase; margin-right:1px;
white-space:nowrap;
float:left;
}
/* Main menu selected */
.main_dnnmenu_rootitem_selected
{
color:#ffffff;
font-weight:bold;
text-align:center;
font-size: 13px;
padding:12px 12px 12px 12px;
/*background:url(../images/menu_active.gif) repeat-x top left;*/
text-transform:uppercase; margin-right:1px;
white-space:nowrap;
float:left;
}
/* SUB Menu Normal */
.main_dnnmenu_submenu
{
/*border:1px solid #C0D6E5;*/
margin-top: 0px;
margin-left: 3px;
background-color: #081E43;
z-index: 1000;
cursor: pointer;
cursor: hand;
border-top: #FFFFFF 1px solid;
border-right: #FFFFFF 1px solid;
border-left: #FFFFFF 1px solid;
border-bottom: #FFFFFF 1px solid;
filter: Alpha(Opacity=75, FinishOpacity=100, Style=1);
opacity: 0.75;
}
.main_dnnmenu_submenu td
{
/*background-color:#F8FAFF;*/
z-index: 1000;
font-size: 11px;
font-weight:bold;
text-align:left;
color:#fff;
line-height:2em;
padding: 0px 5px;
margin:0px;
}
/* SUB Menu hover & selected */
.main_dnnmenu_itemhover td
{
background: #CE0D0D url(../images/submenu_hover.gif) repeat-x top left;
color:#ffffff;
}
.main_dnnmenu_itemselected td{
background: #CE0D0D url(../images/submenu_active.gif) repeat-x top left;
color:#ffffff;
}
.main_dnnmenu_break
{
height: 2px;
background-color: #D5E0FF;
}
It's difficult to give useful advice without more detailed information. Have you tried installing the IE Developer Toolbar and Firebug so you can directly inspect each inconsistency and determine exactly what the differences are? I find those tools make it pretty easy to identify the consistency issues so that you can post a more specific question than "This page doesn't look the same in IE and Firefox". (I feel your pain though... it can be pretty difficult to fix these issues :S)
Ok I got it. The answer is to get it looking right in FF then in DNN under the host settings set your skin fallback to xhtml 1.0 strict instead of html 4. This will fix the issue.
Thanks for your help anurse.
#coultertech,
Setting the skin fallback doctype to XHTML is probably a good choice (it's only defaulted to HTML for legacy reasons). However, doctype information really belongs with the skin, itself (you may have one skin that is designed to work in HTML, and another designed to work in XHTML). To specify the doctype for the skin, see Cathal's blog post using Skin-level DocType's.

Resources