CodeVerge.Net Beta


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

MS SQL 2008 on ASP.NET Hosting
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 8/20/2006 3:27:26 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 37 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
Dman100
Asp.Net User
problem centering menu control using adpaters8/20/2006 3:27:26 PM

0/0

I'm using the adapters to display a menu control horizontally in the footer of my page.

I can't get the navigational links to center.  I've tried setting the 'margin: 0 auto;' and 'text-align: center;'

I'm using 'float: left;' to get the menu to display horizontally and aligns the content back to the left.

Here is the a test page to see the problem:

http://dwayne.compasslearning.com/login.aspx

Any help is appreciated.

Thanks.

Russ Helfand
Asp.Net User
Re: problem centering menu control using adpaters8/20/2006 6:33:14 PM

0/0

Dman100
Asp.Net User
Re: problem centering menu control using adpaters8/20/2006 8:50:26 PM

0/0

Thanks for replying to my post.

I have been looking at the styles you listed in the link you provided and I think I got more confused, so I apologize for my novice questions.

I see there is the class 'FooterMenu', but how is that class created and attached to the menu control?  I tried adding CssClass = "FooterMenu", but when the page rendered it didn't show up.  So, I am missing something.

My attempt was placing the menu control in a div

<

div id="footer"><asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1"

Orientation="Horizontal">

</asp:Menu>

<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" />

</div>

and applying the styles to my footer id:

/*

#footer {padding:0px;width:100%;clear:both;text-align:center;font-size:1.1em; text-transform: uppercase; font-weight: bold;}

#footer a:link, #footer a:visited, #footer a:hover, #footer a:active {color: #38B8D1; text-decoration: none;}

#footer ul {margin: 0px; padding:0px;}

#footer li {list-style-type: none; white-space: nowrap; float: left; padding: 0px 5px 0px 5px; margin: 0px;}

*/

 

Thanks again for your help.  I appreciate it.

Dman100
Asp.Net User
Re: problem centering menu control using adpaters8/20/2006 10:31:29 PM

0/0

Russ,

Please disregard my previous post.  I got it working and centered correctly.  Thanks for your help and the link to the styles.

Regards,

-D-

Russ Helfand
Asp.Net User
Re: problem centering menu control using adpaters8/20/2006 11:17:49 PM

0/0

Please don't worry about your earlier posting.  It's quite typical to be a bit confused or lost initially with regard to building these CSS styles.  And, I didn't really give you a lot of context in which to interpret the example styles I pointed you at.  That you were able to eventually use those examples to solve your own problem is wonderful!  Good for you!


Russ Helfand
Groovybits.com
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional Microsoft Virtual Server 2005 Authors: Ben Armstrong, Pages: 591, Published: 2007
Windows Server 2003 Network Administration Authors: Craig Hunt, Roberta Bragg, Pages: 600, Published: 2005
Absolute Beginner's Guide to Windows XP Media Center Authors: Steve Kovsky, Pages: 408, Published: 2004
Over-the-Road Wireless For Dummies Authors: E. Phil Haley, Pages: 364, Published: 2006
Computer Telephony Encyclopedia: Practical, In-depth, and Accessible Explanations of Essential Topics in Computer Telephony Authors: Richard Grigonis, Pages: 563, Published: 2000
Microsoft Windows XP Professional Administrator's Pocket Consultant: Administrator's Pocket Consultant Authors: William R. Stanek, Pages: 353, Published: 2001

Web:
problem centering menu control using adpaters - ASP.NET Forums Re: problem centering menu control using adpaters. 08-20-2006, 2:33 PM. Contact ... Re: problem centering menu control using adpaters. 08-20-2006, 4:50 PM ...
ASP.NET.4GuysFromRolla.com: Creating CSS Friendly Websites with ... Nov 29, 2006 ... To see the difference in output when using the CSS Friendly Control Adapters, let's look at a concrete example. Imagine that we had a Menu ...
ASP.NET Menu Control Problem in Safari and Chrome - Matt ... NET Menu Control Problem in Safari and Chrome. The ASP.NET Menu controls in my application display correctly in all browsers but Apple's Safari and Google's ...
Download free ASP templates - Free ASP Templates. All of the sample control adapters (not just Menu) allow you to use the expando ..... All other browsers will render the controls using the traditional ASP. ...
Embrace CSS with Friendly Control Adapters for ASP.NET 2.0 ... Nov 6, 2007 ... NET Menu control where HTML lists are used in ASP.NET 2.0 CSS Friendly Control Adapters 1.0 as opposed to the default HTML table markup. ...
CSS Images & Masterpages - DotNetSlackers Community Then I had a problem with the menu control not centering in Firefox ... Are the control adapters any use with the menu control and CSS? ...
MenuAdapter Class (System.Web.UI.WebControls.Adapters) Provides the means to modify the behavior of the Menu control for specific browsers. Namespace: System.Web.UI.WebControls.Adapters Assembly: System. ...
menu control: static items orient horizontally, dynamic items dont ... My problem is that for some reason i cannot get the sub items to orient horizontally. I am using a sitemap as the source for my menu items and it HAS to be ...
Source Viewer: ASP.NET 2.0 CSS Friendly Control Adapters 1.0 When the Menu control's Orientation property is Vertical the adapter wraps the menu with .... AspNet-Menu li { width: 9em; text-align:center; } /* This rule ...
Dr. Dobb's | ASP.NET Control Adapters | August 2, 2007 NET 2.0's control adapters are a configurable component that lets you ... Here's how to register a control adapter for the Menu control that works with any ...




Search This Site:










- how can we use debug.assert in web projects . i don t know its value and how i can take advantage of it.

dynamic changes

array list problem

error : dotnetnuke.dll , dotnetnuke.pdb access denied.

asp.net error

ie 7 and validation control problem

save pdf from posted pdf (asp.net)

extract part of a string

how to start start 1st (first) new web application

simple directory reading

passing server-side vars though href?

mac safari postback issue with asp.net app

i want to put a blog and a forum on website?

adobe acrobat sdk?

games ranking algorithm

how can i capture time spent on page without session var

how to get particular line in textbox?

display problem for a string

website which needs a daily scheduled routine?

concurrency issue

all emails sent using smtp thru asp.net are marked as spam.. sample message and code attached

onclick event

encrypting connection strings

searching for an array value in database.

maintaining scroll position and using anchors

using findcontrol to access a user-defined user control inside of a datagrid

problem with using <meta http-equiv="refresh" ....> tag

allow image upload

figuring out time zone - and hours difference

how to access the parent of the iframe

  Privacy | Contact Us
All Times Are GMT