Wrox Programmer Forums
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 29th, 2015, 07:16 PM
Authorized User
Join Date: May 2013
Posts: 59
Thanks: 10
Thanked 0 Times in 0 Posts
Default Menu items fall out of place after minimizing

my cs file is this:
*{font-family:Arial, Sans-Serif;}
nav a{color:#fff;}
.MainMenu{border:1px solid #000000;width:75%;height:19px;background-color:black;padding-left:25%;}
.MainMenu ul li{width:180px;position:relative;z-index:9999;text-align:center; }
header a{width:100%;height:86px;display:block;}
footer{width:100%;clear:both;position:relative;bot tom:0px;text-align:center;font-size:0.7em;font-weight:bold;line-height:20px;color:grey;}
ul.level1 .selected{background-color:#000000;}
a.level1{padding-left:25px !important;}
a.level1:hover, a.level2:hover{background-color:white;color:black;}
.Attention{border:4px solid red;padding:10px 0;width:100px;margin:auto;display:block;text-align:center;}
.ItemContainer li{height:300px;width:200px;float:left;}
.ItemContainer li img{width:180px;margin:10px 20px 10px 0;}
.startLogin a{font-size:x-large;color:purple;}

When I am resizing the window the main menu items fall out of place!
I can provide you with the website name if you want to understand what I mean.
All I want is the menu items to be in the middle of the page. When I minimize the page I still want the items to center in the middle of the page.

Please advice and thank you!

Last edited by dksellou; June 29th, 2015 at 07:21 PM..
Old July 1st, 2015, 08:19 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

It could be caused by all the "position" stuff in your CSS.

Hard to tell without seeing a site as it seems this is quite different from the CSS presented in the book. You could also consider posting this in the CSS forums here at p2p.wrox.com to attract more viewers.


Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
dksellou (July 1st, 2015)
Old July 1st, 2015, 11:49 AM
Authorized User
Join Date: May 2013
Posts: 59
Thanks: 10
Thanked 0 Times in 0 Posts

I will Imar,
Thank you so much!

Similar Threads
Thread Thread Starter Forum Replies Last Post
minimizing the window drops one menu item below the main menu dksellou ASP.NET 4.5 General Discussion 5 November 14th, 2014 04:04 AM
Menu items control Wilfredo Rosado BOOK: Beginning ASP.NET 4 : in C# and VB 1 February 15th, 2012 07:42 AM
Blank items in menu ricardor ASP.NET 2.0 Basics 2 December 18th, 2009 06:08 AM
CH 15 Context Menu - Element Menu Items Razzy The Pug BOOK: Ivor Horton's Beginning Visual C++ 2005 2 November 9th, 2008 03:53 PM
Menu Items JoBi C# 0 October 20th, 2004 08:51 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.