drop downs linger on mega hover out - asp.net

I am using this script:
http://www.teylyn.com/wp-content/uploads/2012/03/MegaMenuScript.txt
The drop downs linger / stay down after I mouse off the navigation buttons.
Here is my code:
<ul id="topnav" style="z-index: 1000;">
<li class="toplevel about">
<asp:HyperLink runat="server" ID="lnkAbout" NavigateUrl="~/Aboutus/Default.aspx" Text="About Us" CssClass="about" />
<div class="sub">
<asp:Menu ID="mnAboutUs" runat="server" DataSourceID="smdsAboutUs" RenderingMode="List" SkipLinkText="" Orientation="Vertical" StaticEnableDefaultPopOutImage="false" DynamicEnableDefaultPopOutImage="false" />
</div>
</li>
<li class="toplevel equipment">
<asp:HyperLink runat="server" ID="lnkEquipment" NavigateUrl="~/Equipment/Default.aspx" Text="Equipment" />
<div class="sub">
<asp:Menu ID="mnEquipment" runat="server" DataSourceID="smdsEquipment" RenderingMode="List" SkipLinkText="" Orientation="Vertical" StaticEnableDefaultPopOutImage="false" DynamicEnableDefaultPopOutImage="false" />
</div>
</li>
</ul>
The styles are:
div.sub
{
height: 1500px;
display: none;
z-index: 99999;
position: absolute;
}
li.toplevel
{
float: left;
display: block;
position: relative;
z-index: 99999;
}
li.toplevel a
{
color: #000000;
display: block;
font-size: 1.6em;
font-weight: normal;
line-height: 36px;
position: relative;
z-index: 99999;
text-align: center;
text-decoration: none;
border-left: 1px solid #FD3;
border-right: 1px solid #D90;
}
How can I make the second equipment div class "sub" hide itself when I mouse over about?

Try this on the mouse over event:
$(".sub").eq(1).hide(); //the number after eq() is the index of the element that contain the sub class
Good luck!

Related

first child, last child or neither?

I have 4 mouse over images that pop out a box with 3 cells showing a title, date and paragraph. I need the 1st and last drop downs to be moved inward on the page so as not to be clipped by the left and right sides. I have been round and round with first child last child without any luck. Is it possible to change position of the left and right without affecting the middle drop down positions? If so How? Thank you.
.simple {
position: relative;
font-family: arial, verdana, helvetica, sans-serif;
background: black url(images/subbar.jpg) repeat-x top left;
font-size: 12px;
z-index: 0;
text-align: center;
}
.simple ul {
list-style: none;padding: 0px;margin: 0px;
display: inline-block;
}
.simple ul li {
display: block;
position: relative;
float: left;border: 0px solid #000;
text-align: left;
}
.simple li ul {
display: none;
background-color: lightyellow;
border: 1px solid gray;
padding: 3px 5px 3px 5px;
z-index: 50;
position: absolute;
top: 72px;
left: -60px; /* left 5px, middle 2 -60px and right -90px (currently all at -60px) */
}
.simple ul li a {
/* display: block;background: #fff; */
padding: 5px 5px 5px 5px;
text-decoration: none;
color: #000;
}
.simple li:hover ul {
display: block; position: absolute; /* show or hide dropdown */
}
.simple li:hover a {
background: none;
}
#drop-nav li ul li {
border-top: 0px;
}
<div class="simple">
<ul id="drop-nav">
<li><img src="img/image1.jpg" width="150px" height="70px" border="0" />
<ul>
<li><a><img src="img/golddesign.jpg" width="300px" height="26px" border="0" /><br /><strong>Title 1</strong>
Date 1<br>Paragraph 1..</a><strong>Read More</strong></li>
</ul>
</li>
<li><img src="img/image2.jpg" width="150px" height="70px" border="0" />
<ul>
<li><a><img src="img/golddesign.jpg" width="300px" height="26px" border="0" /><br /><strong>Title 2</strong>
Date 2<br>Paragraph 2..</a><strong>Read More</strong></li>
</ul>
</li>
<li><img src="img/image3.jpg" width="150px" height="70px" border="0" />
<ul>
<li><a><img src="img/golddesign.jpg" width="300px" height="26px" border="0" /><br /><strong>Title 3</strong>
Date 3<br>Paragraph 3..</a><strong>Read More</strong></li>
</ul>
</li>
<li><img src="img/image4.jpg" width="150px" height="70px" border="0" />
<ul>
<li><a><img src="img/golddesign.jpg" width="300px" height="26px" border="0" /><br /><strong>Title 4</strong>
Date 4<br>Paragraph 4..</a><strong>Read More</strong></li>
</ul>
</li>
</ul>
</div>
You are looking for something like this?
.simple li:first-child ul {
left: 0px;
}
.simple li:last-child ul {
right: 0px;
left:initial;
}
Add the below code in your css it will work:
In class simple additionally add the width,
ul#drop-nav li:first-child ul{margin-left: 65px;}
ul#drop-nav li:last-child ul{margin-left: -101px;}
for reference check this fiddle:
http://jsfiddle.net/o17ogsa8/

Right align menu control inside a div tag

When a new web application project in ASP.NET created, it comes with a NavigationMenu in site.master page which has 2 elements (Home & About), Please let me know how to align this menu to the right.
Here it's screenshot & code:
<div class="clear hideSkiplink">
<asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false"
IncludeStyleBlock="False" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Default.aspx" Text="AnaSayfa"/>
<asp:MenuItem NavigateUrl="~/About.aspx" Text="Hakkında" />
</Items>
</asp:Menu>
</div>
Here is the rendered html code:
<div style="float: left;" id="NavigationMenu" class="menu">
<ul style="width: auto; float: left; position: relative;" class="level1 static" role="menubar"
tabindex="0">
<li style="float: left; position: relative;" class="static" role="menuitem"><a class="level1 static"
tabindex="-1" href="Default.aspx">Ana Sayfa</a></li>
<li style="float: left; position: relative;" class="static" role="menuitem"><a class="level1 static"
tabindex="-1" href="About.aspx">Hakkında</a></li>
</ul>
</div>
Here CSS:
div.hideSkiplink
{
background-color:#3a4f63;
width:100%;
}
div.menu
{
padding: 4px 0px 4px 8px;
text-align: right;
}
div.menu ul
{
list-style: none;
margin: 0px;
padding: 0px;
width: auto;
}
div.menu ul li a, div.menu ul li a:visited
{
background-color: #465c71;
border: 1px #4e667d solid;
color: #dde4ec;
display: block;
line-height: 1.35em;
padding: 4px 20px;
text-decoration: none;
white-space: nowrap;
}
div.menu ul li a:hover
{
background-color: #bfcbd6;
color: #465c71;
text-decoration: none;
}
div.menu ul li a:active
{
background-color: #465c71;
color: #cfdbe6;
text-decoration: none;
}
Add text-align: right; to the div.menu style in Site.css.
Since something is adding a float:left; to the menu div, you need to override it in your CSS with float:right !important; as per Rajiv's suggestion. Make your CSS look like this:
div.menu
{
padding: 4px 0px 4px 8px;
text-align: right;
float: right !important;
}
The manual style being applied is probably due to some built-in menu styles. Check out the docs and the walk-throughs included there: http://msdn.microsoft.com/en-us/library/ecs0x9w5(v=vs.100) Especially the once related to ManuStyles and MenuItemStyles.
If you want to make text inside the div to right align go for following code
text-align:right;
But you if you want to move your whole div to right, you can go for
float:right
for information about "Float" property read this
How to align 3 divs (left/center/right) inside another 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.

How to increase the hight and width of the tabs in the Ajax TabContainer control?

This is my first time to play with Ajax Toolkit for ASP.NET. I am using the TabContainer which is a very awesome control. I followed the description in the website of the AJAX toolkit and everything works well with me except some styling issues.
I have the following CSS style for the TabContainer. I have a problem now in the tabs. I want to add a small icon or image besides the title or the header of the tab itself. I did it but now the text goes down and it doesn't appear completely, so the reader can't read it. So could you please help me in fixing it?
CSS style:
/* CSS Style of the Ajax TabContainer */
.ajax__myTab .ajax__tab_header { font-family: verdana; font-size: 16px; border-bottom: solid 2px #aaaaaa }
.ajax__myTab .ajax__tab_outer { padding-right: 2px; height: 20px; background-color: #C0C0C0; margin-right: 1px; border-right: solid 2px #666666; border-top: solid 1px #999999 }
.ajax__myTab .ajax__tab_inner { padding-left: 3px; background-color: #C0C0C0; }
.ajax__myTab .ajax__tab_tab { height: 13px; padding: 4px; margin: 0; }
.ajax__myTab .ajax__tab_hover .ajax__tab_outer { background-color: #cccccc }
.ajax__myTab .ajax__tab_hover .ajax__tab_inner { background-color: #cccccc }
.ajax__myTab .ajax__tab_hover .ajax__tab_tab { background-color:Green; }
.ajax__myTab .ajax__tab_active .ajax__tab_outer { background-color: #fff; border-left: solid 1px #999999; }
.ajax__myTab .ajax__tab_active .ajax__tab_inner { background-color:#fff; }
.ajax__myTab .ajax__tab_active .ajax__tab_tab { }
.ajax__myTab .ajax__tab_body { font-family: verdana; font-size: 11pt; border: 2px solid #999999; padding: 6px; background-color: #ffffff; }
Sorry because I could not be able to upload snapshot due to the low number of points I have.
UPDATE:
Here's the ASP.NET code:
<%--TabContainer Control--%>
<ajaxToolkit:TabContainer ID="LibraryTabs" runat="server" CssClass="ajax__myTab" OnDemand="true" AutoPostBack="false"
TabStripPlacement="Top" ScrollBars="None" UseVerticalStripPlacement="false">
<ajaxToolkit:TabPanel ID="ImagesGallery" runat="server" HeaderText="Images Gallery">
<HeaderTemplate><img src="images/New/image.png" style="height: 21px; width: 23px" /> Images Gallery</HeaderTemplate>
<ContentTemplate>
<p>
<strong><img src="images/New/image.png" style="height: 21px; width: 23px" /> Images Gallery: </strong> <br />
Here's a list of some images of safety events that take place inside the company. Besides that, there are some images of
some safety equipments or signs. If the image is not obvious to you, please save it on your PC and then open it to see it in its
original size.
</p>
<!-- Images Gallery -->
<div id="gallery" class="ad-gallery">
<div class="ad-image-wrapper">
</div>
<div class="ad-controls">
</div>
<div class="ad-nav">
<div class="ad-thumbs">
<ul class="ad-thumb-list">
<li>
<a href="images/safety images/fire protection.jpg">
<img src="images/safety images/thumbs/fire protection.jpg" title="Fire Protection Training Course" class="image0">
</a>
</li>
<li>
<a href="images/safety images/safety equipment.jpg">
<img src="images/safety images/thumbs/safety equipment.jpg" title="One of the safety equipments" class="image0">
</a>
</li>
<li>
<a href="images/safety images/lp poster.jpg">
<img src="images/safety images/thumbs/lp poster.jpg" title="Safety Poster" class="image0">
</a>
</li>
<li>
<a href="images/safety images/lp poster 2.jpg">
<img src="images/safety images/thumbs/lp poster 2.jpg" title="Safety Poster" class="image0">
</a>
</li>
<li>
<a href="images/safety images/lp poster 3.jpg">
<img src="images/safety images/thumbs/lp poster 3.jpg" title="Safety Poster" class="image0">
</a>
</li>
<li>
<a href="images/safety images/lp poster 4.jpg">
<img src="images/safety images/thumbs/lp poster 4.jpg" title="Safety Poster" class="image0">
</a>
</li>
<li>
<a href="images/safety images/worker.jpg">
<img src="images/safety images/thumbs/worker.jpg" title="Safety at workplace" class="image0">
</a>
</li>
<li>
<a href="images/safety images/safety sign.jpg">
<img src="images/safety images/thumbs/safety sign.jpg" title="One of the safety signs" class="image0">
</a>
</li>
</ul>
</div>
</div>
</div>
<!-- End of Images Gallery -->
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel ID="TabPanel1" runat="server" HeaderText="Images Gallery">
<HeaderTemplate>Video Gallery</HeaderTemplate>
<ContentTemplate>
<p>
<strong><img src="images/New/video.png" style="height: 21px; width: 23px" /> Video Gallery: </strong> <br />
Here's a list of safety videos that show you the effects of driving out of the speed limit and so on.
<center><b> Coming Soon </b></center>
</p>
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>
UPDATE 2:
Also, I tried to include the Height and Width inside the AjaxToolkit:TabPanel and it didn't work with me. It is really strange and I could not understand it.
I actually had the same issue and found this solution, which requires to put the following code in the stylesheet.css.
.ajax__tab_xp .ajax__tab_header .ajax__tab_tab
{
height: 24px !important;
}
So apparently the attribute needs to be marked as important, this way i was able to increase the header height, however the body of the tabs will jump down quite a little. Meaning there is visible break between the header and the body of the tab panel.
So i am not sure if a tab control is always the best solution if the tab headers height will change.
Have you tried doing this following way :
<ajaxToolkit:TabContainer ID="mytabs" runat="server" >
<ajaxToolkit:TabPanel runat="server" ID="tab1">
<HeaderTemplate>
<div style="float: left;">
<img src="images/accept.png" /></div>
<div style="float: right; padding-left: 5px;">Accept</div>
</HeaderTemplate>
<ContentTemplate>some content for tab1</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel runat="server" ID="tab2">
<HeaderTemplate>
<div style="float: left;">
<img src="images/add.png" /></div>
<div style="float: right; padding-left: 5px;">Add</div>
</HeaderTemplate>
<ContentTemplate>some content for tab2</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>
The above code renders nicely:
good luck!
write like this <ajaxtoolkit:tabcontainer runat="server" xmlns:ajaxtoolkit="#unknown">
OnClientActiveTabChanged="ClientFunction"
Height="150px"
Width="400px"
ActiveTabIndex="1"
OnDemand="true"
AutoPostBack="false"
TabStripPlacement="Top"
CssClass="ajax__tab_xp"
ScrollBars="None"
UseVerticalStripPlacement="true"
VerticalStripWidth="120px"
>
<ajaxtoolkit:tabpanel runat="server">
HeaderText="Signature and Bio"
Enabled="true"
ScrollBars="Auto"
OnDemandMode="Once"
<contenttemplate>
...
</contenttemplate>
/>
</ajaxtoolkit:tabpanel></ajaxtoolkit:tabcontainer>
This will change Ajax Tab Background Colors . You can make changes according
to your need, by addattributes to ".divTab"
.divTab
{
border-top-left-radius: 6px;
border-top-right-radius: 6px;
padding: 3px 10px 2px 10px;
}
.divTab:hover
{
color: #c8ccd0;
}
.MyTabStyle .ajax__tab_header
{
cursor: pointer;
font-weight: bold;
display: block;
}
.MyTabStyle .ajax__tab_header .ajax__tab_outer
{
border-color: #4597d1;
color: #ffffff;
margin-left: 1px;
border: 1px solid black;
background-color: #4597d1;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.MyTabStyle .ajax__tab_header .ajax__tab_outer1
{
border-color: #4597d1;
color: #ffffff;
padding-left: 2px;
margin-right: 3px;
border: 1px solid black;
background-color: white;
}
.MyTabStyle .ajax__tab_header .ajax__tab_inner
{
border-color: #666;
color: #ffffff;
}
.MyTabStyle .ajax__tab_hover .ajax__tab_outer
{
background-color: #2158a0;
}
.MyTabStyle .ajax__tab_hover .ajax__tab_inner
{
color: #ffffff;
}
.MyTabStyle .ajax__tab_active .ajax__tab_outer
{
border-bottom-color: #2b5f9a;
background-color: #2158a0;
color: #2158a0;
}
.MyTabStyle .ajax__tab_active .ajax__tab_inner
{
color: #ffffff;
border-color: #333;
}
.MyTabStyle .ajax__tab_body
{
font-family: verdana,tahoma,helvetica;
font-size: 10pt;
background-color: #fff;
border-top-width: 0;
border: solid 1px #d7d7d7;
border-top-color: #ffffff;
}
-------------------------------------------------------------------
<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" CssClass="MyTabStyle">
<asp:TabPanel ID="TabPricing" runat="server" HeaderText="Pricing">
<HeaderTemplate>
<div class="divTab" style="background-color: #2b5f9a;">
<asp:Label ID="lblPricing" runat="server" Text="Pricing"></asp:Label></div>
</HeaderTemplate>
<ContentTemplate>
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="TabDesign" runat="server" HeaderText="Design Specs">
<HeaderTemplate>
<div class="divTab" style="background-color: #ac416c;">
<asp:Label ID="lblDesignSpecs" runat="server" Text="Design Specs"></asp:Label></div>
</HeaderTemplate>
<ContentTemplate>
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="Tab_Fab" runat="server" HeaderText="Fab Specs">
<HeaderTemplate>
<div class="divTab" style="background-color: #979444;">
<asp:Label ID="Label1" runat="server" Text="Fab Specs"></asp:Label></div>
</HeaderTemplate>
<ContentTemplate>
</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>
[1]: http://i.stack.imgur.com/04quM.png

Align text at bottom of div

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

Resources